Skip to Content
Menu
This question has been flagged
4 Replies
1705 Views

Why is this is not replacing "Customer" label by "Partner" in Quotation?

        <record id="sale_form_change_customer_label" model="ir.ui.view">

            <field name="name">sale.order.form</field>

            <field name="model">sale.order</field>

            <field name="type">form</field>

            <field name="inherit_id" ref="sale.view_order_form"/>

            <field name="arch" type="xml">

                <xpath expr="/form/sheet/group/group/field[@name='partner_id']" position="attributes">

                    <attribute name="string">Partner</attribute>

                </xpath>                

                ...
Avatar
Discard

Have you upgraded your module?

or you may be forget to add file in manifest.

<field name="priority">20</field>

add priority in XML Record.

after upgrade check, it will help you.

Author

Yes, I upgraded and even restarted openerp.

Best Answer

Hello Ramashish,

Try Below Code I Hope it help you.

<xpath expr="//field[@name='partner_id']" position="replace">
<field name="partner_id" string="Partner"/>
 
</xpath>


Avatar
Discard
Author

No it did not work either

Can you share your code because above code is work for me ..@ramashish