Properly redirect supplier after quotations submit (#10903)

This commit is contained in:
Brown-Harry Boma 2017-09-27 08:23:38 +01:00 committed by Nabin Hait
parent 70eaf2da95
commit d3fa19143d
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ website_route_rules = [
{"from_route": "/supplier-quotations/<path:name>", "to_route": "order",
"defaults": {
"doctype": "Supplier Quotation",
"parents": [{"label": _("Supplier Quotation"), "route": "quotations"}]
"parents": [{"label": _("Supplier Quotation"), "route": "supplier-quotations"}]
}
},
{"from_route": "/quotations", "to_route": "Quotation"},

View File

@ -85,7 +85,7 @@ rfq = Class.extend({
frappe.unfreeze();
if(r.message){
$('.btn-sm').hide()
window.location.href = "/quotations/" + encodeURIComponent(r.message);
window.location.href = "/supplier-quotations/" + encodeURIComponent(r.message);
}
}
})