diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-08-05 14:03:05 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-08-05 15:09:34 +0000 |
| commit | 9216bdcb6f0bbb20900a33bbf7283e6e4fda1b2c (patch) | |
| tree | ce2c02403afc038f552436997fb3ba9f3ab1c1ac /addons/mail/static/src/models/thread_viewer/thread_viewer.js | |
| parent | 9432d547053605a0807e82499123c0deede23d6b (diff) | |
[FIX] mail: clean up JS relations by storing records
Remove the support and the conversion from record to localId and back from
localId to record.
Part of task-2308312
closes odoo/odoo#55481
X-original-commit: fc5e8be4e65518770a281f0dffae07854d20073a
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_viewer/thread_viewer.js')
| -rw-r--r-- | addons/mail/static/src/models/thread_viewer/thread_viewer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/models/thread_viewer/thread_viewer.js b/addons/mail/static/src/models/thread_viewer/thread_viewer.js index 52fadc74015..413448c6c6f 100644 --- a/addons/mail/static/src/models/thread_viewer/thread_viewer.js +++ b/addons/mail/static/src/models/thread_viewer/thread_viewer.js @@ -72,7 +72,7 @@ function factory(dependencies) { */ handleVisibleMessage(message) { if (!this.lastVisibleMessage || this.lastVisibleMessage.id < message.id) { - this.update({ lastVisibleMessage: [['replace', message]] }); + this.update({ lastVisibleMessage: [['link', message]] }); } } @@ -102,7 +102,7 @@ function factory(dependencies) { if (!this.thread) { return []; } - return [['replace', this.thread.cache(this.stringifiedDomain)]]; + return [['link', this.thread.cache(this.stringifiedDomain)]]; } /** |
