Rushabh Mehta vor 8 Jahren
Ursprung
Commit
14c4796e05
1 geänderte Dateien mit 10 neuen und 6 gelöschten Zeilen
  1. +10
    -6
      frappe/www/list.py

+ 10
- 6
frappe/www/list.py Datei anzeigen

@@ -123,15 +123,19 @@ def get_list_context(context, doctype):
from frappe.website.doctype.web_form.web_form import get_web_form_list

list_context = context or frappe._dict()
module = load_doctype_module(doctype)
if hasattr(module, "get_list_context"):
out = frappe._dict(module.get_list_context(list_context) or {})
if out:
list_context = out
meta = frappe.get_meta(doctype)

if not meta.custom:
# custom doctypes don't have modules
module = load_doctype_module(doctype)
if hasattr(module, "get_list_context"):
out = frappe._dict(module.get_list_context(list_context) or {})
if out:
list_context = out

# get path from '/templates/' folder of the doctype
if not list_context.row_template:
list_context.row_template = frappe.get_meta(doctype).get_row_template()
list_context.row_template = meta.get_row_template()

# is web form, show the default web form filters
# which is only the owner


Laden…
Abbrechen
Speichern