Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
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
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/7/16, 11:57 PM|
|Seen: 229 times|
|Last updated: 6/7/16, 11:59 PM|