Odoo Help


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.


how to add field to sales>> order lines

on 9/7/16, 7:25 AM 187 views

Add the Ship field as a drop down list field of the Ship object to the order lines next to quantity

i tried this code but it gives an error

** ParseError: "ValidateError

Field(s) `arch` failed against a constraint: Invalid view definition

Error details:

Field `origin` does not exist


<record model="ir.ui.view" id="ship_orderline">

<field name="model">sale.order.line</field>

<field name="name">sale.tree.orderline</field>

<field name="inherit_id" ref="sale.view_order_form"/>

<field name="arch" type="xml">

<xpath expr="//field[@name='order_line']/tree/field[@name='product_uom_qty']" position="before">

<field name="ship"/>




Divyang Jariwala
On 9/8/16, 2:08 AM

Hi sreejith,

Here all things seems perfect. if you don't added 'sale' module in depends then add it.

Sunny Dabgar
On 10/6/16, 12:14 AM

Your model should be 'sale.order' not a 'sale.order.line' and make sure view id should bu unique

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

2 follower(s)


Asked: 9/7/16, 7:25 AM
Seen: 187 times
Last updated: 10/6/16, 12:14 AM