[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user