Help

0

Access restrictions in multicompany environment

Avatar
Hubert Johannsen

Hello,

if I still have error of access restriction on the users (error below)

(Document type: res.users, Operation: read)

but have given through a rule [(1 '=' 1)] the right to read every user, can this be due to the multi-company setting which puts restrictions based on the participated company?


And in that case, since that is in the calendar when I click "Everybody's calendar", should the offending items not be hidden instead of causing an error?

I'm working on this since quite a while, and will appreciate any track for explanation or deeper investigation I could do.

Thanks a lot, and enjoy, hj

Avatar
Discard
1 Answer
0
Best Answer

In first part of  your question you can do access rule such as in your Model:

['|',('company_id','child_of',[user.company_id.id]),('company_id','=',False)]


Avatar
Discard