How to view or hide field by attrs based on function (Automatically)?

后端 未结 2 743
醉酒成梦
醉酒成梦 2021-01-24 12:05

I want to view \'working_hours\' field only for employee, his manager and \'hr.group_hr_user\' group. how to hide this field automatically without edit form or trigger a

2条回答
  •  情书的邮戳
    2021-01-24 12:40

    Try below code for display working hours field only hr.group_hr_user group users.

    XML:

    
      Hide Working Hours Employees Form
      hr.employee
      
      
        
          
        
        
          hr.group_hr_user
        
      
    
    

    You can add multiple attributes in the XML file like above code.

提交回复
热议问题