From 321461647e24e52f3eef09db94c919354060082a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 8 Oct 2020 21:31:49 +0200 Subject: [PATCH] Add module prefix to "password same as" messages issue9661 review298731002 --- trytond/res/user.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trytond/res/user.py b/trytond/res/user.py index 67576a3b89..a2f0750962 100644 --- a/trytond/res/user.py +++ b/trytond/res/user.py @@ -274,9 +274,9 @@ class User(DeactivableMixin, ModelSQL, ModelView): for user in users: # Use getattr to allow to use non User instances for test, message in [ - (getattr(user, 'name', ''), 'msg_password_name'), - (getattr(user, 'login', ''), 'msg_password_login'), - (getattr(user, 'email', ''), 'msg_password_email'), + (getattr(user, 'name', ''), 'res.msg_password_name'), + (getattr(user, 'login', ''), 'res.msg_password_login'), + (getattr(user, 'email', ''), 'res.msg_password_email'), ]: if test and password.lower() == test.lower(): raise PasswordError(gettext(message))