Odoo Help


Readonly for certain users

Andre de Kock
on 4/11/15, 9:13 AM 1,066 views

Is it possible for a field to be readonly only for certain users?

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

Jusab Sida (jsi)
on 6/18/15, 5:35 AM
Ankit Gauri
On 6/18/15, 6:18 AM

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>




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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/11/15, 9:13 AM
Seen: 1066 times
Last updated: 1/29/16, 5:26 AM