[FIX] In the case where the user has no signature, we set up a default value to avoid to have a body with 'False'.
bzr revid: stephane@openerp.com-20120312103025-dn5q7hml9sy5u0t7
This commit is contained in:
parent
b3c0d126e9
commit
f817f3f340
|
@ -50,7 +50,7 @@ class mail_compose_message(osv.osv_memory):
|
|||
'subject' : data.name or False,
|
||||
'email_to' : data.email_from or False,
|
||||
'email_from' : user.user_email or tools.config.get('email_from', False),
|
||||
'body_text' : '\n' + tools.ustr(user.signature),
|
||||
'body_text' : '\n' + tools.ustr(user.signature or ''),
|
||||
'email_cc' : tools.ustr(data.email_cc or ''),
|
||||
'model': model,
|
||||
'res_id': res_id,
|
||||
|
|
Loading…
Reference in New Issue