Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2215 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

 

Ảnh đại diện
Huỷ bỏ