Odoo Help


How to change the label string in existing module

Frankie Chan
on 7/10/14, 2:28 AM 5,889 views

Please refer to the figure here.

I want to change the string "Is a comany?" in the existing module file "/openerp/addons/base/res/res_partner_view.xml".

After I made the change, I update the "base" module but there is no change.

What should I do?


Can you paste the code portion?

on 7/10/14, 4:18 AM

Helllo Frankie,

First of all, why do you want to change directly in base module ?

Make a custom module with a simple view file and paste the following content & your problem will be solved !!!

<?xml version="1.0" encoding="utf-8"?>
        <record id="partner_inherit_form_emipro" model="ir.ui.view">
            <field name="name">partner.inherit.form.emipro</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <xpath expr="//form/sheet/div/div/label[@string='Is a Company?']" position="attributes">
                    <attribute name="string">My Company</attribute>

Hope this helps,

Let me know still if this is not working,




Kevin McMenamin

--Kevin McMenamin--

| 5 2 6
Auckland, New Zealand
--Kevin McMenamin--

Kevin McMenamin
On 7/10/14, 4:25 AM

you could just use translations and avoid any code change.

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

2 follower(s)


Asked: 7/10/14, 2:28 AM
Seen: 5889 times
Last updated: 3/16/15, 8:10 AM