From 098f815d69d5ae9e2897ad0cefef7d1a69dd8e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 21 Feb 2013 23:31:08 +0100 Subject: [PATCH] Delete takes instance not ids issue3015 --- trytond/ir/action.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trytond/ir/action.py b/trytond/ir/action.py index 4a7694643b..d0e9a66581 100644 --- a/trytond/ir/action.py +++ b/trytond/ir/action.py @@ -764,7 +764,7 @@ class ActionActWindow(ModelSQL, ModelView): def delete(cls, act_windows): Action = Pool().get('ir.action') - actions = [x.action.id for x in act_windows] + actions = [x.action for x in act_windows] super(ActionActWindow, cls).delete(act_windows) Action.delete(actions) @@ -910,7 +910,7 @@ class ActionWizard(ModelSQL, ModelView): pool = Pool() Action = pool.get('ir.action') - actions = [x.action.id for x in wizards] + actions = [x.action for x in wizards] super(ActionWizard, cls).delete(wizards) Action.delete(actions)