This commit is contained in:
Rushabh Mehta 2016-06-28 17:11:32 +05:30
parent 6703792472
commit 878dfec46a
2 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,7 @@ def post_process(doctype, data):
doc.set_indicator()
doc.status_display = ", ".join(doc.status_display)
doc.items_preview = ", ".join([d.item_name for d in doc.items])
doc.items_preview = ", ".join([d.item_name for d in doc.items if d.item_name])
result.append(doc)
return result

View File

@ -9,6 +9,7 @@ from erpnext.controllers.website_list_for_contact import (get_customers_supplier
def get_context(context):
context.no_cache = 1
context.show_sidebar = True
context.doc = frappe.get_doc(frappe.form_dict.doctype, frappe.form_dict.name)
context.parents = frappe.form_dict.parents
context.doc.supplier = get_supplier()