fix(minor): Custom Web Forms wont have templates

This commit is contained in:
Rushabh Mehta 2020-05-14 09:57:48 +05:30
parent 504980a808
commit 7d0faa940e

View file

@ -168,7 +168,7 @@ def get_list_context(context, doctype, web_form_name=None):
list_context = update_context_from_module(web_form.get_web_form_module(), list_context)
# get path from '/templates/' folder of the doctype
if not list_context.row_template:
if not meta.custom and not list_context.row_template:
list_context.row_template = meta.get_row_template()
return list_context