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.

71 lines
3.3 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. <button type="object" name="select_lines" string="Select lines" />
  14. <field name="purge_line_ids" colspan="4" nolabel="1">
  15. <form string="Purge data">
  16. <group>
  17. <field name="name" />
  18. <field name="data_id" />
  19. <field name="purged" invisible="0" />
  20. </group>
  21. <footer>
  22. <button type="object" name="purge"
  23. icon="gtk-cancel" string="Purge this data"
  24. attrs="{'invisible': [('purged', '=', True)]}"/>
  25. </footer>
  26. </form>
  27. </field>
  28. </form>
  29. </field>
  30. </record>
  31. <record id="action_purge_data" model="ir.actions.server">
  32. <field name="name">Purge data entries that refer to missing resources</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_wizard_data" />
  36. <field name="code">action = self.get_wizard_action(cr, uid, context=context)</field>
  37. </record>
  38. <record id="purge_data_line_tree" model="ir.ui.view">
  39. <field name="model">cleanup.purge.line.data</field>
  40. <field name="arch" type="xml">
  41. <tree string="Purge data">
  42. <field name="name" />
  43. <field name="data_id" />
  44. <field name="purged" invisible="0" />
  45. <button type="object" name="purge"
  46. icon="gtk-cancel" string="Purge this data"
  47. attrs="{'invisible': [('purged', '=', True)]}"/>
  48. </tree>
  49. </field>
  50. </record>
  51. <record id="action_purge_data_line" model="ir.actions.server">
  52. <field name="name">Purge</field>
  53. <field name="type">ir.actions.server</field>
  54. <field name="state">code</field>
  55. <field name="model_id" ref="database_cleanup.model_cleanup_purge_line_data" />
  56. <field name="code">self.purge(cr, uid, context.get('active_ids', []), context)</field>
  57. </record>
  58. <record id="action_purge_data_line_value" model="ir.values">
  59. <field name="name">Purge</field>
  60. <field name="key">action</field>
  61. <field name="key2">client_action_multi</field>
  62. <field name="model">cleanup.purge.line.data</field>
  63. <field name="value" eval="'ir.actions.server,%d' % ref('database_cleanup.action_purge_data_line')" />
  64. </record>
  65. </data>
  66. </openerp>