* Quotation and Supplier Quotation Route and Permission Edits * [minor] moved the patch to v8_5 and other minor fixes
		
			
				
	
	
		
			16 lines
		
	
	
		
			402 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			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')
 | |
| 	""") |