From 91d58bd260f3391456110feca47ffa3888cda244 Mon Sep 17 00:00:00 2001 From: "Hubert Van de Walle (huvw)" Date: Mon, 23 May 2022 09:42:37 +0000 Subject: [PATCH] [FIX] web: owl_compatibility: force status 1 on attach callback When a widget is detached form the DOM, we manually set the owl status of the corresponding node to 0 (new), but we before this commit, we didn't reset it to 1 (mounted) when the widget was re-attached. As a consequence, event handlers were not bound anymore. Steps to reproduce: - Open Inventory - Click on Products > Lots/Serial Numbers - Open a product - Click on the Traceability smart button - Click on a reference (eg: Inventory Adjustment) - Click on the Traceability Report breadcrumb -> Breadcrumbs are not working anymore opw-2838994 closes odoo/odoo#95375 X-original-commit: 7945f7c40045def5e46e8a2f91bdfcc3a42d9f78 Signed-off-by: Aaron Bohy (aab) Signed-off-by: Hubert Van De Walle --- addons/web/static/src/legacy/js/owl_compatibility.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/legacy/js/owl_compatibility.js b/addons/web/static/src/legacy/js/owl_compatibility.js index 426c99d975c..a1ed68737fd 100644 --- a/addons/web/static/src/legacy/js/owl_compatibility.js +++ b/addons/web/static/src/legacy/js/owl_compatibility.js @@ -689,6 +689,7 @@ odoo.define('web.OwlCompatibility', function (require) { cb(); } }); + this.node.status = 1; this.status = "mounted"; }