fix(manufacturing): classify MRP items without a BOM as Purchase (backport #58509) (#58513)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2026-08-27 17:37:09 +00:00
committed by GitHub
parent f0d2d40d35
commit ee3b22403d

View File

@@ -468,6 +468,8 @@ class MaterialRequirementsPlanningReport:
row.lead_time = math.ceil(row.required_qty / row.lead_time)
elif not row.required_qty:
row.lead_time = 0
else:
row.type_of_material = "Purchase"
if not row.lead_time and rm_details.raw_materials:
row.lead_time = self.get_lead_time_from_raw_materials(rm_details.raw_materials)