Odoo Help

Welcome!

This community 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.

3

Readonly for certain users

By
Andre de Kock
on 4/11/15, 9:13 AM 636 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
0
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>

</field>

</field>

</record>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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