Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2209 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

 

Awatar
Odrzuć