Odoo Help


how to add fields to groupby in saleorder tree view?

on 9/23/14, 2:48 AM 1,089 views

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

On 9/23/14, 9:01 AM

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"/>
                <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'}"/>


About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/23/14, 2:48 AM
Seen: 1089 times
Last updated: 3/16/15, 8:10 AM