From 6ecafe7606a596b0e088f4e2ae5f98a343d0263a Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Sun, 31 Mar 2024 11:39:55 +0530 Subject: [PATCH] chore: fix linter issue --- erpnext/stock/serial_batch_bundle.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/stock/serial_batch_bundle.py b/erpnext/stock/serial_batch_bundle.py index 24e2ee10ab1..fb63b0181d3 100644 --- a/erpnext/stock/serial_batch_bundle.py +++ b/erpnext/stock/serial_batch_bundle.py @@ -856,7 +856,9 @@ class SerialBatchCreation: if not doc.get("entries"): return frappe._dict({}) - if doc.voucher_no and frappe.get_cached_value(doc.voucher_type, doc.voucher_no, "docstatus") == 2: + if ( + doc.voucher_no and frappe.get_cached_value(doc.voucher_type, doc.voucher_no, "docstatus") == 2 + ): doc.voucher_no = "" doc.save()