analytic_invoice_report_view.xml 2.4 KB

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