Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2456 Vizualizări
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. 

        



       

   


       

   


Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Please try using below code


<record id="employee_inherited_basic_form_view" model="ir.ui.view">
<field name="name">hr.employee.form.inherit.employee.basic</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.employee_inherited_basic_form_view"/>
        <field name="arch" type="xml">
<xpath expr="//field[@name='custom_field']" position="attributes">
                <attribute name="readonly">1</attribute>

                <attribute name="groups">base.group_user</attribute>
            </xpath>
        </field>
    </record>


In this we need to add the module name of the reference record in ref


Hope it helps

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
feb. 24
10
1
mai 23
3702
2
mar. 24
6250
2
iun. 23
4516
1
mai 24
1916