chore: use local deprecation (#44306)

This commit is contained in:
David Arnold
2024-11-23 23:25:12 +01:00
committed by GitHub
parent 2e04eeb661
commit f1bd6e492a
6 changed files with 71 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
import frappe
from frappe.utils.deprecations import deprecated
from erpnext.deprecation_dumpster import deprecated
def get_leaderboards():
@@ -218,7 +219,7 @@ def get_all_sales_person(date_range, company, field=None, limit=0):
)
@deprecated
@deprecated(f"{__name__}.get_date_condition", "unknown", "v16", "No known instructions.")
def get_date_condition(date_range, field):
date_condition = ""
if date_range: