Skip to content

Commit

Permalink
fixup! [11.0][FIX] mrp_bom_structure_report: multi level BoMs have wr…
Browse files Browse the repository at this point in the history
…ong BoM cost.

upstream fix in v12: odoo/odoo@97b4480
  • Loading branch information
LoisRForgeFlow committed Jul 3, 2019
1 parent 99a7f57 commit c0ed569
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mrp_bom_structure_report/reports/mrp_report_bom_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ def _get_price(self, bom, factor):
if line.child_bom_id:
qty = line.product_uom_id._compute_quantity(
line.product_qty * factor,
line.child_bom_id.product_uom_id) / line.child_bom_id.product_qty
line.child_bom_id.product_uom_id
) / line.child_bom_id.product_qty
sub_price = self._get_price(line.child_bom_id, qty)
price += sub_price
else:
Expand Down

0 comments on commit c0ed569

Please sign in to comment.