Odoo Help


xpath syntax for purchase requisition

mihir shah
on 5/6/13, 5:48 AM 2,126 views
<xpath expr="/form/notebook/page[@string='Products']/field[@name='line_ids']/tree[@string='Products']/field[@name='product_uom_id']" position="after">
                        <field name="date_planned"/>
                    <xpath expr="/form/notebook/page[@string='Products']/field[@name='line_ids']/field[@name='product_uom_id']" position="after">
                        <field name="date_planned"/>

i want to add a field on purchase requisition form's notebook product. but the above code is giving field's architecture error .wat's the proper syntax

Sudhir Arya (SA)
On 5/6/13, 6:22 AM

Your xpath is wrong. /sheet is missing in your xpath.

Try this:

<xpath expr="/form/sheet/notebook/page[@string='Products']/field[@name='line_ids']/tree[@string='Products']/field[@name='product_uom_id']" position="after">
    <field name="date_planned"/>

<xpath expr="/form/sheet/notebook/page[@string='Products']/field[@name='line_ids']/field[@name='product_uom_id']" position="after">
    <field name="date_planned"/>

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.


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)


Asked: 5/6/13, 5:48 AM
Seen: 2126 times
Last updated: 3/16/15, 8:10 AM