[minor] moved the patch to v8_5 and other minor fixes (#10012)
* Quotation and Supplier Quotation Route and Permission Edits * [minor] moved the patch to v8_5 and other minor fixes
This commit is contained in:
parent
73f969fd7f
commit
9306aff1bb
@ -72,14 +72,20 @@ website_route_rules = [
|
|||||||
"parents": [{"title": _("Invoices"), "name": "invoices"}]
|
"parents": [{"title": _("Invoices"), "name": "invoices"}]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{"from_route": "/quotations", "to_route": "Supplier Quotation"},
|
{"from_route": "/supplier-quotations", "to_route": "Supplier Quotation"},
|
||||||
{"from_route": "/quotations/<path:name>", "to_route": "order",
|
{"from_route": "/supplier-quotations/<path:name>", "to_route": "order",
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"doctype": "Supplier Quotation",
|
"doctype": "Supplier Quotation",
|
||||||
"parents": [{"title": _("Supplier Quotation"), "name": "quotations"}]
|
"parents": [{"title": _("Supplier Quotation"), "name": "quotations"}]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{"from_route": "/quotation", "to_route": "Quotation"},
|
{"from_route": "/quotations", "to_route": "Quotation"},
|
||||||
|
{"from_route": "/quotations/<path:name>", "to_route": "order",
|
||||||
|
"defaults": {
|
||||||
|
"doctype": "Quotation",
|
||||||
|
"parents": [{"title": _("Quotations"), "name": "quotation"}]
|
||||||
|
}
|
||||||
|
},
|
||||||
{"from_route": "/shipments", "to_route": "Delivery Note"},
|
{"from_route": "/shipments", "to_route": "Delivery Note"},
|
||||||
{"from_route": "/shipments/<path:name>", "to_route": "order",
|
{"from_route": "/shipments/<path:name>", "to_route": "order",
|
||||||
"defaults": {
|
"defaults": {
|
||||||
@ -109,8 +115,8 @@ website_route_rules = [
|
|||||||
standard_portal_menu_items = [
|
standard_portal_menu_items = [
|
||||||
{"title": _("Projects"), "route": "/project", "reference_doctype": "Project"},
|
{"title": _("Projects"), "route": "/project", "reference_doctype": "Project"},
|
||||||
{"title": _("Request for Quotations"), "route": "/rfq", "reference_doctype": "Request for Quotation", "role": "Supplier"},
|
{"title": _("Request for Quotations"), "route": "/rfq", "reference_doctype": "Request for Quotation", "role": "Supplier"},
|
||||||
{"title": _("Supplier Quotation"), "route": "/quotations", "reference_doctype": "Supplier Quotation", "role": "Supplier"},
|
{"title": _("Supplier Quotation"), "route": "/supplier-quotations", "reference_doctype": "Supplier Quotation", "role": "Supplier"},
|
||||||
{"title": _("Quotations"), "route": "/quotation", "reference_doctype": "Quotation", "role":"Customer"},
|
{"title": _("Quotations"), "route": "/quotations", "reference_doctype": "Quotation", "role":"Customer"},
|
||||||
{"title": _("Orders"), "route": "/orders", "reference_doctype": "Sales Order", "role":"Customer"},
|
{"title": _("Orders"), "route": "/orders", "reference_doctype": "Sales Order", "role":"Customer"},
|
||||||
{"title": _("Invoices"), "route": "/invoices", "reference_doctype": "Sales Invoice", "role":"Customer"},
|
{"title": _("Invoices"), "route": "/invoices", "reference_doctype": "Sales Invoice", "role":"Customer"},
|
||||||
{"title": _("Shipments"), "route": "/shipments", "reference_doctype": "Delivery Note", "role":"Customer"},
|
{"title": _("Shipments"), "route": "/shipments", "reference_doctype": "Delivery Note", "role":"Customer"},
|
||||||
@ -127,6 +133,7 @@ default_roles = [
|
|||||||
|
|
||||||
has_website_permission = {
|
has_website_permission = {
|
||||||
"Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
"Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
||||||
|
"Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
||||||
"Sales Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
"Sales Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
||||||
"Supplier Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
"Supplier Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
||||||
"Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
"Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
||||||
|
@ -423,4 +423,5 @@ erpnext.patches.v8_3.set_restrict_to_domain_for_module_def
|
|||||||
erpnext.patches.v8_1.update_expense_claim_status
|
erpnext.patches.v8_1.update_expense_claim_status
|
||||||
erpnext.patches.v8_3.update_company_total_sales
|
erpnext.patches.v8_3.update_company_total_sales
|
||||||
erpnext.patches.v8_1.set_delivery_date_in_so_item
|
erpnext.patches.v8_1.set_delivery_date_in_so_item
|
||||||
erpnext.patches.v8_5.fix_tax_breakup_for_non_invoice_docs
|
erpnext.patches.v8_5.fix_tax_breakup_for_non_invoice_docs
|
||||||
|
erpnext.patches.v8_5.remove_quotations_route_in_sidebar
|
16
erpnext/patches/v8_5/remove_quotations_route_in_sidebar.py
Normal file
16
erpnext/patches/v8_5/remove_quotations_route_in_sidebar.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# 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')
|
||||||
|
""")
|
Loading…
x
Reference in New Issue
Block a user