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.


how can we add the custom fields in tree view

on 2/26/14, 8:44 AM 1,034 views

Hi All I am trying to add an field to tree from custom module but I am unable to get in,

My code is <openerp> <data> <record model="ir.ui.view" id="legacy_projects_project"> <field name="name">project.project.form</field> <field name="model">project.project</field> <field name="inherit_id" ref="project.edit_project"/> <field name="arch" type="xml"> <xpath expr="//field[@name='partner_id']" position="after"> <field name="legacy_projects_id"/> </xpath> </field> </record>

<record model="ir.ui.view" id="legacy_projects_project">
    <field name="name">project.project.tree</field>
    <field name="model">project.project</field>
    <field name="inherit_id" ref="project.edit_project" />
    <field name="arch" type="xml">
            expr="//field[@name='user_id']" position="after">
            <field name="legacy_projects_id"/>

</data> </openerp>

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: 2/26/14, 8:44 AM
Seen: 1034 times
Last updated: 3/16/15, 8:10 AM