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 @@