I have a problem in changing the names for odoo addon modules. I've tried with xpath, attributes, but I just can't get it to work.
<xpath expr="//field[@name='manager_id']" position="attributes"> <attribute name="string">New Field Label</attribute> </xpath> <field name="manager_id" position="attributes"> <attribute name="string">New Field Label</attribute> </field>
There must be a way to change the field labels? And is there a way to change it so that it changes in every view the field is used?
EDIT:
code that I tried:
<record model="ir.ui.view" id="view_hr_res_company_form"> <field name="inherit_id" ref="base.view_company_form" /> <field name="model">res.company</field> <field name="arch" type="xml"> <xpath expr="//form/sheet/notebook/page/field[@name='company_registry']" position="attributes"> <attribute name="string">Matična številka</attribute> </xpath> <xpath expr="//field[@name='vat']" position="after"> <field name="account_no"/> <field name="obcina"/> <field name="dejavnost"/> </xpath> </field> </record>
Hi Samo,
Your approach is correct, you need to check with priorities and also check with inherit_id.
can you dumb it down so I could understand :) I edited the question with the code I tried.