From b699dd9bc03aee78164b514dc5c800a9ba35fd0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 26 Nov 2016 19:51:07 +0100 Subject: [PATCH] Do not copy warnings nor applications when copying user There are record rules on the targets which prevent to copy users. Also it is not expected to copy those fields when copying users. issue6049 --- trytond/res/user.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trytond/res/user.py b/trytond/res/user.py index 0f3fedfa97..b022399e09 100644 --- a/trytond/res/user.py +++ b/trytond/res/user.py @@ -309,6 +309,8 @@ class User(ModelSQL, ModelView): default = default.copy() default['password'] = '' + default.setdefault('warnings') + default.setdefault('applications') new_users = [] for user in users: