Odoo Help


This community 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.


How to change the label string in existing module

Frankie Chan
on 7/10/14, 2:28 AM 3,119 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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


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