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
1.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="purge_property_view" model="ir.ui.view">
  4. <field name="model">cleanup.purge.wizard.property</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_property" model="ir.actions.server">
  12. <field name="name">Purge properties</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_property" />
  16. <field name="code">action = env.get('cleanup.purge.wizard.property').get_wizard_action()</field>
  17. </record>
  18. <record id="purge_property_line_tree" model="ir.ui.view">
  19. <field name="model">cleanup.purge.line.property</field>
  20. <field name="inherit_id" ref="tree_purge_line" />
  21. <field name="mode">primary</field>
  22. <field name="arch" type="xml">
  23. <field name="name" position="after">
  24. <field name="reason" />
  25. </field>
  26. </field>
  27. </record>
  28. <record id="action_purge_property_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_property" />
  33. <field name="code">records.purge()</field>
  34. </record>
  35. <record id="action_purge_property_line_value" model="ir.values">
  36. <field name="name">Purge</field>
  37. <field name="key">action</field>
  38. <field name="key2">client_action_multi</field>
  39. <field name="model">cleanup.purge.line.property</field>
  40. <field name="value" eval="'ir.actions.server,%d' % ref('database_cleanup.action_purge_property_line')" />
  41. </record>
  42. </odoo>