diff options
| author | Hardik Prajapati <hpr@odoo.com> | 2019-08-01 13:37:38 +0000 |
|---|---|---|
| committer | Xavier-Do <xdo@odoo.com> | 2019-08-05 13:24:48 +0000 |
| commit | f24d23299b64d6643d05a2d1e8b48edb0f4916cb (patch) | |
| tree | 8d540752256162b365634ce43e17f2aa95684622 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | dfe9f1749b0c09c83cdbb2272982a019bd4788cb (diff) | |
[FIX] mail: fix model typo in message_notify
Since #32404, the fallback case where we have no recipients and no parent_id
on message notify has a typo on mail_message. A user will receive a traceback
when using compose message wizard on a record not inheriting from mail_thread if
he forgot to add recipients.
If the typo should be fixed, notifying the user that no recipients were found and thus,
message_notify won't do anything could be interresting. We can raise a UserError
to give a more explicit failure reason.
We would like to avoid to raise this error on a low level like in message_notify
to avoid to break mail_gateway mechanism, but raising it from mail.compose.message
send_mail shouldn't have any side effect.
We can simply check the output of message_notify to know if something was done
to avoid to duplicate logic used to define recipients.
task-2046180
closes odoo/odoo#35378
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
