Skip to content

Commit

Permalink
[FIX] ddmrp: print BoM Overview correctly show is buffered.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidJForgeFlow committed Jul 8, 2024
1 parent 1ceb5a4 commit ee73f07
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ddmrp/report/mrp_report_bom_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,12 @@ def _get_bom_array_lines(
data, level, unfolded_ids, unfolded, parent_unfolded
)
for component in data.get("components", []):
if not component["bom_id"]:
continue
bom_line = next(
filter(
lambda line: line.get("bom_id", None) == component["bom_id"], lines
lambda line: line.get("bom_id", False) == component["bom_id"]
and line.get("name", False) == component["name"]
and line.get("level", False) == component["level"],
lines,
)
)
if bom_line:
Expand Down

0 comments on commit ee73f07

Please sign in to comment.