|
@ -34,10 +34,10 @@ class res_users(orm.Model): |
|
|
readonly=True), |
|
|
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): |
|
|
def check_credentials(self, cr, uid, password): |
|
|
try: |
|
|
try: |
|
|