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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1597
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Jul 24
|
1008 | ||
|
1
Jun 24
|
3611 | ||
|
1
Oct 23
|
8736 | ||
|
1
Oct 23
|
98 | ||
413 Request Entity Too Large
Solved
|
|
1
Aug 23
|
2192 |
Solved just need to replace code:
[('raw_material_comp_id','child_of',[user.company_id.id])] [CORRECT]
Works fine.
https://goo.gl/kj4JLL