brotherton-erpnext/erpnext/patches/v8_5/remove_quotations_route_in_sidebar.py
Makarand Bauskar 9306aff1bb [minor] moved the patch to v8_5 and other minor fixes ()
* Quotation and Supplier Quotation Route and Permission Edits

* [minor] moved the patch to v8_5 and other minor fixes
2017-07-21 15:19:47 +05:30

16 lines
402 B
Python

# Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
frappe.reload_doctype("Portal Settings")
frappe.db.sql("""
delete from
`tabPortal Menu Item`
where
(route = '/quotations' and title = 'Supplier Quotation')
or (route = '/quotation' and title = 'Quotations')
""")