mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-25 21:05:19 +00:00
fix: linter error
This commit is contained in:
@@ -467,9 +467,7 @@ def get_items_from_product_bundle(row: str):
|
|||||||
row, items = ItemDetailsCtx(json.loads(row)), []
|
row, items = ItemDetailsCtx(json.loads(row)), []
|
||||||
|
|
||||||
if bundle_name := row.get("product_bundle"):
|
if bundle_name := row.get("product_bundle"):
|
||||||
bundle = frappe.db.get_value(
|
bundle = frappe.db.get_value("Product Bundle", bundle_name, ["docstatus", "disabled"], as_dict=True)
|
||||||
"Product Bundle", bundle_name, ["docstatus", "disabled"], as_dict=True
|
|
||||||
)
|
|
||||||
if not bundle or bundle.docstatus != 1:
|
if not bundle or bundle.docstatus != 1:
|
||||||
frappe.throw(_("Product Bundle {0} is not submitted").format(frappe.bold(bundle_name)))
|
frappe.throw(_("Product Bundle {0} is not submitted").format(frappe.bold(bundle_name)))
|
||||||
if bundle.disabled:
|
if bundle.disabled:
|
||||||
|
|||||||
Reference in New Issue
Block a user