diff --git a/erpnext/accounts/doctype/budget/budget.py b/erpnext/accounts/doctype/budget/budget.py index 6fe4e8edcf7..11fa72c3c2f 100644 --- a/erpnext/accounts/doctype/budget/budget.py +++ b/erpnext/accounts/doctype/budget/budget.py @@ -145,7 +145,7 @@ class Budget(Document): def validate_expense_against_budget(args, expense_amount=0): args = frappe._dict(args) - if not frappe.get_all("Budget", limit=1): + if not frappe.db.count("Budget", cache=True): return if args.get("company") and not args.fiscal_year: