Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
20019 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
5
ธ.ค. 24
33141
2
ต.ค. 24
3741
1
มิ.ย. 25
3066
0
ก.ย. 23
1145
1
เม.ย. 22
2655