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.
48 lines
1.8 KiB
48 lines
1.8 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<record id="purge_models_view" model="ir.ui.view">
|
|
<field name="name">Form view for purge models wizard</field>
|
|
<field name="model">cleanup.purge.wizard.model</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Purge models" version="7.0">
|
|
<h1>
|
|
<field name="name"/>
|
|
</h1>
|
|
<button type="object" name="purge_all" string="Purge all models" />
|
|
<field name="purge_line_ids" colspan="4" nolabel="1">
|
|
<tree string="Purge models">
|
|
<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_models" model="ir.actions.server">
|
|
<field name="name">Purge models</field>
|
|
<field name="type">ir.actions.server</field>
|
|
<field name="state">code</field>
|
|
<field name="model_id" ref="database_cleanup.model_cleanup_purge_wizard_model" />
|
|
<field name="code">
|
|
wizard_id = self.create(cr, uid, {}, context=context)
|
|
action = {
|
|
'type': 'ir.actions.act_window',
|
|
'views': [(False, 'form')],
|
|
'res_model': 'cleanup.purge.wizard.model',
|
|
'res_id': wizard_id,
|
|
'flags': {
|
|
'action_buttons': False,
|
|
'sidebar': False,
|
|
},
|
|
}
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|