projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
257df67
)
[FIX] res_users: fixed on_change_login that crashed
author
Thibault Delavallée
<tde@openerp.com>
Tue, 4 Mar 2014 11:14:52 +0000
(12:14 +0100)
committer
Thibault Delavallée
<tde@openerp.com>
Tue, 4 Mar 2014 11:14:52 +0000
(12:14 +0100)
when changing the login by a void value.
bzr revid: tde@openerp.com-
20140304111452
-np9537a3ja7vf1zi
openerp/addons/base/res/res_users.py
patch
|
blob
|
history
diff --git
a/openerp/addons/base/res/res_users.py
b/openerp/addons/base/res/res_users.py
index
37b6493
..
00000b2
100644
(file)
--- a/
openerp/addons/base/res/res_users.py
+++ b/
openerp/addons/base/res/res_users.py
@@
-167,8
+167,9
@@
class res_users(osv.osv):
}
def on_change_login(self, cr, uid, ids, login, context=None):
- v = {'email': login} if tools.single_email_re.match(login) else {}
- return {'value': v}
+ if login and tools.single_email_re.match(login):
+ return {'value': {'email': login}}
+ return {}
def on_change_company_id(self, cr, uid, ids, company_id):
return {'warning' : {