From 6506fe29ea183ac81d912aecee84ef53d9f98277 Mon Sep 17 00:00:00 2001 From: FrancoisGe Date: Tue, 22 Nov 2022 08:50:57 +0000 Subject: [PATCH] [FIX] web: fix crash app store MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before commit, clicking on the "App Store" and "Updates" menus in Apps in debug mode causes a crash. Why: Since owl 2, rejecting a promise in onWillStat is considered an error and so we have a crash. In our case, the error is already handled (Display a notification and do a doAction). So we can resolve the promise. The two menus ("App Store" and "Updates") will be removed in master. closes odoo/odoo#106247 X-original-commit: 08c8d64eedb509cdeafa1cecceb28f00a3bd98f0 Signed-off-by: Aaron Bohy (aab) Signed-off-by: Georis François (fge) --- addons/web/static/src/legacy/js/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/legacy/js/apps.js b/addons/web/static/src/legacy/js/apps.js index d2222eaa2d6..0d4bff9508a 100644 --- a/addons/web/static/src/legacy/js/apps.js +++ b/addons/web/static/src/legacy/js/apps.js @@ -153,7 +153,7 @@ var Apps = AbstractAction.extend({ params: {action_id: self.failback_action_id}, }).then(function(action) { return self.do_action(action, {clear_breadcrumbs: true}); - }).then(reject, reject); + }).then(resolve, reject); }); }); }