From bfee9df9aafa5ff8ac19347c3b8a3b2bc56a6e5e Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Wed, 10 Jun 2026 18:53:32 +0530 Subject: [PATCH] fix: linter error --- erpnext/stock/doctype/packed_item/packed_item.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/erpnext/stock/doctype/packed_item/packed_item.py b/erpnext/stock/doctype/packed_item/packed_item.py index 5f37063e5f5..1eaa8163bbe 100644 --- a/erpnext/stock/doctype/packed_item/packed_item.py +++ b/erpnext/stock/doctype/packed_item/packed_item.py @@ -467,9 +467,7 @@ def get_items_from_product_bundle(row: str): row, items = ItemDetailsCtx(json.loads(row)), [] if bundle_name := row.get("product_bundle"): - bundle = frappe.db.get_value( - "Product Bundle", bundle_name, ["docstatus", "disabled"], as_dict=True - ) + bundle = frappe.db.get_value("Product Bundle", bundle_name, ["docstatus", "disabled"], as_dict=True) if not bundle or bundle.docstatus != 1: frappe.throw(_("Product Bundle {0} is not submitted").format(frappe.bold(bundle_name))) if bundle.disabled: