From a317d12d5043644d501da0aa59cf0cc35b0ca957 Mon Sep 17 00:00:00 2001 From: Vishal Thacker Date: Thu, 21 Oct 2021 08:54:47 +0000 Subject: [PATCH] [IMP] stock: do not open reserve/unreserve action in new breadcrumb Before this commit: when reserve/unreserve button were clicked, it was opening action in new breadcrumb while it should not open new breadcrumb instead it should display in self. After this commit: reserve/unreserve button will open action and replace current action and will not open new breadcrumb everytime we click. task-2581265 Part-of: odoo/odoo#74695 --- addons/stock/static/src/js/report_stock_forecasted.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/static/src/js/report_stock_forecasted.js b/addons/stock/static/src/js/report_stock_forecasted.js index 61c0f41c415..9fab3abd00e 100644 --- a/addons/stock/static/src/js/report_stock_forecasted.js +++ b/addons/stock/static/src/js/report_stock_forecasted.js @@ -195,7 +195,7 @@ const ReplenishReport = clientAction.extend({ active_id: this.productId, active_model: this.resModel, }, this.context, additionnalContext); - return this.do_action(action, {replace_last_action: true}); + return this.do_action(action, { stackPosition: 'replaceCurrentAction' }); }); },