mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
standard queries are used within the search widget, and now require to
be whitelisted before they can be executed through the search widget.
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
Co-authored-by: sahil28297 <37302950+sahil28297@users.noreply.github.com>
(cherry picked from commit 96100e9507)
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
This commit is contained in:
@@ -67,6 +67,7 @@ def validate_service_item(item, msg):
|
|||||||
if frappe.db.get_value("Item", item, "is_stock_item") == 1:
|
if frappe.db.get_value("Item", item, "is_stock_item") == 1:
|
||||||
frappe.throw(_(msg))
|
frappe.throw(_(msg))
|
||||||
|
|
||||||
|
@frappe.whitelist()
|
||||||
def get_practitioner_list(doctype, txt, searchfield, start, page_len, filters=None):
|
def get_practitioner_list(doctype, txt, searchfield, start, page_len, filters=None):
|
||||||
fields = ["name", "first_name", "mobile_phone"]
|
fields = ["name", "first_name", "mobile_phone"]
|
||||||
|
|
||||||
|
|||||||
@@ -299,6 +299,7 @@ def get_loyalty_programs(doc):
|
|||||||
|
|
||||||
return lp_details
|
return lp_details
|
||||||
|
|
||||||
|
@frappe.whitelist()
|
||||||
def get_customer_list(doctype, txt, searchfield, start, page_len, filters=None):
|
def get_customer_list(doctype, txt, searchfield, start, page_len, filters=None):
|
||||||
from erpnext.controllers.queries import get_fields
|
from erpnext.controllers.queries import get_fields
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user