fix: if input manualy material request on WO the material_request_item is not set so validate WO give error (backport #40180) (#40421)

fix: if input manualy material request on WO the material_request_item is not set so validate WO give error (#40180)

(cherry picked from commit f24f51b7de)

Co-authored-by: HENRY Florian <florian.henry@open-concept.pro>
This commit is contained in:
mergify[bot]
2024-03-12 21:56:14 +05:30
committed by GitHub
parent 26a1d84935
commit a5e6763be5

View File

@@ -791,7 +791,7 @@ class WorkOrder(Document):
)
def update_completed_qty_in_material_request(self):
if self.material_request:
if self.material_request and self.material_request_item:
frappe.get_doc("Material Request", self.material_request).update_completed_qty(
[self.material_request_item]
)