[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:
parent
e99358415a
commit
2831d94c20
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue