Hi all,
I am trying to add a new column into Sales Order Lines (the Order Lines page in Quotation/Sales Order). I have tried different codes..but couldn't get rid of the ValidateError.. I have attached my codes below.. much appreciate your kind advice!
sale.py:
from openerp.osv import fields, osv
class sale_order(osv.osv):
_name='sale.order'
_inherit='sale.order'
_columns={
'country':fields.char('Country', size=32),
}
sale_order()
<openerp> <data>
<record model="ir.ui.view" id="moleac_quotation_form_view">
<field name="name">Quotation Inherited View</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<data>
<!--Order Line-->
<xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='product_id']" position="after">
<field name="country" />
</xpath>
</data>
</field>
</record>
</data>
</openerp>
I also tried...but it did not work
<!--Order Line-->
<field name="tax_id" position="before">
<field name="country" />
</field>