chore: deprecate get_js

Pointless function for loading public JS files
This commit is contained in:
Ankush Menat 2023-09-23 15:30:23 +05:30
parent e9a6c4ab13
commit bf037acb5b

View file

@ -11,6 +11,7 @@ from frappe import _
from frappe.desk.reportview import validate_args
from frappe.model.db_query import check_parent_permission
from frappe.utils import get_safe_filters
from frappe.utils.deprecations import deprecated
if TYPE_CHECKING:
from frappe.model.document import Document
@ -325,6 +326,7 @@ def get_password(doctype, name, fieldname):
@frappe.whitelist()
@deprecated
def get_js(items):
"""Load JS code files. Will also append translations
and extend `frappe._messages`