diff options
| author | Thibault Delavallée <tde@odoo.com> | 2019-04-02 13:55:00 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-04-05 14:01:13 +0000 |
| commit | 742effec8d48e83713c143853b2f42a957ddc07f (patch) | |
| tree | 1fe79c12b5becb67a3dbc03a4983e8c506ea4d2d /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | f60636aefab947eb44e9caf0533acd44cb1d6568 (diff) | |
[FIX] mail_template: correctly compute / update attachment_ids in send mail
Attachments when generating an email based on a template are done in two
steps, see notably [1]. However mail generation replaces attachments using
a 6 command. This means existing attachments given through email_values
are not correctly managed and this leads to invalid command given to the
m2m field.
This commit fixes that by correctly generating a list of commands, using
4 (add) for new attachments coming notably from reports linked to the template.
Related task ID 1965040
PR #32459
[1] https://github.com/odoo/odoo/commit/f789005c9a6c26322565a1af7cc4e57a60eab9f0
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
