From f74b525a4dfa581e5cf7d36826f8589ae1660fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 15 Mar 2013 00:52:16 +0100 Subject: [PATCH] Fix Warning.check to use instance for delete issue3065 review715002 --- trytond/res/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/res/user.py b/trytond/res/user.py index a7a3cd9937..df20602b25 100644 --- a/trytond/res/user.py +++ b/trytond/res/user.py @@ -546,7 +546,7 @@ class Warning_(ModelSQL, ModelView): ]) if not warnings: return True - cls.delete([x.id for x in warnings if not x.always]) + cls.delete([x for x in warnings if not x.always]) return False