|
|
@ -24,12 +24,24 @@ |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="action_purge_models" model="ir.actions.act_window"> |
|
|
|
<record id="action_purge_models" model="ir.actions.server"> |
|
|
|
<field name="name">Purge models</field> |
|
|
|
<field name="type">ir.actions.act_window</field> |
|
|
|
<field name="res_model">cleanup.purge.wizard.model</field> |
|
|
|
<field name="view_type">form</field> |
|
|
|
<field name="view_mode">form</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> |
|
|
|