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.
I have a model that inherits from res.users. And I added a field to that model, extending the users model.
Now, I want users in a specific group to be able to edit that field, but only their own user record.
<record model="ir.rule" id="fs_res_user_own_write">
<field name="model_id" ref="model_res_users"/>
<field name="domain_force">[('id', '=', user.id)]</field>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="group_id" ref="my_user_group"/>
<field name="perm_unlink" eval="False"/>
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: 5/6/16, 1:12 PM|
|Seen: 492 times|
|Last updated: 5/6/16, 2:15 PM|