Delete takes instance not ids

issue3015
This commit is contained in:
Cédric Krier committed 2013-02-21 23:31:08 +01:00
1 parent e7ee28a15b
commit 098f815d69
1 file changed
+2 -2
+2 -2
View File
@@ -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)