[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:
Stephane Wirtel 2012-03-12 11:30:25 +01:00
parent b3c0d126e9
commit f817f3f340
1 changed files with 1 additions and 1 deletions

View File

@ -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,