Anand Doshi | 885e074 | 2015-03-03 14:55:30 +0530 | [diff] [blame] | 1 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors |
Anand Doshi | 5d591eb | 2014-04-18 16:15:31 +0530 | [diff] [blame] | 2 | # License: GNU General Public License v3. See license.txt |
| 3 | |
Chillar Anand | 915b343 | 2021-09-02 16:44:59 +0530 | [diff] [blame] | 4 | |
Anand Doshi | 5d591eb | 2014-04-18 16:15:31 +0530 | [diff] [blame] | 5 | import frappe |
Anand Doshi | 5d591eb | 2014-04-18 16:15:31 +0530 | [diff] [blame] | 6 | |
Anand Doshi | 11ada53 | 2014-06-27 21:02:55 +0530 | [diff] [blame] | 7 | page_title = "Partners" |
| 8 | |
Anand Doshi | 11ada53 | 2014-06-27 21:02:55 +0530 | [diff] [blame] | 9 | |
Ankush Menat | 494bd9e | 2022-03-28 18:52:46 +0530 | [diff] [blame] | 10 | def get_context(context): |
| 11 | partners = frappe.db.sql( |
| 12 | """select * from `tabSales Partner` |
| 13 | where show_in_website=1 order by name asc""", |
| 14 | as_dict=True, |
| 15 | ) |
| 16 | |
| 17 | return {"partners": partners, "title": page_title} |