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.

38 lines
1.7 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="tree_dead_mans_switch_log" model="ir.ui.view">
  5. <field name="model">dead.mans.switch.log</field>
  6. <field name="arch" type="xml">
  7. <tree>
  8. <field name="create_date" />
  9. <field name="cpu" />
  10. <field name="ram" />
  11. <field name="user_count" />
  12. </tree>
  13. </field>
  14. </record>
  15. <record id="graph_dead_mans_switch_log" model="ir.ui.view">
  16. <field name="model">dead.mans.switch.log</field>
  17. <field name="arch" type="xml">
  18. <graph type="pivot">
  19. <field name="create_date" type="row" interval="day" />
  20. <field name="cpu" type="measure" />
  21. <field name="ram" type="measure" />
  22. <field name="user_count" type="measure" />
  23. </graph>
  24. </field>
  25. </record>
  26. <record id="search_dead_mans_switch_log" model="ir.ui.view">
  27. <field name="model">dead.mans.switch.log</field>
  28. <field name="arch" type="xml">
  29. <search>
  30. <filter name="this_month" string="This month"
  31. domain="[('create_date', '>=', (datetime.date.today() - relativedelta(days=31)).strftime('%Y-%m-%d'))]" />
  32. <filter name="this_week" string="This week"
  33. domain="[('create_date', '>=', (datetime.date.today() - relativedelta(days=6)).strftime('%Y-%m-%d'))]" />
  34. </search>
  35. </field>
  36. </record>
  37. </data>
  38. </openerp>