Odoo Help

0

Add a custom field to orderline tree

By
mirko lazzarini
on 9/25/13, 12:29 PM 623 views

I'm trying to add a custom field('destination') into orderline tree but it doesn't function (error: Invalid XML for View Architecture) This is my script

<record model="ir.ui.view" id="edit_order_line_tree">
        <field name="name">purchase.order.tree.inherit</field>
        <field name="model">purchase.order</field>
     <field name="type">tree</field>
        <field name="inherit_orderid" ref="purchase.purchase_order_tree"/>
        <field name="arch" type="xml">
         <xpath expr="/form/sheet/tree/field[@name='price_subtotal']" position="before">
                <field name="destination" />
         </xpath>
        </field>
   </record>

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 9/25/13, 12:29 PM
Seen: 623 times
Last updated: 3/16/15, 8:10 AM