You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- vue -->
  4. <record model="ir.ui.view" id="beesdoo_report_visits_pivot">
  5. <field name="name">beesdoo.report.visits.pivot</field>
  6. <field name="model">beesdoo.report.visits</field>
  7. <field name="arch" type="xml">
  8. <pivot>
  9. <field name="week" />
  10. <field name="type" type="column"/>
  11. <field name="visits" type="measure"/>
  12. </pivot>
  13. </field>
  14. </record>
  15. <record model="ir.ui.view" id="beesdoo_report_visits_graph">
  16. <field name="name">beesdoo.report.visits.graph</field>
  17. <field name="model">beesdoo.report.visits</field>
  18. <field name="arch" type="xml">
  19. <graph type="bar" stacked="False">
  20. <field name="week" />
  21. <field name="type" />
  22. <field name="visits" type="measure"/>
  23. </graph>
  24. </field>
  25. </record>
  26. <!-- Action -->
  27. <record model="ir.actions.act_window" id="beesdoo_report_visits_action">
  28. <field name="name">Report on visits</field>
  29. <field name="res_model">beesdoo.report.visits</field>
  30. <field name="view_mode">pivot,graph</field>
  31. </record>
  32. <!-- ir.ui.menu -->
  33. <menuitem id="beesdoo_report"
  34. parent="base.menu_reporting_config"
  35. name="Beesdoo report" />
  36. <menuitem id="beesdoo_report_visit"
  37. parent="beesdoo_report"
  38. name="Visits report"
  39. action="beesdoo_report_visits_action" />
  40. </odoo>