[FIX] web: fix crash app store

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) <aab@odoo.com>
Signed-off-by: Georis François (fge) <fge@odoo.com>
This commit is contained in:
FrancoisGe
2022-11-22 16:06:11 +01:00
parent a1bf023174
commit 6506fe29ea
+1 -1
View File
@@ -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);
});
});
}