From bfe78501cecb4d713e882d045175ddd4f6405371 Mon Sep 17 00:00:00 2001 From: tsm-odoo Date: Wed, 1 Jun 2022 07:53:21 +0000 Subject: [PATCH] [IMP] mail: adjust legacyPatchUiSize docstring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The legacyPatchUiSize function was supposed to be removed when introducing the new environment in discuss. However, it appears it is still necessary for form_renderer tests since it still relies on config.device.size_class. The docstring has been updated accordingly. closes odoo/odoo#92551 Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/tests/helpers/patch_ui_size.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/mail/static/tests/helpers/patch_ui_size.js b/addons/mail/static/tests/helpers/patch_ui_size.js index ecb55c0952a..bad1ba3741a 100644 --- a/addons/mail/static/tests/helpers/patch_ui_size.js +++ b/addons/mail/static/tests/helpers/patch_ui_size.js @@ -40,8 +40,9 @@ function getSizeFromWidth(width) { /** * Patch legacy objects referring to the ui size. This function must be removed - * when switching to the new environment in the discuss app. This will impact - * env.browser.innerWidth, env.device.isMobile and config.device.{size_class/isMobile}. + * when the wowl env will be available in the form_renderer (currently the form + * renderer relies on config). This will impact env.browser.innerWidth, + * env.device.isMobile and config.device.{size_class/isMobile}. * * @param {number} size * @param {number} width