Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4168 Prikazi

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"/>

</record>


Avatar
Opusti
Best Answer

Hi, did you found how to do it ?

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
feb. 19
4349
1
mar. 15
5138
0
jun. 25
2322
1
maj 25
2597
2
nov. 24
1219