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.

47 lines
2.0 KiB

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