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.

50 lines
2.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="purge_data_view" model="ir.ui.view">
  5. <field name="model">cleanup.purge.wizard.data</field>
  6. <field name="inherit_id" ref="form_purge_wizard" />
  7. <field name="mode">primary</field>
  8. <field name="arch" type="xml">
  9. <field name="name" position="after">
  10. <field name="data_id" />
  11. </field>
  12. </field>
  13. </record>
  14. <record id="action_purge_data" model="ir.actions.server">
  15. <field name="name">Purge data entries that refer to missing resources</field>
  16. <field name="type">ir.actions.server</field>
  17. <field name="state">code</field>
  18. <field name="model_id" ref="database_cleanup.model_cleanup_purge_wizard_data" />
  19. <field name="code">action = self.get_wizard_action(cr, uid, context=context)</field>
  20. </record>
  21. <record id="purge_data_line_tree" model="ir.ui.view">
  22. <field name="model">cleanup.purge.line.data</field>
  23. <field name="inherit_id" ref="tree_purge_line" />
  24. <field name="mode">primary</field>
  25. <field name="arch" type="xml">
  26. <field name="name" position="after">
  27. <field name="data_id" />
  28. </field>
  29. </field>
  30. </record>
  31. <record id="action_purge_data_line" model="ir.actions.server">
  32. <field name="name">Purge</field>
  33. <field name="type">ir.actions.server</field>
  34. <field name="state">code</field>
  35. <field name="model_id" ref="database_cleanup.model_cleanup_purge_line_data" />
  36. <field name="code">self.purge(cr, uid, context.get('active_ids', []), context)</field>
  37. </record>
  38. <record id="action_purge_data_line_value" model="ir.values">
  39. <field name="name">Purge</field>
  40. <field name="key">action</field>
  41. <field name="key2">client_action_multi</field>
  42. <field name="model">cleanup.purge.line.data</field>
  43. <field name="value" eval="'ir.actions.server,%d' % ref('database_cleanup.action_purge_data_line')" />
  44. </record>
  45. </data>
  46. </openerp>