From c5a116da368d2a43c6a18b74f76c37283f2bf4a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 6 Nov 2010 17:45:09 +0100 Subject: [PATCH] Fix typo for issue1747 (transplanted from a4782e15c544e819ea995204b2413f78c10d63a5) --- 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 d95f98d231..1437b04f56 100644 --- a/trytond/res/user.py +++ b/trytond/res/user.py @@ -297,7 +297,7 @@ class User(ModelSQL, ModelView): if field not in fields or field == 'groups': del values_clean[field] if field == 'password': - with Transaction.set_user(0): + with Transaction().set_user(0): user = self.browse(user_id) if not self.get_login(user.login, old_password): self.raise_user_error('wrong_password')