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.

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
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
0
feb. 24
|
10 | |||
|
1
mai 23
|
5573 | |||
|
2
mar. 24
|
9342 | |||
|
2
iun. 23
|
7179 | |||
|
1
mai 24
|
4024 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.