Odoo Help


Rename a field

aci aisha
on 2/7/15, 5:41 AM 3,976 views


I hav to change the name "supplier" to "owner" in sale module...

Hw it is possible using a custom module..



You can do this by 2 ways..

1) Redefine that field in the custom module and change the string of it.

2) Inherit the view and over there change the "string" attribute of it.


how to redefine? can you give me an example

aci aisha
on 2/7/15, 6:14 AM

Copy that field from original module and put it in your module and change the string.

Emipro Technologies Pvt. Ltd.
on 2/7/15, 6:45 AM

thanks... 1 vote & 1 tick

aci aisha
on 2/7/15, 6:57 AM

Welcome @aci aisha...

Emipro Technologies Pvt. Ltd.
on 2/7/15, 8:02 AM
Ankit H Gandhi(AHG)
On 2/9/15, 1:08 AM

Hello aci aisha,

here i give you example of modified the string supplier to owner

hope this code very helpfull for you.

<record id="purchase_order_form_view_inherit" model="ir.ui.view">
            <field name="name">purchase.order.form.view.inherit</field>
            <field name="model">purchase.order</field>
            <field name="inherit_id" ref="purchase.purchase_order_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='partner_id']" position="attributes">
                    <attribute name="string">Owner</attribute>

if you find this answer helpfull, please give me a thumbs up vote    

Thanks & Regards,

Ankit H Gandhi

helpful..1 vote

aci aisha
on 2/9/15, 2:04 AM

My Pleasure!

Ankit H Gandhi(AHG)
on 2/9/15, 4:20 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/7/15, 5:41 AM
Seen: 3976 times
Last updated: 7/13/17, 3:38 PM