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 | etc.
Hi to All,
I have to create an access rule in which I have to compare the company_id with Allowed Companies(many2many field company_ids in users screen).
Thanks in Advance
In OpenERP, for major of the existing models the record rule exists where there is a field company_id or user_id.
If you model is custom, you should consider the following record rule.
=> Means the user will see the records of your model where he is the user of the main company or its children companies.
Or, foryour own record, its company_ids field for 'Allowed companies'. So [('company_id','in',user.company_ids)]
Hope this helps.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/19/14, 11:38 AM|
|Seen: 1568 times|
|Last updated: 5/21/16, 9:52 AM|