fix: no attribute error on LCV

(cherry picked from commit ad11914fca)
This commit is contained in:
Mihir Kandoi
2026-01-19 19:49:01 +05:30
committed by Mergify
parent b7284c7717
commit fe59ace285

View File

@@ -437,7 +437,7 @@ def get_vendor_invoices(doctype, txt, searchfield, start, page_len, filters):
query = get_vendor_invoice_query(filters)
if txt:
query = query.where(doctype.name.like(f"%{txt}%"))
query = query.where(frappe.qb.DocType(doctype).name.like(f"%{txt}%"))
if start:
query = query.limit(page_len).offset(start)