跳至内容
菜单
此问题已终结
1 回复
2192 查看

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

形象
丢弃
最佳答案

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

 

形象
丢弃