Skip to content

Commit

Permalink
[IMP] Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
unaiberis committed Jun 19, 2024
1 parent 7306814 commit 126b15c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions mrp_bom_structure_xlsx_cost/report/bom_structure_xlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@ def print_bom_children(self, ch, sheet, row, level):
sheet.write(i, 1, "> " * j)
sheet.write(i, 2, ch.product_id.default_code or "")
sheet.write(i, 3, ch.product_id.display_name or "")
sheet.write(
i,
4,
ch.product_uom_id._compute_quantity(ch.product_qty, ch.product_id.uom_id)
or "",
)
sheet.write(i, 4, ch.product_uom_id._compute_quantity(ch.product_qty, ch.product_id.uom_id) or "",)
sheet.write(i, 5, ch.product_id.uom_id.name or "")
sheet.write(i, 6, ch.bom_id.code or "")
sheet.write(i, 7, ch.product_uom_id._compute_quantity(ch.product_qty, ch.product_id.uom_id) * ch.product_id.standard_price or 0)
sheet.write(i, 7, '{:.4f}'.format(ch.product_uom_id._compute_quantity(ch.product_qty, ch.product_id.uom_id) * ch.product_id.standard_price or 0).replace('.', ','))

i += 1
# self.env.cache.invalidate()
Expand Down

0 comments on commit 126b15c

Please sign in to comment.