diff options
| author | Antonin Bourguignon <abo@openerp.com> | 2012-09-19 13:12:04 +0200 |
|---|---|---|
| committer | Antonin Bourguignon <abo@openerp.com> | 2012-09-19 13:12:04 +0200 |
| commit | bc9decbe45f57c0c61d3a3c8a6758e6b3b744bfc (patch) | |
| tree | f45dc5f65c79efd7c23d985ec5ceae3da8e02da7 /addons | |
| parent | 470c0fa818c44d617063eafc6d83819c889dde3d (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.py | 2 |
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 |
