From 6b2fba4f29a0d441c1df981a2763b19a5a1eec4e Mon Sep 17 00:00:00 2001 From: svs-odoo Date: Wed, 9 Feb 2022 15:42:17 +0000 Subject: [PATCH] [FIX] mrp: BoM report By-Products spacing Before this commit, in the BoM Structure & Cost report, the By-Products line quantity, product cost and BoM cost were misaligned. The issue happens once the `mrp_mpl` module is installed because then, the number of columns changes. closes odoo/odoo#84278 Signed-off-by: Tiffany Chang --- addons/mrp/report/mrp_report_bom_structure.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/mrp/report/mrp_report_bom_structure.py b/addons/mrp/report/mrp_report_bom_structure.py index d6531fdb5d9..f280a8fbaa9 100644 --- a/addons/mrp/report/mrp_report_bom_structure.py +++ b/addons/mrp/report/mrp_report_bom_structure.py @@ -74,6 +74,7 @@ class ReportBomStructure(models.AbstractModel): 'bom_id': bom_id, 'currency': self.env.company.currency_id, 'byproducts': lines, + 'extra_column_count': self._get_extra_column_count(), } return self.env.ref('mrp.report_mrp_byproduct_line')._render({'data': values})