[IMP] sale: add the group by in report and sale list view
authorsbh (Open ERP) <sbh@tinyerp.com>
Thu, 4 Feb 2010 04:57:54 +0000 (10:27 +0530)
committersbh (Open ERP) <sbh@tinyerp.com>
Thu, 4 Feb 2010 04:57:54 +0000 (10:27 +0530)
bzr revid: sbh@tinyerp.com-20100204045754-epxswosrjzn3n8pc

addons/report_sale/report_sale_view.xml
addons/sale/sale_view.xml

index 8992e88..9ba2896 100644 (file)
@@ -65,7 +65,7 @@
                            <field name="product_id" select="1"/>
                            <field name="state" select="1"/>
                                <group expand="1" string="Group By..." colspan="4" col="20">
-                        <filter string="By Year" icon="terp-sale" domain="[]"  context="{'group_by'name'}"/>
+                        <filter string="By Year" icon="terp-sale" domain="[]"  context="{'group_by':'name'}"/>
                         <filter string="By Month" icon="terp-sale" domain="[]" context="{'group_by':'month'}"/>
                         <filter string="By State" icon="terp-sale" domain="[]" context="{'group_by':'state'}"/>
                         <filter string="By Product" icon="terp-sale" domain="[]" context="{'group_by':'product_id'}"/>
                            <field name="category_id" select="1"/>
                            <field name="state" select="1"/>
                                <group expand="1" string="Group By..." colspan="4" col="20">
-                        <filter string="By Year" icon="terp-sale" domain="[]"  context="{'group_by'name'}"/>
+                        <filter string="By Year" icon="terp-sale" domain="[]"  context="{'group_by':'name'}"/>
                         <filter string="By Month" icon="terp-sale" domain="[]" context="{'group_by':'month'}"/>
                         <filter string="By State" icon="terp-sale" domain="[]" context="{'group_by':'state'}"/>
                         <filter string="By Category" icon="terp-sale" domain="[]" context="{'group_by':'category_id'}"/>
index df89d65..7cfa650 100644 (file)
                         </field>
                         <field name="date_order" select="1"/>
                                <group expand="1" string="Group By..." colspan="4" col="20">
-                        <filter string="By User" icon="terp-sale" domain="[]"  context="{'group_by':'user_id'}"/>
                         <filter string="By Parnter" icon="terp-sale" domain="[]" context="{'group_by':'partner_id'}"/>
+                        <filter string="By State" icon="terp-sale" domain="[]" context="{'group_by':'state'}"/>
                         <filter string="By Order Date" icon="terp-sale" domain="[]" context="{'group_by':'date_order'}"/>
                                                </group>                        
                    </group>