brotherton-erpnext/erpnext/patches/v8_5/remove_quotations_route_in_sidebar.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
402 B
Python
Raw Normal View History

# 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')
""")