[FIX] survey: no attachment in shared survey

When sharing a survey, a mail.mail is created but the attachment were lost.
This is due to a missing command (6, _, ids) when creating records in
attachment_ids field (many2many).

Fixes #9364, opw 656742
This commit is contained in:
Martin Trigaux 2015-11-18 13:41:17 +01:00
parent e99358415a
commit 2831d94c20
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class survey_mail_compose_message(osv.TransientModel):
'parent_id': None,
'partner_ids': partner_id and [(4, partner_id)] or None,
'notified_partner_ids': partner_id and [(4, partner_id)] or None,
'attachment_ids': wizard.attachment_ids or None,
'attachment_ids': wizard.attachment_ids and [(6, 0, wizard.attachment_ids.ids)] or None,
'email_from': wizard.email_from or None,
'email_to': email,
}