Odoo Help

3

1
2 Answers
0
Avatar

Ankit Gauri India

--Ankit Gauri--

5062
| 6 4 9
RAJKOT, India
--Ankit Gauri--

Odoo Certified | Odoo Techno-Functional Consultant

 

Ankit Gauri India
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>

Ask a Question
Writer
Keep Informed
1 follower(s)
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