what you say sounds reasonable to me... still, in my situation, if I revert to the default rule for res.company, that is: [('id','child_of',[user.company_id.id])] , I cannot switch companies.
The only way that I found to be able to switch companies is to set the res.company rule [('id','in',[x.id for x in user.company_ids])].
Olivier,
what you say sounds reasonable to me... still, in my situation, if I revert to the default rule for res.company, that is: [('id', 'child_ of',[user. company_ id.id]) ] , I cannot switch companies.
The only way that I found to be able to switch companies is to set the res.company rule [('id','in',[x.id for x in user.company_ ids])].
Am I missing something?
Thanks a lot,
Leo