Skip to content

Commit

Permalink
fix: only erase BOM when do_not_explode is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed May 30, 2022
1 parent 80a046d commit 356d03b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions erpnext/manufacturing/doctype/bom/bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,8 @@ def set_bom_material_details(self):
for item in self.get("items"):
self.validate_bom_currency(item)

item.bom_no = ""
if not item.do_not_explode:
item.bom_no = item.bom_no
if item.do_not_explode:
item.bom_no = ""

ret = self.get_bom_material_detail(
{
Expand Down

0 comments on commit 356d03b

Please sign in to comment.