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.

43 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="purge_data_view" model="ir.ui.view">
  4. <field name="model">cleanup.purge.wizard.data</field>
  5. <field name="inherit_id" ref="form_purge_wizard" />
  6. <field name="mode">primary</field>
  7. <field name="arch" type="xml">
  8. <field name="name" position="after">
  9. <field name="data_id" />
  10. </field>
  11. </field>
  12. </record>
  13. <record id="action_purge_data" model="ir.actions.server">
  14. <field name="name">Purge data entries that refer to missing resources</field>
  15. <field name="type">ir.actions.server</field>
  16. <field name="state">code</field>
  17. <field name="model_id" ref="database_cleanup.model_cleanup_purge_wizard_data" />
  18. <field name="code">
  19. action = env.get('cleanup.purge.wizard.data').get_wizard_action()
  20. </field>
  21. </record>
  22. <record id="purge_data_line_tree" model="ir.ui.view">
  23. <field name="model">cleanup.purge.line.data</field>
  24. <field name="inherit_id" ref="tree_purge_line" />
  25. <field name="mode">primary</field>
  26. <field name="arch" type="xml">
  27. <field name="name" position="after">
  28. <field name="data_id" />
  29. </field>
  30. </field>
  31. </record>
  32. <record id="action_purge_data_line" model="ir.actions.server">
  33. <field name="name">Purge</field>
  34. <field name="type">ir.actions.server</field>
  35. <field name="state">code</field>
  36. <field name="model_id" ref="database_cleanup.model_cleanup_purge_line_data" />
  37. <field name="code">records.purge()</field>
  38. <field name="binding_model_id" ref="database_cleanup.model_cleanup_purge_line_data" />
  39. </record>
  40. </odoo>