fix: linter issues

This commit is contained in:
Anupam 2021-11-02 12:46:00 +05:30
parent 530a0f481e
commit 59e4fd980c
2 changed files with 2 additions and 1 deletions

View File

@ -12,9 +12,9 @@ from erpnext.manufacturing.doctype.work_order.work_order import (
ItemHasVariantError,
OverProductionError,
StockOverProductionError,
close_work_order,
make_stock_entry,
stop_unstop,
close_work_order,
)
from erpnext.selling.doctype.sales_order.test_sales_order import make_sales_order
from erpnext.stock.doctype.item.test_item import create_item, make_item

View File

@ -1011,6 +1011,7 @@ 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,