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.

33 lines
1.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="purge_menus_view" model="ir.ui.view">
  5. <field name="name">Form view for purge menus wizard</field>
  6. <field name="model">cleanup.purge.wizard.menu</field>
  7. <field name="arch" type="xml">
  8. <form>
  9. <h1>
  10. <field name="name"/>
  11. </h1>
  12. <button type="object" name="purge_all" string="Purge all menus" />
  13. <field name="purge_line_ids">
  14. <tree>
  15. <field name="name" />
  16. <field name="purged" invisible="0" />
  17. <button type="object" name="purge"
  18. icon="gtk-cancel" string="Purge this model"
  19. attrs="{'invisible': [('purged', '=', True)]}"/>
  20. </tree>
  21. </field>
  22. </form>
  23. </field>
  24. </record>
  25. <record id="action_purge_menus" model="ir.actions.server">
  26. <field name="name">Purge menus</field>
  27. <field name="type">ir.actions.server</field>
  28. <field name="state">code</field>
  29. <field name="model_id" ref="database_cleanup.model_cleanup_purge_wizard_menu" />
  30. <field name="code">action = self.get_wizard_action(cr, uid, context=context)</field>
  31. </record>
  32. </data>
  33. </openerp>