[IMP] changes the xml description of the graphs to use the new graph view (and to...
authorGery Debongnie <ged@openerp.com>
Tue, 24 Dec 2013 10:29:42 +0000 (11:29 +0100)
committerGery Debongnie <ged@openerp.com>
Tue, 24 Dec 2013 10:29:42 +0000 (11:29 +0100)
bzr revid: ged@openerp.com-20131224102942-5g4gchmgyloo2s06

addons/sale/board_sale_view.xml
addons/sale/report/sale_report_view.xml
addons/sale/sale_view.xml

index 4839744..021e0c1 100644 (file)
@@ -28,8 +28,8 @@
             <field name="priority" eval="32"/>
             <field name="arch" type="xml">
                 <graph string="Monthly Turnover" type="bar">
-                    <field name="month"/>
-                    <field name="price_total" operator="+"/>
+                    <field name="month" type="row"/>
+                    <field name="price_total" type="measure"/>
                 </graph>
             </field>
         </record>
index 28a6f83..61a6c9e 100644 (file)
          <field name="name">sale.report.graph</field>
          <field name="model">sale.report</field>
          <field name="arch" type="xml">
-             <graph string="Sales Analysis" type="bar">
-                 <field name="product_id"/>
-                 <field name="price_total"/>
-                 <field name="state" group="True"/>
+             <graph string="Sales Analysis" type="bar" stacked="True">
+                 <field name="product_id" type="row"/>
+                 <field name="price_total" type="measure"/>
+                 <field name="state" type="col"/>
              </graph>
          </field>
     </record>
index 60e5c83..da1ec49 100644 (file)
@@ -28,8 +28,8 @@
             <field name="model">sale.order</field>
             <field name="arch" type="xml">
                 <graph string="Sales Orders" type="bar">
-                    <field name="partner_id"/>
-                    <field name="amount_total" operator="+"/>
+                    <field name="partner_id" type="row"/>
+                    <field name="amount_total" type="measure"/>
                 </graph>
             </field>
         </record>