Browse Source

Merge pull request #280 from Yajo/fix-copy

Fix argument name that did not let users to sign up in runbot.
pull/277/head
Pedro M. Baeza 9 years ago
parent
commit
ae1941668f
  1. 8
      auth_from_http_remote_user/res_users.py

8
auth_from_http_remote_user/res_users.py

@ -34,10 +34,10 @@ class res_users(orm.Model):
readonly=True),
}
def copy(self, cr, uid, rid, defaults=None, context=None):
defaults = defaults or {}
defaults['sso_key'] = False
return super(res_users, self).copy(cr, uid, rid, defaults, context)
def copy(self, cr, uid, id, default=None, context=None):
default = default = {} if default is None else default
default['sso_key'] = False
return super(res_users, self).copy(cr, uid, id, default, context)
def check_credentials(self, cr, uid, password):
try:

Loading…
Cancel
Save