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 fields to groupby in saleorder tree view?

on 9/23/14, 2:48 AM 797 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



| 5 7 7
Bangalore, India
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'}"/>


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

1 follower(s)


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