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.
47 lines
2.0 KiB
47 lines
2.0 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<record id="purge_menus_view" model="ir.ui.view">
|
|
<field name="model">cleanup.purge.wizard.menu</field>
|
|
<field name="inherit_id" ref="form_purge_wizard" />
|
|
<field name="mode">primary</field>
|
|
<field name="arch" type="xml">
|
|
<data/>
|
|
</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>
|
|
|
|
<record id="purge_menu_line_tree" model="ir.ui.view">
|
|
<field name="model">cleanup.purge.line.menu</field>
|
|
<field name="inherit_id" ref="tree_purge_line" />
|
|
<field name="mode">primary</field>
|
|
<field name="arch" type="xml">
|
|
<data />
|
|
</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>
|
|
</openerp>
|