fix: sider issue

This commit is contained in:
Anupam 2021-10-31 14:45:36 +05:30
parent e290fe0721
commit 55e97dce8a

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)