How to make field readonly based on group and status?

前端 未结 5 1294
故里飘歌
故里飘歌 2020-12-14 20:26

I want to make field readony based on group, and status.

Like i have two grops 1. Manager Group 2. User Group

If I give User Group to any <

5条回答
  •  情话喂你
    2020-12-14 20:49

    you can apply access rule on field level in OpenERP, like in py

    'name': fields.char('Name', size=128, required=True, select=True,
     read=['base.group_user'] ),
    

    And for status in xml:

    
    

提交回复
热议问题