diff options
| author | Christophe Matthieu <chm@odoo.com> | 2018-07-04 16:14:34 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2018-07-11 15:38:59 +0200 |
| commit | 3472a34e8ae8c9ef68db58c572111f28aebc7678 (patch) | |
| tree | 104f13d9c4c6f2637f8d55b126f61e75b45963a0 /addons/mail/wizard/mail_compose_message.py | |
| parent | 0cf598761093915cdb1c10f8dbbf84c6ac34462f (diff) | |
[FIX] mail: write all attachments only once
wrong indent.
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 0d91879224e..d0903fd2d40 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -209,7 +209,7 @@ class MailComposer(models.TransientModel): new_attachment_ids.append(attachment.copy({'res_model': 'mail.compose.message', 'res_id': wizard.id}).id) else: new_attachment_ids.append(attachment.id) - wizard.write({'attachment_ids': [(6, 0, new_attachment_ids)]}) + wizard.write({'attachment_ids': [(6, 0, new_attachment_ids)]}) # Mass Mailing mass_mode = wizard.composition_mode in ('mass_mail', 'mass_post') |
