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 @@
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/database_cleanup/view/purge_models.xml b/database_cleanup/view/purge_models.xml
index 63dd63d9e..754666e6d 100644
--- a/database_cleanup/view/purge_models.xml
+++ b/database_cleanup/view/purge_models.xml
@@ -34,19 +34,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.model',
- 'res_id': wizard_id,
- 'flags': {
- 'action_buttons': False,
- 'sidebar': False,
- },
-}
-
+ action = self.get_wizard_action(cr, uid, context=context)
@@ -67,9 +55,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_modules.xml b/database_cleanup/view/purge_modules.xml
index a35689c60..73429b517 100644
--- a/database_cleanup/view/purge_modules.xml
+++ b/database_cleanup/view/purge_modules.xml
@@ -34,19 +34,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.module',
- 'res_id': wizard_id,
- 'flags': {
- 'action_buttons': False,
- 'sidebar': False,
- },
-}
-
+ action = self.get_wizard_action(cr, uid, context=context)
@@ -67,9 +55,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_tables.xml b/database_cleanup/view/purge_tables.xml
index 8b1ec2466..66bd28cc1 100644
--- a/database_cleanup/view/purge_tables.xml
+++ b/database_cleanup/view/purge_tables.xml
@@ -30,19 +30,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.table',
- 'res_id': wizard_id,
- 'flags': {
- 'action_buttons': False,
- 'sidebar': False,
- },
-}
-
+ action = self.get_wizard_action(cr, uid, context=context)
@@ -63,9 +51,7 @@ action = {
ir.actions.server
code
-
-self.purge(cr, uid, context.get('active_ids', []), context)
-
+ self.purge(cr, uid, context.get('active_ids', []), context)