From cae7759df6618d68b9d156a040293ce304f788e5 Mon Sep 17 00:00:00 2001 From: Ejaaz Khan Date: Fri, 25 Apr 2025 14:55:07 +0530 Subject: [PATCH] refactor: pass app as an argument to avoid duplicte function call --- frappe/modules/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/modules/utils.py b/frappe/modules/utils.py index a9d2be2616..c115ce5511 100644 --- a/frappe/modules/utils.py +++ b/frappe/modules/utils.py @@ -247,7 +247,7 @@ def load_doctype_module(doctype, module=None, prefix="", suffix=""): module = module or get_doctype_module(doctype) app = get_module_app(module) key = (app, doctype, prefix, suffix) - module_name = get_module_name(doctype, module, prefix, suffix) + module_name = get_module_name(doctype, module, prefix, suffix, app) if key not in doctype_python_modules: try: