In Odoo 11 This below Code Works Fine but this is not working in Odoo 16.
I have tried the below solution for Odoo 16 but no result.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I have tried the below solution for Odoo 16 but no result.
Hi,
Please try using below code
<record id="employee_inherited_basic_
<field name="name">hr.employee.form.
<field name="model">hr.employee</
<field name="inherit_id" ref="hr.employee_inherited_
<field name="arch" type="xml">
<xpath expr="//field[@name='custom_
<attribute name="readonly">1</attribute>
<attribute name="groups">base.group_user<
</xpath>
</field>
</record>
In this we need to add the module name of the reference record in ref
Hope it helps
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Feb 24
|
10 | ||
|
1
May 23
|
3379 | ||
|
2
Mar 24
|
5582 | ||
|
2
Jun 23
|
3846 | ||
|
1
May 24
|
1492 |