Odoo Help

Welcome!

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.

0

How to change the label string in existing module

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

Thanks.

Can you paste the code portion?

Remya
on 7/10/14, 4:18 AM
2

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"?>
<openerp>
    <data>
        <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>
                </xpath>
            </field>
        </record>
    </data>
</openerp>

Hope this helps,

Let me know still if this is not working,

--

Regards,

0

Kevin McMenamin

--Kevin McMenamin--
804
| 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)

Stats

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