diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-08-24 10:37:41 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-08-24 13:21:44 +0000 |
| commit | 0834d241624330ab3fd3925366a3217fe8145dfc (patch) | |
| tree | 3f6239587e71a094ee9a32d3be2d527dd3b42b17 /addons/mail/static/tests | |
| parent | 9b80f9e7f1fdec3a7b74daed621b94f96716559f (diff) | |
[FIX] mail: ignore broadcast notifications targeting another user
This is typically not the case in production code, but it doesn't hurt to be
safe. The main reason for the change however is that it causes issues in tests
due to the easiest way to simulate notifications being to send them directly on
the bus which is "listened to" no matter the target user.
PR: #56243
Part of task-2323670
X-original-commit: 62e1e7fe39a7bed6ce70466a0aec645c7a0f299d
Diffstat (limited to 'addons/mail/static/tests')
| -rw-r--r-- | addons/mail/static/tests/helpers/mock_server.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/tests/helpers/mock_server.js b/addons/mail/static/tests/helpers/mock_server.js index d978d8e73f6..f57ca20a508 100644 --- a/addons/mail/static/tests/helpers/mock_server.js +++ b/addons/mail/static/tests/helpers/mock_server.js @@ -863,7 +863,7 @@ MockServer.include({ message_ids: messageIDs, type: "deletion", }; - const metaData = [dbName, 'res.partner']; + const metaData = [dbName, 'res.partner', this.currentPartnerId]; const notification = [metaData, notifData]; this._widget.call('bus_service', 'trigger', 'notification', [notification]); } else if (decision === 'accept') { |
