fix: only erase BOM when do_not_explode is set

This commit is contained in:
Ankush Menat 2022-05-30 10:33:58 +05:30
parent b170cec2fe
commit d224bf1d34

View File

@ -251,9 +251,8 @@ class BOM(WebsiteGenerator):
for item in self.get("items"): for item in self.get("items"):
self.validate_bom_currency(item) self.validate_bom_currency(item)
item.bom_no = "" if item.do_not_explode:
if not item.do_not_explode: item.bom_no = ""
item.bom_no = item.bom_no
ret = self.get_bom_material_detail( ret = self.get_bom_material_detail(
{ {