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.

48 lines
1.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="purge_menus_view" model="ir.ui.view">
  4. <field name="model">cleanup.purge.wizard.menu</field>
  5. <field name="inherit_id" ref="form_purge_wizard" />
  6. <field name="mode">primary</field>
  7. <field name="arch" type="xml">
  8. <data/>
  9. </field>
  10. </record>
  11. <record id="action_purge_menus" model="ir.actions.server">
  12. <field name="name">Purge menus</field>
  13. <field name="type">ir.actions.server</field>
  14. <field name="state">code</field>
  15. <field name="model_id" ref="database_cleanup.model_cleanup_purge_wizard_menu" />
  16. <field name="code">
  17. action = env.get('cleanup.purge.wizard.menu').get_wizard_action()
  18. </field>
  19. </record>
  20. <record id="purge_menu_line_tree" model="ir.ui.view">
  21. <field name="model">cleanup.purge.line.menu</field>
  22. <field name="inherit_id" ref="tree_purge_line" />
  23. <field name="mode">primary</field>
  24. <field name="arch" type="xml">
  25. <data />
  26. </field>
  27. </record>
  28. <record id="action_purge_menu_line" model="ir.actions.server">
  29. <field name="name">Purge</field>
  30. <field name="type">ir.actions.server</field>
  31. <field name="state">code</field>
  32. <field name="model_id" ref="database_cleanup.model_cleanup_purge_line_menu" />
  33. <field name="code">
  34. env.get('cleanup.purge.line.menu').purge()
  35. </field>
  36. </record>
  37. <record id="action_purge_menu_line_value" model="ir.values">
  38. <field name="name">Purge</field>
  39. <field name="key">action</field>
  40. <field name="key2">client_action_multi</field>
  41. <field name="model">cleanup.purge.line.menu</field>
  42. <field name="value" eval="'ir.actions.server,%d' % ref('database_cleanup.action_purge_menu_line')" />
  43. </record>
  44. </odoo>