Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4153 Zobrazení

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
Zrušit
Nejlepší odpověď

Hi, did you found how to do it ?

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
úno 19
4349
1
bře 15
5132
0
čvn 25
2315
1
kvě 25
2590
2
lis 24
1211