Skip to Content
Menu
This question has been flagged
1 Reply
4298 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>
                    <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

Avatar
Discard
Best Answer

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>

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