Merge pull request #48424 from mihir-kandoi/st42959

fix: item list and project not being set in work order when created from material request
This commit is contained in:
Mihir Kandoi
2025-07-07 14:17:39 +05:30
committed by GitHub

View File

@@ -833,10 +833,11 @@ def raise_work_orders(material_request):
"material_request_item": d.name,
"planned_start_date": mr.transaction_date,
"company": mr.company,
"project": d.project,
}
)
wo_order.set_work_order_operations()
wo_order.get_items_and_operations_from_bom()
wo_order.flags.ignore_validate = True
wo_order.flags.ignore_mandatory = True
wo_order.save()