[FIX] mail: does not write "False" if mail body is empty

opw-640309
This commit is contained in:
Nicolas Martinelli 2015-05-21 11:35:13 +02:00
parent 6de6662ecb
commit eaaca65594
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ class mail_compose_message(osv.TransientModel):
# mail.message values, according to the wizard options
post_values = {
'subject': wizard.subject,
'body': wizard.body,
'body': wizard.body or '',
'parent_id': wizard.parent_id and wizard.parent_id.id,
'partner_ids': [partner.id for partner in wizard.partner_ids],
'attachment_ids': [attach.id for attach in wizard.attachment_ids],