123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record id="pos_sale_report_search" model="ir.ui.view">
- <field name="name">pos.sale.report.search</field>
- <field name="model">pos.sale.report</field>
- <field name="arch" type="xml">
- <search string="POS orders and Sale orders aggregated report">
- <field name="product_tmpl_id"/>
- <field name="product_id"/>
- <field name="user_id" string="Comercial"/>
- <field name="partner_id" string="Cliente"/>
- <filter name="today" string="Hoy"
- domain="[('date', '=', context_today().strftime('%Y-%m-%d'))]"/>
- <filter name="yesterday" string="Ayer"
- domain="[('date', '=', (context_today() + datetime.timedelta(days=-1)).strftime('%Y-%m-%d'))]"/>
- <group string="Agrupado por" name="groupby">
- <filter name="date_groupby" string="Fecha" context="{'group_by': 'date'}"/>
- <filter name="product_tmpl_groupby" string="Producto" context="{'group_by': 'product_tmpl_id'}"/>
- <filter name="user_groupby" string="Comercial" context="{'group_by': 'user_id'}"/>
- <filter name="categ_groupby" string="Categoría" context="{'group_by': 'categ_id'}"/>
- <filter name="product_groupby" string="Variantes" context="{'group_by': 'product_id'}"/>
- <filter name="origin_groupby" string="Origen" context="{'group_by': 'origin'}"/>
- </group>
- </search>
- </field>
- </record>
- <record id="pos_sale_report_graph" model="ir.ui.view">
- <field name="name">pos.sale.report.graph</field>
- <field name="model">pos.sale.report</field>
- <field name="arch" type="xml">
- <graph string="POS orders and Sale Orders aggregated report" type="pivot">
- <field name="origin" type="col"/>
- <field name="store_id" type="row"/>
- <!-- <field name="date" type="row" interval="month"/> -->
- <field name="standard_price" type="measure"/>
- <field name="qty" type="measure"/>
- <field name="subtotal_taxed" type="measure"/>
- <!-- <field name="utility" type="measure"/> -->
- </graph>
- </field>
- </record>
- <record id="pos_sale_report_action" model="ir.actions.act_window">
- <field name="name">Análisis Detallado de Ventas</field>
- <field name="res_model">pos.sale.report</field>
- <field name="view_mode">graph</field>
- </record>
- <!-- <menuitem id="pos_sale_report_title_menu" parent="base.menu_reporting"
- name="POS + Sales" sequence="9"/> -->
- <menuitem id="pos_sale_report_menu" action="pos_sale_report_action"
- parent="eiru_reports.sale_parent_menu" sequence="10"/>
- </data>
- </openerp>
|