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
This commit is contained in:
Cédric Krier committed 2016-11-26 19:51:07 +01:00
1 parent 26639ecd3f
commit b699dd9bc0
1 file changed
+2
+2
View File
@@ -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: