diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-06-28 14:33:28 +0200 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-06-29 12:57:05 +0200 |
| commit | 5dcfb30fb39219efbe1c96d72cc311b103ad4c4f (patch) | |
| tree | 39b4826de409837b5b37f575b1561370ea9a76d7 /addons/web_editor/static/src/xml/editor.xml | |
| parent | d54a3726eca6ad48d969d5b4a6e559f783809832 (diff) | |
[FIX] mail: no crash on opening messaging menu after receiving a needaction message
Revision on https://github.com/odoo/odoo/commit/299ebb2cdf63de2e3967da0d2f3e7effd239812b
[IMP] mail: add moderation on channels
The commit above adds moderated channel. When a message is pending moderation,
it is not yet linked to the channel server-side, which is why there is a hack
to set `channel_ids` on the client side so that the message is visible on the
corresponding channel (only for author of message and moderator of channel).
It is only when the message is accepted that this message is linked to the
correct `channel_ids`. The server provides the updated list of channels that
this message is linked to, but it misses static channels that only make sense
on the client-side, such as "Inbox" or "Starred".
This commit solves the issue by only extending the list of channel registered
on the message when it is accepted, so that static channels are not unlinked
from the message.
Note that it is necessary to update `channel_ids` of the message,
because there could be "relay" channels. In other words, when the moderated
message is accepted, there could be more channels that contain this message.
Diffstat (limited to 'addons/web_editor/static/src/xml/editor.xml')
0 files changed, 0 insertions, 0 deletions
