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.
how to make a record readonly by specific user group?
Example: I have 10 record of product. and two group of user e.g (A & B).
here is the requirement
users in group A be able to edit all the products
user in group B can only edit some specific products
user in group B can create products and view all the products
For the security rights you have to assign
Assign group A with only read permission [1,0,0,0]
Assign group B with all permissions [1,1,1,1]
This permissions are written in ir.model.access.csv file.
For second requirement you have create record rule for group B with the condition for how many records should be visible to particular group.
<record id="group_account_invoice" model="res.groups">
<field name="category_id" ref="base.module_category_accounting_and_finance"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
For reference see this doc: \https://www.odoo.com/documentation/9.0/reference/security.html
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: 11/29/16, 3:33 AM|
|Seen: 301 times|
|Last updated: 11/29/16, 7:00 AM|