跳至内容
菜单
此问题已终结
2 回复
19949 查看

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?

最佳答案

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,

形象
丢弃
最佳答案

you could just use translations and avoid any code change.

形象
丢弃
相关帖文 回复 查看 活动
5
12月 24
33036
2
10月 24
3642
1
6月 25
2982
0
9月 23
1099
1
4月 22
2570