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.


Contact tree view first in partner form view

on 3/19/13, 12:47 AM 1,591 views

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:


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


Parth Gajjar

--Parth Gajjar--
| 3 3 5
Ahmadabad, India
--Parth Gajjar--
Parth Gajjar
On 3/19/13, 2:45 AM

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>

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.

on 3/19/13, 4:23 AM

see in answer :D

Parth Gajjar
on 3/19/13, 6:06 AM
on 3/27/13, 12:50 PM

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

0 follower(s)


Asked: 3/19/13, 12:47 AM
Seen: 1591 times
Last updated: 3/16/15, 8:10 AM