Merge pull request #21657 from rohitwaghchaure/fixed-stock-and-account-value-comparison-report

fix: local variable 'lft' referenced before assignment
This commit is contained in:
rohitwaghchaure 2020-05-08 15:39:24 +05:30 committed by GitHub
commit 8b9574d434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ def convert_to_group_or_ledger():
return frappe.get_doc("Warehouse", args.docname).convert_to_group_or_ledger()
def get_child_warehouses(warehouse):
lft, rgt = frappe.get_cached_value("Warehouse", warehouse, [lft, rgt])
lft, rgt = frappe.get_cached_value("Warehouse", warehouse, ["lft", "rgt"])
return frappe.db.sql_list("""select name from `tabWarehouse`
where lft >= %s and rgt <= %s""", (lft, rgt))