fix: sider issue

(cherry picked from commit 55e97dce8a)
This commit is contained in:
Anupam
2021-10-31 14:45:36 +05:30
committed by mergify-bot
parent 44c53deb90
commit 47f8f3d9dd

View File

@@ -1012,10 +1012,10 @@ def close_work_order(work_order, status):
work_order = frappe.get_doc("Work Order", work_order)
if work_order.get("operations"):
job_cards = frappe.get_list("Job Card",
filters={
"work_order": work_order.name,
"status": "Work In Progress"
}, pluck='name')
filters={
"work_order": work_order.name,
"status": "Work In Progress"
}, pluck='name')
if job_cards:
job_cards = ", ".join(job_cards)