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
33 lines
1.5 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<record id="purge_menus_view" model="ir.ui.view">
|
|
<field name="name">Form view for purge menus wizard</field>
|
|
<field name="model">cleanup.purge.wizard.menu</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<h1>
|
|
<field name="name"/>
|
|
</h1>
|
|
<button type="object" name="purge_all" string="Purge all menus" />
|
|
<field name="purge_line_ids">
|
|
<tree>
|
|
<field name="name" />
|
|
<field name="purged" invisible="0" />
|
|
<button type="object" name="purge"
|
|
icon="gtk-cancel" string="Purge this model"
|
|
attrs="{'invisible': [('purged', '=', True)]}"/>
|
|
</tree>
|
|
</field>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="action_purge_menus" model="ir.actions.server">
|
|
<field name="name">Purge menus</field>
|
|
<field name="type">ir.actions.server</field>
|
|
<field name="state">code</field>
|
|
<field name="model_id" ref="database_cleanup.model_cleanup_purge_wizard_menu" />
|
|
<field name="code">action = self.get_wizard_action(cr, uid, context=context)</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|