summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorAntonin Bourguignon <abo@openerp.com>2012-09-19 13:12:04 +0200
committerAntonin Bourguignon <abo@openerp.com>2012-09-19 13:12:04 +0200
commitbc9decbe45f57c0c61d3a3c8a6758e6b3b744bfc (patch)
treef45dc5f65c79efd7c23d985ec5ceae3da8e02da7 /addons
parent470c0fa818c44d617063eafc6d83819c889dde3d (diff)
[IMP] make sure that the user email exist
bzr revid: abo@openerp.com-20120919111204-n461eriy40nirvgz
Diffstat (limited to 'addons')
-rw-r--r--addons/portal_crm/wizard/contact.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/portal_crm/wizard/contact.py b/addons/portal_crm/wizard/contact.py
index 37e6a0ca6d1..4deb17876e9 100644
--- a/addons/portal_crm/wizard/contact.py
+++ b/addons/portal_crm/wizard/contact.py
@@ -49,7 +49,7 @@ class crm_contact_us(osv.TransientModel):
"""
user = self.pool.get('res.users').read(cr, uid, uid, ['login', 'email'], context)
- if (user['login'] != 'anonymous'):
+ if (user['login'] != 'anonymous' and user['email']):
return user['email']
else:
return None