diff --git a/database_cleanup/model/purge_wizard.py b/database_cleanup/model/purge_wizard.py
index ae9430b90..f02f5dbc2 100644
--- a/database_cleanup/model/purge_wizard.py
+++ b/database_cleanup/model/purge_wizard.py
@@ -73,6 +73,15 @@ class PurgeWizard(orm.AbstractModel):
},
}
+ def select_lines(self, cr, uid, ids, context=None):
+ return {
+ 'type': 'ir.actions.act_window',
+ 'name': 'Select lines to purge',
+ 'views': [(False, 'tree'), (False, 'form')],
+ 'res_model': self._columns['purge_line_ids']._obj,
+ 'domain': [('wizard_id', 'in', ids)],
+ }
+
_columns = {
'name': fields.char('Name', size=64, readonly=True),
}
diff --git a/database_cleanup/view/purge_columns.xml b/database_cleanup/view/purge_columns.xml
index 96aa1212e..8e0aa2578 100644
--- a/database_cleanup/view/purge_columns.xml
+++ b/database_cleanup/view/purge_columns.xml
@@ -11,15 +11,20 @@
+
-
-
-
-
-
-
+
@@ -45,5 +50,36 @@ action = {
+
+ cleanup.purge.line.column
+
+
+
+
+
+
+
+
+
+
+
+ Purge
+ ir.actions.server
+ code
+
+
+self.purge(cr, uid, context.get('active_ids', []), context)
+
+
+
+
+ Purge
+ action
+ client_action_multi
+ cleanup.purge.line.column
+
+
diff --git a/database_cleanup/view/purge_data.xml b/database_cleanup/view/purge_data.xml
index 890d0d450..900c90fa3 100644
--- a/database_cleanup/view/purge_data.xml
+++ b/database_cleanup/view/purge_data.xml
@@ -11,15 +11,20 @@
+
-
-
-
-
-
-
+
@@ -45,5 +50,36 @@ action = {
+
+ cleanup.purge.line.data
+
+
+
+
+
+
+
+
+
+
+
+ Purge
+ ir.actions.server
+ code
+
+
+self.purge(cr, uid, context.get('active_ids', []), context)
+
+
+
+
+ Purge
+ action
+ client_action_multi
+ cleanup.purge.line.data
+
+
diff --git a/database_cleanup/view/purge_models.xml b/database_cleanup/view/purge_models.xml
index 2dc25c74c..63dd63d9e 100644
--- a/database_cleanup/view/purge_models.xml
+++ b/database_cleanup/view/purge_models.xml
@@ -11,14 +11,19 @@
+
-
-
-
-
-
+
@@ -44,5 +49,36 @@ action = {
+
+ cleanup.purge.line.model
+
+
+
+
+
+
+
+
+
+
+ Purge
+ ir.actions.server
+ code
+
+
+self.purge(cr, uid, context.get('active_ids', []), context)
+
+
+
+
+ Purge
+ action
+ client_action_multi
+ cleanup.purge.line.model
+
+
+
diff --git a/database_cleanup/view/purge_modules.xml b/database_cleanup/view/purge_modules.xml
index 65dd5473a..a35689c60 100644
--- a/database_cleanup/view/purge_modules.xml
+++ b/database_cleanup/view/purge_modules.xml
@@ -11,14 +11,19 @@
+
-
-
-
-
-
+
@@ -44,5 +49,36 @@ action = {
+
+ cleanup.purge.line.module
+
+
+
+
+
+
+
+
+
+
+ Purge
+ ir.actions.server
+ code
+
+
+self.purge(cr, uid, context.get('active_ids', []), context)
+
+
+
+
+ Purge
+ action
+ client_action_multi
+ cleanup.purge.line.module
+
+
+
diff --git a/database_cleanup/view/purge_tables.xml b/database_cleanup/view/purge_tables.xml
index b963a2f02..8b1ec2466 100644
--- a/database_cleanup/view/purge_tables.xml
+++ b/database_cleanup/view/purge_tables.xml
@@ -11,6 +11,7 @@
+
@@ -44,5 +45,35 @@ action = {
+
+ cleanup.purge.line.table
+
+
+
+
+
+
+
+
+
+
+ Purge
+ ir.actions.server
+ code
+
+
+self.purge(cr, uid, context.get('active_ids', []), context)
+
+
+
+
+ Purge
+ action
+ client_action_multi
+ cleanup.purge.line.table
+
+