From 984b2d8b235209f61c5ccfac47d549aeb6eb6f6e Mon Sep 17 00:00:00 2001 From: Sumit Bhanushali Date: Mon, 16 Sep 2024 20:41:37 +0530 Subject: [PATCH] fix: dont fetch context for custom doctype based on custom module --- frappe/www/list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/www/list.py b/frappe/www/list.py index 90995e4ad9..721fb407d1 100644 --- a/frappe/www/list.py +++ b/frappe/www/list.py @@ -187,7 +187,7 @@ def get_list_context(context, doctype, web_form_name=None): # get context for custom webform if meta.custom and web_form_name: webform_list_contexts = frappe.get_hooks("webform_list_context") - if webform_list_contexts: + if webform_list_contexts and not frappe.get_doc("Module Def", meta.module).custom: out = frappe._dict(frappe.get_attr(webform_list_contexts[0])(meta.module) or {}) if out: list_context = out