Fix typo for issue1747

(transplanted from a4782e15c544e819ea995204b2413f78c10d63a5)
This commit is contained in:
Cédric Krier committed 2010-11-06 17:45:09 +01:00
1 parent 57b5394085
commit c5a116da36
1 file changed
+1 -1
+1 -1
View File
@@ -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')