mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 21:19:19 +00:00
Merge pull request #51097 from sokumon/portal-redirect
This commit is contained in:
@@ -2027,6 +2027,7 @@ def get_list_context(context=None):
|
|||||||
"show_search": True,
|
"show_search": True,
|
||||||
"no_breadcrumbs": True,
|
"no_breadcrumbs": True,
|
||||||
"title": _("Purchase Invoices"),
|
"title": _("Purchase Invoices"),
|
||||||
|
"list_template": "templates/includes/list/list.html",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return list_context
|
return list_context
|
||||||
|
|||||||
@@ -2326,6 +2326,7 @@ def get_list_context(context=None):
|
|||||||
"show_search": True,
|
"show_search": True,
|
||||||
"no_breadcrumbs": True,
|
"no_breadcrumbs": True,
|
||||||
"title": _("Invoices"),
|
"title": _("Invoices"),
|
||||||
|
"list_template": "templates/includes/list/list.html",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return list_context
|
return list_context
|
||||||
|
|||||||
@@ -929,6 +929,7 @@ def get_list_context(context=None):
|
|||||||
"show_search": True,
|
"show_search": True,
|
||||||
"no_breadcrumbs": True,
|
"no_breadcrumbs": True,
|
||||||
"title": _("Purchase Orders"),
|
"title": _("Purchase Orders"),
|
||||||
|
"list_template": "templates/includes/list/list.html",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return list_context
|
return list_context
|
||||||
|
|||||||
@@ -386,6 +386,7 @@ def get_list_context(context=None):
|
|||||||
"show_search": True,
|
"show_search": True,
|
||||||
"no_breadcrumbs": True,
|
"no_breadcrumbs": True,
|
||||||
"title": _("Request for Quotation"),
|
"title": _("Request for Quotation"),
|
||||||
|
"list_template": "templates/includes/list/list.html",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return list_context
|
return list_context
|
||||||
|
|||||||
@@ -232,6 +232,7 @@ def get_list_context(context=None):
|
|||||||
"show_search": True,
|
"show_search": True,
|
||||||
"no_breadcrumbs": True,
|
"no_breadcrumbs": True,
|
||||||
"title": _("Supplier Quotation"),
|
"title": _("Supplier Quotation"),
|
||||||
|
"list_template": "templates/includes/list/list.html",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -123,13 +123,13 @@ website_context = {
|
|||||||
website_route_rules = [
|
website_route_rules = [
|
||||||
{"from_route": "/orders", "to_route": "Sales Order"},
|
{"from_route": "/orders", "to_route": "Sales Order"},
|
||||||
{
|
{
|
||||||
"from_route": "/orders/<path:name>",
|
"from_route": "/portal/orders/<path:name>",
|
||||||
"to_route": "order",
|
"to_route": "order",
|
||||||
"defaults": {"doctype": "Sales Order", "parents": [{"label": "Orders", "route": "orders"}]},
|
"defaults": {"doctype": "Sales Order", "parents": [{"label": "Orders", "route": "orders"}]},
|
||||||
},
|
},
|
||||||
{"from_route": "/invoices", "to_route": "Sales Invoice"},
|
{"from_route": "/invoices", "to_route": "Sales Invoice"},
|
||||||
{
|
{
|
||||||
"from_route": "/invoices/<path:name>",
|
"from_route": "/portal/invoices/<path:name>",
|
||||||
"to_route": "order",
|
"to_route": "order",
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"doctype": "Sales Invoice",
|
"doctype": "Sales Invoice",
|
||||||
@@ -154,9 +154,17 @@ website_route_rules = [
|
|||||||
"parents": [{"label": "Purchase Order", "route": "purchase-orders"}],
|
"parents": [{"label": "Purchase Order", "route": "purchase-orders"}],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"from_route": "/portal/purchase-orders/<path:name>",
|
||||||
|
"to_route": "order",
|
||||||
|
"defaults": {
|
||||||
|
"doctype": "Purchase Order",
|
||||||
|
"parents": [{"label": "Purchase Order", "route": "purchase-orders"}],
|
||||||
|
},
|
||||||
|
},
|
||||||
{"from_route": "/purchase-invoices", "to_route": "Purchase Invoice"},
|
{"from_route": "/purchase-invoices", "to_route": "Purchase Invoice"},
|
||||||
{
|
{
|
||||||
"from_route": "/purchase-invoices/<path:name>",
|
"from_route": "/portal/purchase-invoices/<path:name>",
|
||||||
"to_route": "order",
|
"to_route": "order",
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"doctype": "Purchase Invoice",
|
"doctype": "Purchase Invoice",
|
||||||
@@ -165,7 +173,7 @@ website_route_rules = [
|
|||||||
},
|
},
|
||||||
{"from_route": "/quotations", "to_route": "Quotation"},
|
{"from_route": "/quotations", "to_route": "Quotation"},
|
||||||
{
|
{
|
||||||
"from_route": "/quotations/<path:name>",
|
"from_route": "/portal/quotations/<path:name>",
|
||||||
"to_route": "order",
|
"to_route": "order",
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"doctype": "Quotation",
|
"doctype": "Quotation",
|
||||||
@@ -174,7 +182,7 @@ website_route_rules = [
|
|||||||
},
|
},
|
||||||
{"from_route": "/shipments", "to_route": "Delivery Note"},
|
{"from_route": "/shipments", "to_route": "Delivery Note"},
|
||||||
{
|
{
|
||||||
"from_route": "/shipments/<path:name>",
|
"from_route": "/portal/shipments/<path:name>",
|
||||||
"to_route": "order",
|
"to_route": "order",
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"doctype": "Delivery Note",
|
"doctype": "Delivery Note",
|
||||||
@@ -183,7 +191,7 @@ website_route_rules = [
|
|||||||
},
|
},
|
||||||
{"from_route": "/rfq", "to_route": "Request for Quotation"},
|
{"from_route": "/rfq", "to_route": "Request for Quotation"},
|
||||||
{
|
{
|
||||||
"from_route": "/rfq/<path:name>",
|
"from_route": "/portal/rfq/<path:name>",
|
||||||
"to_route": "rfq",
|
"to_route": "rfq",
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"doctype": "Request for Quotation",
|
"doctype": "Request for Quotation",
|
||||||
|
|||||||
@@ -447,6 +447,7 @@ def get_list_context(context=None):
|
|||||||
"title": _("Projects"),
|
"title": _("Projects"),
|
||||||
"get_list": get_project_list,
|
"get_list": get_project_list,
|
||||||
"row_template": "templates/includes/projects/project_row.html",
|
"row_template": "templates/includes/projects/project_row.html",
|
||||||
|
"list_template": "templates/includes/list/list.html",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -559,4 +559,5 @@ def get_list_context(context=None):
|
|||||||
"title": _("Timesheets"),
|
"title": _("Timesheets"),
|
||||||
"get_list": get_timesheets_list,
|
"get_list": get_timesheets_list,
|
||||||
"row_template": "templates/includes/timesheet/timesheet_row.html",
|
"row_template": "templates/includes/timesheet/timesheet_row.html",
|
||||||
|
"list_template": "templates/includes/list/list.html",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -345,6 +345,7 @@ def get_list_context(context=None):
|
|||||||
"show_search": True,
|
"show_search": True,
|
||||||
"no_breadcrumbs": True,
|
"no_breadcrumbs": True,
|
||||||
"title": _("Quotations"),
|
"title": _("Quotations"),
|
||||||
|
"list_template": "templates/includes/list/list.html",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -954,6 +954,7 @@ def get_list_context(context=None):
|
|||||||
"show_search": True,
|
"show_search": True,
|
||||||
"no_breadcrumbs": True,
|
"no_breadcrumbs": True,
|
||||||
"title": _("Orders"),
|
"title": _("Orders"),
|
||||||
|
"list_template": "templates/includes/list/list.html",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -791,6 +791,7 @@ def get_list_context(context=None):
|
|||||||
"show_search": True,
|
"show_search": True,
|
||||||
"no_breadcrumbs": True,
|
"no_breadcrumbs": True,
|
||||||
"title": _("Shipments"),
|
"title": _("Shipments"),
|
||||||
|
"list_template": "templates/includes/list/list.html",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return list_context
|
return list_context
|
||||||
|
|||||||
@@ -471,6 +471,7 @@ def get_list_context(context=None):
|
|||||||
"show_search": True,
|
"show_search": True,
|
||||||
"no_breadcrumbs": True,
|
"no_breadcrumbs": True,
|
||||||
"title": _("Material Request"),
|
"title": _("Material Request"),
|
||||||
|
"list_template": "templates/includes/list/list.html",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user