Is it possible for a field to be readonly only for certain users?
This question has been flagged
hello you can try this
<record id="view_manager_readonly" model="ir.ui.view">
<field name="name">timesheet.form.readonly manager</field>
<field name="model">model.name</field>
<field name="inherit_id" ref="view_ref"/>
<field name="groups_id" eval="[(6, 0, [ref('group_res_manager')])]"/>
<field name="arch" type="xml">
<field name="employee_id" position="attributes">
<attribute name="readonly" >1</attribute>
</field>
</field>
</record>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
You can get some hint from here...1)https://www.odoo.com/forum/help-1/question/read-only-field-for-certain-user-groups-51098 2)https://www.odoo.com/forum/help-1/question/is-it-possible-to-make-a-field-readonly-for-users-under-particular-group-in-openerp-7-7532