CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Readonly Field By Groups [Closed]
The Question has been closed for reason: duplicate questionby
i want make field 'job_id' in object hr.employee readonly if the employee base on group 'base.group_hr_user' and not readonly for other.
i have use this code in xml
<record id="mtc_employee_form5_view" model="ir.ui.view">
<field name="inherit_id" ref="hr.view_employee_form" />
<field name="groups_id" eval="[(6, 0, [ref('base.group_hr_user') ])]" />
<field name="arch" type="xml">
<field name="job_id" position="attributes">
but the result, field job_id readonly for all groups. i just want field job_id readonly for groups='base.group_hr_user'.
Hope anyone can help me. Thanks
About This Community
Odoo Training Center
|Asked: 6/7/16, 11:57 PM|
|Seen: 453 times|
|Last updated: 6/7/16, 11:59 PM|