[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 <tic@odoo.com>
This commit is contained in:
svs-odoo
2022-02-10 11:41:51 +00:00
parent 89f6d64d06
commit 6b2fba4f29
@@ -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})