[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
This commit is contained in:
Vishal Thacker
2021-11-26 15:10:25 +00:00
committed by svs-odoo
parent ec75fe6c0f
commit a317d12d50
@@ -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' });
});
},