brotherton-erpnext/erpnext/templates/pages/partners.py
2021-05-25 12:52:26 +05:30

17 lines
419 B
Python

# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
page_title = "Partners"
def get_context(context):
partners = frappe.db.sql("""select * from `tabSales Partner`
where show_in_website=1 order by name asc""", as_dict=True)
return {
"partners": partners,
"title": page_title
}