I have created a new model that refers to company_id and now i want to add restriction rule so user can only create and see only his company items. Is that possible to do? I've tried to write rule like this:
[( 'Raw_material_comp_id', '=', 'user.company_id.id')]
but after that all my items of "raw material" disappears and I can not create any new ones. Any help?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
1831
Weergaven
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
2
jul. 24
|
2540 | ||
|
1
jun. 24
|
5012 | ||
|
1
okt. 23
|
10694 | ||
|
1
okt. 23
|
98 | ||
413 Request Entity Too Large
Opgelost
|
|
1
aug. 23
|
2193 |
Solved just need to replace code:
[('raw_material_comp_id','child_of',[user.company_id.id])] [CORRECT]
Works fine.
https://goo.gl/kj4JLL