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

In v6.1 \addons\base\res\res_partner_view.xml, around line 345

<field colspan="4" mode="form,tree" name="address" nolabel="1" select="1" height="260">

this code display form view of contact(address) in the partner view, I want to change the mode sequence to:

mode="tree,form"

to list contact tree view first. How to do this by inheriting views in a custom module? Thank you very much.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

May be you changed in wrong directory. or you forgot to refresh the server and that module

I done this thing by changing in this directory v6.1/server/openerp/addons/base/res/res_partner_view.xml

Line no 345

<field colspan="4" mode="tree,form" name="address" nolabel="1" select="1" height="260">

It works for me

image description

Don't Forgot to restart server and upgrade that module

For inherited view Write this in your inherited view

                <field name="address" position="attributes">
                    <attribute name="mode">tree,form</attribute>
                </field>

Hope This will help :D

อวตาร
ละทิ้ง
ผู้เขียน

This changs the source code.But I want to do it in a custom module by inheriting the view so that everytime i update the source, my custom module can take care of these two view modes resorted.

see in answer :D

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
3697
10
มี.ค. 23
40008
5
ม.ค. 20
11300
2
มี.ค. 15
8348
1
พ.ค. 25
1561