|
@ -10,18 +10,24 @@ |
|
|
<field name="name"/> |
|
|
<field name="name"/> |
|
|
</h1> |
|
|
</h1> |
|
|
<button type="object" name="purge_all" string="Purge all menus" /> |
|
|
<button type="object" name="purge_all" string="Purge all menus" /> |
|
|
|
|
|
<button type="object" name="select_lines" string="Select lines" /> |
|
|
<field name="purge_line_ids"> |
|
|
<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" |
|
|
|
|
|
|
|
|
<form> |
|
|
|
|
|
<group> |
|
|
|
|
|
<field name="name" /> |
|
|
|
|
|
<field name="purged" invisible="0" /> |
|
|
|
|
|
</group> |
|
|
|
|
|
<footer> |
|
|
|
|
|
<button type="object" name="purge" |
|
|
|
|
|
icon="gtk-cancel" string="Purge this menu" |
|
|
attrs="{'invisible': [('purged', '=', True)]}"/> |
|
|
attrs="{'invisible': [('purged', '=', True)]}"/> |
|
|
</tree> |
|
|
|
|
|
|
|
|
</footer> |
|
|
|
|
|
</form> |
|
|
</field> |
|
|
</field> |
|
|
</form> |
|
|
</form> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
<record id="action_purge_menus" model="ir.actions.server"> |
|
|
<record id="action_purge_menus" model="ir.actions.server"> |
|
|
<field name="name">Purge menus</field> |
|
|
<field name="name">Purge menus</field> |
|
|
<field name="type">ir.actions.server</field> |
|
|
<field name="type">ir.actions.server</field> |
|
@ -29,5 +35,35 @@ |
|
|
<field name="model_id" ref="database_cleanup.model_cleanup_purge_wizard_menu" /> |
|
|
<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> |
|
|
<field name="code">action = self.get_wizard_action(cr, uid, context=context)</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<record id="purge_menu_line_tree" model="ir.ui.view"> |
|
|
|
|
|
<field name="model">cleanup.purge.line.menu</field> |
|
|
|
|
|
<field name="arch" type="xml"> |
|
|
|
|
|
<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> |
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<record id="action_purge_menu_line" model="ir.actions.server"> |
|
|
|
|
|
<field name="name">Purge</field> |
|
|
|
|
|
<field name="type">ir.actions.server</field> |
|
|
|
|
|
<field name="state">code</field> |
|
|
|
|
|
<field name="model_id" ref="database_cleanup.model_cleanup_purge_line_menu" /> |
|
|
|
|
|
<field name="code">self.purge(cr, uid, context.get('active_ids', []), context)</field> |
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<record id="action_purge_menu_line_value" model="ir.values"> |
|
|
|
|
|
<field name="name">Purge</field> |
|
|
|
|
|
<field name="key">action</field> |
|
|
|
|
|
<field name="key2">client_action_multi</field> |
|
|
|
|
|
<field name="model">cleanup.purge.line.menu</field> |
|
|
|
|
|
<field name="value" eval="'ir.actions.server,%d' % ref('database_cleanup.action_purge_menu_line')" /> |
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
</data> |
|
|
</data> |
|
|
</openerp> |
|
|
</openerp> |