summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/content/website_root_instance.js
diff options
context:
space:
mode:
authorHardik Prajapati <hpr@odoo.com>2019-08-01 13:37:38 +0000
committerXavier-Do <xdo@odoo.com>2019-08-05 13:24:48 +0000
commitf24d23299b64d6643d05a2d1e8b48edb0f4916cb (patch)
tree8d540752256162b365634ce43e17f2aa95684622 /addons/website/static/src/js/content/website_root_instance.js
parentdfe9f1749b0c09c83cdbb2272982a019bd4788cb (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/website/static/src/js/content/website_root_instance.js')
0 files changed, 0 insertions, 0 deletions