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.

1

xpath syntax for purchase requisition

By
mihir shah
on 5/6/13, 5:48 AM 1,653 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

3

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

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>

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

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: 5/6/13, 5:48 AM
Seen: 1653 times
Last updated: 3/16/15, 8:10 AM