From 8c0bb93dcc729caac46254c41f039070d4955291 Mon Sep 17 00:00:00 2001 From: Anu Patel Date: Mon, 6 May 2013 19:34:09 +0530 Subject: [PATCH] [IMP] mass_editing: Improved the code based on error log. --- mass_editing/mass_editing.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mass_editing/mass_editing.py b/mass_editing/mass_editing.py index 1024d423e..5fe788c70 100644 --- a/mass_editing/mass_editing.py +++ b/mass_editing/mass_editing.py @@ -102,7 +102,7 @@ class mass_object(orm.Model): }, context) return True - def unlink(self, cr, uid, ids, context=None): + def unlink_action(self, cr, uid, ids, context=None): for template in self.browse(cr, uid, ids, context=context): try: if template.ref_ir_act_window: @@ -112,6 +112,10 @@ class mass_object(orm.Model): ir_values_obj.unlink(cr, uid, template.ref_ir_value.id, context) except: raise osv.except_osv(_("Warning"), _("Deletion of the action record failed.")) + return True + + def unlink(self, cr, uid, ids, context=None): + self.unlink_action(cr, uid, ids, context) return super(mass_object, self).unlink(cr, uid, ids, context) def copy(self, cr, uid, record_id, default=None, context=None):