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.

39 lines
1.5 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">records.purge()</field>
  34. <field name="binding_model_id" ref="database_cleanup.model_cleanup_purge_line_menu" />
  35. </record>
  36. </odoo>