diff options
| author | Thibault Delavallée <tde@odoo.com> | 2018-04-10 14:00:14 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2018-04-10 14:06:00 +0200 |
| commit | 95d5020ff7c9a30702b1f88099a3078656be3cc7 (patch) | |
| tree | aeb0c8607c0fefc3001ac54b1625df1117d781b1 /addons/mail/static/src/xml/thread.xml | |
| parent | 4859b642d8cc4bc99091eacdc3f32dec34323033 (diff) | |
[FIX] mail: raise a missing email error instead of crash when logging without email
Currently when posting a message if the author has no email address an user
error is raised. Indeed as posting a message goes through the process of
creating notifications and sending emails an email address is required on
the user.
In saas 11.2 a _message_log shortcut has been added to log notes and in saas
11.3 a message_notify has been added to notify peopel of a custom content.
Those methods should have the same behavior when author has no email.
Currently there is a crash when trying to encode its email. After this commit
an exceptions is raised like classic post.
This commit is a manual forward-port of 3a978cc64e6b1d8aca7cfd5d4e319bcb302dd262 as well as an improvement
to fix the newly-introduced message_notify method.
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
0 files changed, 0 insertions, 0 deletions
