pos_sale_report_view.xml 2.5 KB

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