Properly redirect supplier after quotations submit (#10903)
This commit is contained in:
parent
70eaf2da95
commit
d3fa19143d
@ -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"},
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user