From 6f29cddad8ec3635938587b505a2cd546d61d934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Tue, 19 Apr 2022 10:50:47 +0000 Subject: [PATCH] [FIX] mail: fix compute of isMobileDevice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow up of https://github.com/odoo/odoo/commit/2c9da836e5829b8a3d3a36afbeebfdd78f36d542/#diff-f884c81b21062d0a63935bbdbc9c7cf52dc69a6a29ea4dce13130196435b0591R53 Value was permanently undefined: writing value on itself rather than from env. closes odoo/odoo#89050 X-original-commit: 9dde44b1479118e55eb2e73df56e5e696c2bf850 Signed-off-by: Alexandre Kühn (aku) Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/models/device.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/models/device.js b/addons/mail/static/src/models/device.js index 34d207f7192..056c841aa13 100644 --- a/addons/mail/static/src/models/device.js +++ b/addons/mail/static/src/models/device.js @@ -31,7 +31,7 @@ registerModel({ globalWindowInnerHeight: this.messaging.browser.innerHeight, globalWindowInnerWidth: this.messaging.browser.innerWidth, isMobile: this.env.device.isMobile, - isMobileDevice: this.messaging.device.isMobileDevice, + isMobileDevice: this.env.device.isMobileDevice, sizeClass: this.env.device.size_class, }); },