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

Am working on Inventory management in odoo my database contains 3 companies, I wanted to show only those products which belongs to that particular company   

For Eg.  i have 3 companies namely aa, bb, cc, the company aa has some products and bb has some products and same goes with cc, but when I switch the company from aa to bb,

 I can see the products of all the three companies.

Can anyone help me how to keep the record rules for the same?

Awatar
Odrzuć

Are you using the Administrator account?

Which version of Odoo?

Autor

thanks Chris,

I am using odoo11, but I got this solved with the help of Niyas,

Najlepsza odpowiedź

Hi,

For this no need to write a new record rule, a rule is there already which is added by the Odoo. Go to Settings -> General Settings, then if you scroll down in the multi-company you can see two options, one is Common Contact Book and other is Common Product Catalog.

By default these two boolean fields will be ticked, in your case, you can untick  Common Product Catalog.

Once you untick this a record rule named  Product multi-company will visible in Settings -> Technical -> Security -> Record Rules, which was initially set as active as False.

See the rule in this File: https://github.com/odoo/odoo/blob/11.0/addons/product/security/product_security.xml

Thanks

Awatar
Odrzuć
Autor Najlepsza odpowiedź

thanks Niyas, I got it solved with your answer

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 19
3680
1
mar 25
2565
1
lut 25
3910
2
lut 25
2521
1
mar 24
1993