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
2202 Zobrazení

Need  to make a field "Readonly" for perticular user group all other fields of the object should be editable.

i had used "groups='[group_name]'" to make visible for the perticular user group,

but how to make readonly

Avatar
Zrušit
Nejlepší odpověď

Hi, you can use this in your py file field...

'name': fields.char('Name', size=128, read=['base.group_userA'], write=['base.group_userB'] )

Read will allow the user group to view and Write will allow the user group to edit the field..

More here

 

Avatar
Zrušit