Odoo Help

Welcome!

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.

0

Add a custom field to orderline tree

By
mirko lazzarini
on 9/25/13, 12:29 PM 492 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>

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)

Stats

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