From 4b1b981a9302d9813e79b2b586cf39d76465be75 Mon Sep 17 00:00:00 2001 From: tsm-odoo Date: Wed, 27 Jul 2022 13:46:15 +0000 Subject: [PATCH] [IMP] mail: remove create composer suggestion view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit task-2871066 closes odoo/odoo#96899 Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/tests/helpers/test_utils.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/addons/mail/static/tests/helpers/test_utils.js b/addons/mail/static/tests/helpers/test_utils.js index b0f1900c161..8e4e98c845c 100644 --- a/addons/mail/static/tests/helpers/test_utils.js +++ b/addons/mail/static/tests/helpers/test_utils.js @@ -386,20 +386,6 @@ function getCreateComposerComponent({ env, target }) { }; } -function getCreateComposerSuggestionViewComponent({ env, target }) { - return async function createComposerSuggestionViewComponent(composer, props) { - const composerView = env.services.messaging.modelManager.messaging.models['ComposerView'].create({ - qunitTest: insertAndReplace({ - composer: replace(composer), - }), - }); - await createRootMessagingComponent(env, "ComposerSuggestionView", { - props: { ...props, composerView: composerView }, - target, - }); - }; -} - function getCreateNotificationListComponent({ env, target }) { return async function createNotificationListComponent({ filter = 'all' } = {}) { const notificationListView = env.services.messaging.modelManager.messaging.models['NotificationListView'].create({ @@ -587,7 +573,6 @@ async function start(param0 = {}) { afterNextRender, click: getClick({ afterNextRender }), createComposerComponent: getCreateComposerComponent({ env: webClient.env, target }), - createComposerSuggestionViewComponent: getCreateComposerSuggestionViewComponent({ env: webClient.env, target }), createNotificationListComponent: getCreateNotificationListComponent({ env: webClient.env, target }), createRootMessagingComponent: (componentName, props) => createRootMessagingComponent(webClient.env, componentName, { props, target }), env: webClient.env,