diff --git a/database_cleanup/view/purge_columns.xml b/database_cleanup/view/purge_columns.xml index 8e0aa2578..0f335ea28 100644 --- a/database_cleanup/view/purge_columns.xml +++ b/database_cleanup/view/purge_columns.xml @@ -35,19 +35,7 @@ ir.actions.server code - -wizard_id = self.create(cr, uid, {}, context=context) -action = { - 'type': 'ir.actions.act_window', - 'views': [(False, 'form')], - 'res_model': 'cleanup.purge.wizard.column', - 'res_id': wizard_id, - 'flags': { - 'action_buttons': False, - 'sidebar': False, - }, -} - + action = self.get_wizard_action(cr, uid, context=context) @@ -69,9 +57,7 @@ action = { ir.actions.server code - -self.purge(cr, uid, context.get('active_ids', []), context) - + self.purge(cr, uid, context.get('active_ids', []), context) diff --git a/database_cleanup/view/purge_data.xml b/database_cleanup/view/purge_data.xml index 900c90fa3..7fa361b90 100644 --- a/database_cleanup/view/purge_data.xml +++ b/database_cleanup/view/purge_data.xml @@ -35,19 +35,7 @@ ir.actions.server code - -wizard_id = self.create(cr, uid, {}, context=context) -action = { - 'type': 'ir.actions.act_window', - 'views': [(False, 'form')], - 'res_model': 'cleanup.purge.wizard.data', - 'res_id': wizard_id, - 'flags': { - 'action_buttons': False, - 'sidebar': False, - }, -} - + action = self.get_wizard_action(cr, uid, context=context) @@ -69,9 +57,7 @@ action = { ir.actions.server code - -self.purge(cr, uid, context.get('active_ids', []), context) - + self.purge(cr, uid, context.get('active_ids', []), context) diff --git a/database_cleanup/view/purge_menus.xml b/database_cleanup/view/purge_menus.xml index fc9a5a2cc..23913cfe1 100644 --- a/database_cleanup/view/purge_menus.xml +++ b/database_cleanup/view/purge_menus.xml @@ -10,18 +10,24 @@