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.

49 lines
2.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="purge_property_view" model="ir.ui.view">
  5. <field name="model">cleanup.purge.wizard.property</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_property" model="ir.actions.server">
  13. <field name="name">Purge properties</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_property" />
  17. <field name="code">action = self.get_wizard_action(cr, uid, context=context)</field>
  18. </record>
  19. <record id="purge_property_line_tree" model="ir.ui.view">
  20. <field name="model">cleanup.purge.line.property</field>
  21. <field name="inherit_id" ref="tree_purge_line" />
  22. <field name="mode">primary</field>
  23. <field name="arch" type="xml">
  24. <field name="name" position="after">
  25. <field name="reason" />
  26. </field>
  27. </field>
  28. </record>
  29. <record id="action_purge_property_line" model="ir.actions.server">
  30. <field name="name">Purge</field>
  31. <field name="type">ir.actions.server</field>
  32. <field name="state">code</field>
  33. <field name="model_id" ref="database_cleanup.model_cleanup_purge_line_property" />
  34. <field name="code">self.purge(cr, uid, context.get('active_ids', []), context)</field>
  35. </record>
  36. <record id="action_purge_property_line_value" model="ir.values">
  37. <field name="name">Purge</field>
  38. <field name="key">action</field>
  39. <field name="key2">client_action_multi</field>
  40. <field name="model">cleanup.purge.line.property</field>
  41. <field name="value" eval="'ir.actions.server,%d' % ref('database_cleanup.action_purge_property_line')" />
  42. </record>
  43. </data>
  44. </openerp>