From a2236028169e34a68f5d65c446934994cae221b2 Mon Sep 17 00:00:00 2001 From: rolandojduartem Date: Fri, 19 Jan 2024 00:55:39 +0000 Subject: [PATCH] [FIX] stock_by_warehouse: Improve stock information accuracy More information, please check on https://github.com/Vauxoo/addons-vauxoo/pull/1634 Related ticket: (#24856) --- stock_by_warehouse/models/product_template.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stock_by_warehouse/models/product_template.py b/stock_by_warehouse/models/product_template.py index fd92a6b37fb..e0374ec3f50 100644 --- a/stock_by_warehouse/models/product_template.py +++ b/stock_by_warehouse/models/product_template.py @@ -54,6 +54,7 @@ def _compute_get_quantity_warehouses_json(self): .with_company(warehouse.company_id) .with_context(warehouse=warehouse.id, location=False) ) + tmpl.refresh() if warehouse_id and warehouse_id.id == warehouse.id: info["warehouse"] = tmpl.qty_available_not_res info["content"].append(