diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2015-05-21 11:35:13 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2015-05-21 12:22:50 +0200 |
| commit | eaaca6559429a8d36c7f6dc1f8232cf222ad2a32 (patch) | |
| tree | 5dc45b7b78471235b72709205a8be062bff0619b /addons/mail/wizard/mail_compose_message.py | |
| parent | 6de6662ecb06b231e37eb88ab1a7d39085ecdce9 (diff) | |
[FIX] mail: does not write "False" if mail body is empty
opw-640309
Diffstat (limited to 'addons/mail/wizard/mail_compose_message.py')
| -rw-r--r-- | addons/mail/wizard/mail_compose_message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index 7e269ab7379..733057de1cf 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -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], |
