pos_sale_report_view.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="pos_sale_report_search" model="ir.ui.view">
  5. <field name="name">pos.sale.report.search</field>
  6. <field name="model">pos.sale.report</field>
  7. <field name="arch" type="xml">
  8. <search string="POS orders and Sale orders aggregated report">
  9. <field name="product_tmpl_id"/>
  10. <field name="product_id"/>
  11. <field name="user_id" string="Comercial"/>
  12. <field name="partner_id" string="Cliente"/>
  13. <filter name="today" string="Hoy"
  14. domain="[('date', '=', context_today().strftime('%Y-%m-%d'))]"/>
  15. <filter name="yesterday" string="Ayer"
  16. domain="[('date', '=', (context_today() + datetime.timedelta(days=-1)).strftime('%Y-%m-%d'))]"/>
  17. <group string="Agrupado por" name="groupby">
  18. <filter name="date_groupby" string="Fecha" context="{'group_by': 'date'}"/>
  19. <filter name="product_tmpl_groupby" string="Producto" context="{'group_by': 'product_tmpl_id'}"/>
  20. <filter name="user_groupby" string="Comercial" context="{'group_by': 'user_id'}"/>
  21. <filter name="categ_groupby" string="Categoría" context="{'group_by': 'categ_id'}"/>
  22. <filter name="product_groupby" string="Variantes" context="{'group_by': 'product_id'}"/>
  23. <filter name="origin_groupby" string="Origen" context="{'group_by': 'origin'}"/>
  24. </group>
  25. </search>
  26. </field>
  27. </record>
  28. <record id="pos_sale_report_graph" model="ir.ui.view">
  29. <field name="name">pos.sale.report.graph</field>
  30. <field name="model">pos.sale.report</field>
  31. <field name="arch" type="xml">
  32. <graph string="POS orders and Sale Orders aggregated report" type="pivot">
  33. <field name="origin" type="col"/>
  34. <field name="store_id" type="row"/>
  35. <!-- <field name="date" type="row" interval="month"/> -->
  36. <field name="standard_price" type="measure"/>
  37. <field name="qty" type="measure"/>
  38. <field name="subtotal_taxed" type="measure"/>
  39. <!-- <field name="utility" type="measure"/> -->
  40. </graph>
  41. </field>
  42. </record>
  43. <record id="pos_sale_report_action" model="ir.actions.act_window">
  44. <field name="name">Análisis Detallado de Ventas</field>
  45. <field name="res_model">pos.sale.report</field>
  46. <field name="view_mode">graph</field>
  47. </record>
  48. <!-- <menuitem id="pos_sale_report_title_menu" parent="base.menu_reporting"
  49. name="POS + Sales" sequence="9"/> -->
  50. <menuitem id="pos_sale_report_menu" action="pos_sale_report_action"
  51. parent="eiru_reports.sale_parent_menu" sequence="10"/>
  52. </data>
  53. </openerp>