i need to add one customer reference field in groupby in saleorder tree view in openerp
pls find me a solution
i need the source code for inheriting the sale.order
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
i need to add one customer reference field in groupby in saleorder tree view in openerp
pls find me a solution
i need the source code for inheriting the sale.order
Hi Jyothi, you can achieve this by using the following code
<record id="view_search_id" model="ir.ui.view">
<field name="name">sale.order</field>
<field name="model">sale.order</field>
<field name="type">search</field>
<field name="inherit_id" ref="sale.view_sales_order_filter"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="customer_reference"/>
</field>
<xpath expr="//group[@string='Group By...']/filter[@string='Order Date']" position="after">
<filter string="Customer Reference" icon="terp-personal" domain="[]" context="{'group_by':'customer_reference'}"/>
</xpath>
</field>
</record>