diff --git a/auth_from_http_remote_user/res_users.py b/auth_from_http_remote_user/res_users.py index f843c94db..4989e3fac 100644 --- a/auth_from_http_remote_user/res_users.py +++ b/auth_from_http_remote_user/res_users.py @@ -35,7 +35,7 @@ class res_users(orm.Model): } def copy(self, cr, uid, id, default=None, context=None): - default = default or {} + default = default = {} if default is None else default default['sso_key'] = False return super(res_users, self).copy(cr, uid, id, default, context)