Odoo Help


Allow users in a group to edit their own user data.

Ratmil Torres
on 5/6/16, 1:12 PM 761 views

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="name">fs_res_user_own_write</field>

<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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/6/16, 1:12 PM
Seen: 761 times
Last updated: 5/6/16, 2:15 PM