diff --git a/addons/mrp/report/mrp_report_mo_overview.py b/addons/mrp/report/mrp_report_mo_overview.py index 47c2ce4a452..b9db52667da 100644 --- a/addons/mrp/report/mrp_report_mo_overview.py +++ b/addons/mrp/report/mrp_report_mo_overview.py @@ -52,6 +52,9 @@ class ReportMoOverview(models.AbstractModel): def _get_report_data(self, production_id): production = self.env['mrp.production'].browse(production_id) + # Necessary to fetch the right quantities for multi-warehouse + production = production.with_context(warehouse=production.warehouse_id.id) + components = self._get_components_data(production, level=1, current_index='') operations = self._get_operations_data(production, level=1, current_index='') initial_mo_cost = sum(component.get('summary', {}).get('mo_cost', 0.0) for component in components)\