brotherton-erpnext/erpnext/templates/pages/partners.py

18 lines
382 B
Python
Raw Normal View History

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