Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
11697 Widoki

Hi,

We are running Odoo Enterprise v10. And are using Multi-Company.

What I need help with:
Company  A Contacts should not be seen by Company B, and vice-versa.

What I tried:
I changed the record rule for res.partner, but then our employees were not able to create Timesheets, and were having several errors when they tried to access something. So I had to revert back to the way it was. Now everyone can see both companies Contacts, even when they are not set up to be able to have access to that company.

How can I achieve this?
Thanks.        

Awatar
Odrzuć
Najlepsza odpowiedź

First : In Setting of multi company, unchick the Commo Contact Book option.

This will restrict users to see contact of other company which haven't access to it.

second: you can  add domain  rule like this in python code

 
return {
'domain':{'company_id':[('company_id','=', user.company_id)]},
}
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
cze 23
4186
1
cze 22
6059
0
gru 21
2585
1
mar 21
5768
1
lut 20
4240