diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2016-06-20 15:28:38 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2016-06-21 13:02:16 +0200 |
| commit | ffe0db0dd1551c2527d80e185d1d70e8e540b0e8 (patch) | |
| tree | f2475a42fd763789e6aacb31ee7479f6dff74cb9 /addons/web/static/lib/jquery.mjs.nestedSortable | |
| parent | e8827d013f91c5d59b020c3941e07735647adf12 (diff) | |
[FIX] mail: mail template in Discuss
When the mail composer is opened thanks to the "Send Mail" button in
Discuss, it's possible to save a mail template, but the user can't
access it anymore later on.
This is because the field `model` is by default empty in this specific
case since this is a client action. However, when saving the template,
the default value 'mail.template' is used for the `model` field.
Therefore the domain on the `template_id` field prevents the user to
find back the model he just saved.
The fix sends the `active_model` in the context with the value
'mail.message', so that the `default_get` method of
`mail.compose.message` will set the appropriate default value.
opw-677936
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable')
0 files changed, 0 insertions, 0 deletions
