fix: not able to select customer / supplier

(cherry picked from commit b0fc568c80)
This commit is contained in:
Rohit Waghchaure
2022-11-03 11:24:58 +05:30
committed by Mergify
parent 7a7b1d33c3
commit 6989cdf4f2
3 changed files with 10 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ def customer_query(doctype, txt, searchfield, start, page_len, filters, as_dict=
fields = ["name"]
if cust_master_name != "Customer Name":
fields = ["customer_name"]
fields.append("customer_name")
fields = get_fields(doctype, fields)
searchfields = frappe.get_meta(doctype).get_search_fields()
@@ -123,7 +123,7 @@ def supplier_query(doctype, txt, searchfield, start, page_len, filters, as_dict=
fields = ["name"]
if supp_master_name != "Supplier Name":
fields = ["supplier_name"]
fields.append("supplier_name")
fields = get_fields(doctype, fields)