<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data>
        
        <menuitem id="next_id_83" name="Graphs" parent="report_sale.next_id_82"/><menuitem icon="STOCK_PRINT" id="ir_ui_menu1" name="Monthly Sales Turnover Over One Year" parent="next_id_83"/>
        <menuitem icon="STOCK_PRINT" id="ir_ui_menu2" name="Daily Sales Turnover Over One Year" parent="report_sale.next_id_83"/>
        <menuitem icon="STOCK_PRINT" id="ir_ui_menu3" name="Monthly Cumulated Sales Turnover Over One Year" parent="report_sale.next_id_83"/>
        
        <!-- reports -->
        <record id="ir_report_custom_4" model="ir.report.custom">
            <field model="ir.model" name="model_id" search="[('model','=','sale.order')]"/>
            <field name="title">Monthly sales turnover over one year</field>
            <field name="name">Monthly sales turnover over one year</field>
            <field name="frequency">M</field>
            <field name="type">bar</field>
            <field name="menu_id" ref="ir_ui_menu1"/>
        </record>
        
        <record id="ir_report_custom_5" model="ir.report.custom">
            <field model="ir.model" name="model_id" search="[('model','=','sale.order')]"/>
            <field name="title">Daily sales turnover over one year</field>
            <field name="name">Daily sales turnover over one year</field>
            <field name="frequency">D</field>
            <field name="type">bar</field>
            <field name="menu_id" ref="ir_ui_menu2"/>
        </record>
        
        <record id="ir_report_custom_6" model="ir.report.custom">
            <field model="ir.model" name="model_id" search="[('model','=','sale.order')]"/>
            <field name="title">Monthly cumulated sales turnover over one year</field>
            <field name="name">Monthly cumulated sales turnover over one year</field>
            <field name="frequency">M</field>
            <field name="type">bar</field>
            <field name="menu_id" ref="ir_ui_menu3"/>
        </record>
        
        <!-- fields -->
        <record id="ir_report_custom_fields_0" model="ir.report.custom.fields">
            <field model="ir.model.fields" name="field_child0" search="[('name','=','date_order'), ('model','=','sale.order')]"/>
            <field name="sequence">1</field>
            <field eval="None" name="operation"/>
            <field name="report_id" ref="ir_report_custom_4"/>
            <field name="name">order date</field>
            <field name="groupby">1</field>
        </record>
        <record id="ir_report_custom_fields_sales" model="ir.report.custom.fields">
            <field name="operation">calc_sum</field>
            <field name="sequence">2</field>
            <field model="ir.model.fields" name="field_child1" search="[('name','=','price_subtotal'), ('model','=','sale.order.line')]"/>
            <field model="ir.model.fields" name="field_child0" search="[('name','=','order_line'), ('model','=','sale.order')]"/>
            <field name="report_id" ref="ir_report_custom_4"/>
            <field name="name">sales</field>
        </record>
        
        <record id="ir_report_custom_fields_2" model="ir.report.custom.fields">
            <field model="ir.model.fields" name="field_child0" search="[('name','=','date_order'), ('model','=','sale.order')]"/>
            <field name="sequence">1</field>
            <field eval="None" name="operation"/>
            <field name="report_id" ref="ir_report_custom_5"/>
            <field name="name">order date</field>
            <field name="groupby">1</field>
        </record>
        <record id="ir_report_custom_fields_sale" model="ir.report.custom.fields">
            <field name="operation">calc_sum</field>
            <field name="sequence">2</field>
            <field model="ir.model.fields" name="field_child1" search="[('name','=','price_subtotal'), ('model','=','sale.order.line')]"/>
            <field model="ir.model.fields" name="field_child0" search="[('name','=','order_line'),('model','=','sale.order')]"/>
            <field name="cumulate">1</field>
            <field name="report_id" ref="ir_report_custom_5"/>
            <field name="name">sale</field>
        </record>
        
        <record id="ir_report_custom_fields_1" model="ir.report.custom.fields">
            <field model="ir.model.fields" name="field_child0" search="[('name','=','date_order'), ('model','=','sale.order')]"/>
            <field name="sequence">1</field>
            <field name="operation">calc_sum</field>
            <field name="report_id" ref="ir_report_custom_6"/>
            <field name="name">order date</field>
            <field name="groupby">1</field>
        </record>
        <record id="ir_report_custom_fields_sales2" model="ir.report.custom.fields">
            <field name="sequence">2</field>
            <field model="ir.model.fields" name="field_child1" search="[('name','=','price_subtotal'), ('model','=','sale.order.line')]"/>
            <field model="ir.model.fields" name="field_child0" search="[('name','=','order_line'), ('model','=','sale.order')]"/>
            <field name="operation">calc_sum</field>
            <field name="cumulate">1</field>
            <field name="report_id" ref="ir_report_custom_6"/>
            <field name="name">sales</field>
        </record>
        
        <function eval="[[ir_report_custom_4]]" model="ir.report.custom" name="subscribe"/>
        <function eval="[[ir_report_custom_5]]" model="ir.report.custom" name="subscribe"/>
        <function eval="[[ir_report_custom_6]]" model="ir.report.custom" name="subscribe"/>
        
    </data>
</terp>