2015-03-03 09:25:30 +00:00
|
|
|
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
2014-04-18 10:45:31 +00:00
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2021-09-02 11:14:59 +00:00
|
|
|
|
2014-04-18 10:45:31 +00:00
|
|
|
import frappe
|
|
|
|
|
2014-06-27 15:32:55 +00:00
|
|
|
page_title = "Partners"
|
|
|
|
|
2022-03-28 13:22:46 +00:00
|
|
|
|
2014-04-18 10:45:31 +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,
|
|
|
|
)
|
2014-06-27 15:32:55 +00:00
|
|
|
|
2022-03-28 13:22:46 +00:00
|
|
|
return {"partners": partners, "title": page_title}
|