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
1.9 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="name">Form view for purge data wizard</field>
  6. <field name="model">cleanup.purge.wizard.data</field>
  7. <field name="arch" type="xml">
  8. <form string="Purge data entries that refer to missing resources" version="7.0">
  9. <h1>
  10. <field name="name"/>
  11. </h1>
  12. <button type="object" name="purge_all" string="Purge all data" />
  13. <field name="purge_line_ids" colspan="4" nolabel="1">
  14. <tree string="Purge data">
  15. <field name="name" />
  16. <field name="data_id" />
  17. <field name="purged" invisible="0" />
  18. <button type="object" name="purge"
  19. icon="gtk-cancel" string="Purge this data"
  20. attrs="{'invisible': [('purged', '=', True)]}"/>
  21. </tree>
  22. </field>
  23. </form>
  24. </field>
  25. </record>
  26. <record id="action_purge_data" model="ir.actions.server">
  27. <field name="name">Purge data entries that refer to missing resources</field>
  28. <field name="type">ir.actions.server</field>
  29. <field name="state">code</field>
  30. <field name="model_id" ref="database_cleanup.model_cleanup_purge_wizard_data" />
  31. <field name="code">
  32. wizard_id = self.create(cr, uid, {}, context=context)
  33. action = {
  34. 'type': 'ir.actions.act_window',
  35. 'views': [(False, 'form')],
  36. 'res_model': 'cleanup.purge.wizard.data',
  37. 'res_id': wizard_id,
  38. 'flags': {
  39. 'action_buttons': False,
  40. 'sidebar': False,
  41. },
  42. }
  43. </field>
  44. </record>
  45. </data>
  46. </openerp>