changeset 27a120d26c60 in trytond:5.6
details: https://hg.tryton.org/trytond?cmd=changeset;node=27a120d26c60
description:
Add module prefix to "password same as" messages
issue9661
review298731002
(grafted from 4bcf69601d9d618a3ae7f537927cb9928a1cccd3)
diffstat:
trytond/res/user.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r 6e5f7e8d7540 -r 27a120d26c60 trytond/res/user.py
--- a/trytond/res/user.py Thu Sep 24 23:05:04 2020 +0200
+++ b/trytond/res/user.py Thu Oct 08 21:31:49 2020 +0200
@@ -278,9 +278,9 @@
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))