From 9216bdcb6f0bbb20900a33bbf7283e6e4fda1b2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Wed, 5 Aug 2020 14:03:05 +0000 Subject: [FIX] mail: clean up JS relations by storing records MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- addons/mail/static/src/utils/test_utils.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addons/mail/static/src/utils') diff --git a/addons/mail/static/src/utils/test_utils.js b/addons/mail/static/src/utils/test_utils.js index dd305be0a49..801daddba20 100644 --- a/addons/mail/static/src/utils/test_utils.js +++ b/addons/mail/static/src/utils/test_utils.js @@ -7,6 +7,7 @@ const { addMessagingToEnv, addTimeControlToEnv, } = require('mail/static/src/env/test_env.js'); +const ModelManager = require('mail/static/src/model/model_manager.js'); const ChatWindowService = require('mail/static/src/services/chat_window_service/chat_window_service.js'); const DialogService = require('mail/static/src/services/dialog_service/dialog_service.js'); const { nextTick } = require('mail/static/src/utils/utils.js'); @@ -754,6 +755,9 @@ async function start(param0 = {}) { } testEnv = Component.env; + Object.assign(testEnv, { + modelManager: new ModelManager(testEnv), + }); /** * Components cannot use web.bus, because they cannot use -- cgit v1.2.3