chore: remove whitelisting for methods not accessed from UI
This commit is contained in:
parent
4507cb3cd7
commit
5155d5bfb2
@ -70,7 +70,6 @@ def make_bank_account(doctype, docname):
|
||||
return doc
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_party_bank_account(party_type, party):
|
||||
return frappe.db.get_value(party_type, party, "default_bank_account")
|
||||
|
||||
|
@ -42,7 +42,6 @@ class AssetMaintenance(Document):
|
||||
maintenance_log.db_set("maintenance_status", "Cancelled")
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def assign_tasks(asset_maintenance_name, assign_to_member, maintenance_task, next_due_date):
|
||||
team_member = frappe.db.get_value("User", assign_to_member, "email")
|
||||
args = {
|
||||
|
@ -99,7 +99,6 @@ def import_string_path(path):
|
||||
return mod
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def make_supplier_scorecard(source_name, target_doc=None):
|
||||
def update_criteria_fields(obj, target, source_parent):
|
||||
target.max_score, target.formula = frappe.db.get_value(
|
||||
|
@ -161,7 +161,6 @@ def add_account_subtype(account_subtype):
|
||||
frappe.throw(frappe.get_traceback())
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def sync_transactions(bank, bank_account):
|
||||
"""Sync transactions based on the last integration date as the start date, after sync is completed
|
||||
add the transaction date of the oldest transaction as the last integration date."""
|
||||
|
@ -191,7 +191,6 @@ def process_string_args(args):
|
||||
return args
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_item_code(barcode=None, serial_no=None):
|
||||
if barcode:
|
||||
item_code = frappe.db.get_value("Item Barcode", {"barcode": barcode}, fieldname=["parent"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user