Merge pull request #51097 from sokumon/portal-redirect

This commit is contained in:
Soham Kulkarni
2025-12-15 17:56:24 +05:30
committed by GitHub
12 changed files with 25 additions and 6 deletions

View File

@@ -2027,6 +2027,7 @@ def get_list_context(context=None):
"show_search": True,
"no_breadcrumbs": True,
"title": _("Purchase Invoices"),
"list_template": "templates/includes/list/list.html",
}
)
return list_context

View File

@@ -2326,6 +2326,7 @@ def get_list_context(context=None):
"show_search": True,
"no_breadcrumbs": True,
"title": _("Invoices"),
"list_template": "templates/includes/list/list.html",
}
)
return list_context

View File

@@ -929,6 +929,7 @@ def get_list_context(context=None):
"show_search": True,
"no_breadcrumbs": True,
"title": _("Purchase Orders"),
"list_template": "templates/includes/list/list.html",
}
)
return list_context

View File

@@ -386,6 +386,7 @@ def get_list_context(context=None):
"show_search": True,
"no_breadcrumbs": True,
"title": _("Request for Quotation"),
"list_template": "templates/includes/list/list.html",
}
)
return list_context

View File

@@ -232,6 +232,7 @@ def get_list_context(context=None):
"show_search": True,
"no_breadcrumbs": True,
"title": _("Supplier Quotation"),
"list_template": "templates/includes/list/list.html",
}
)

View File

@@ -123,13 +123,13 @@ website_context = {
website_route_rules = [
{"from_route": "/orders", "to_route": "Sales Order"},
{
"from_route": "/orders/<path:name>",
"from_route": "/portal/orders/<path:name>",
"to_route": "order",
"defaults": {"doctype": "Sales Order", "parents": [{"label": "Orders", "route": "orders"}]},
},
{"from_route": "/invoices", "to_route": "Sales Invoice"},
{
"from_route": "/invoices/<path:name>",
"from_route": "/portal/invoices/<path:name>",
"to_route": "order",
"defaults": {
"doctype": "Sales Invoice",
@@ -154,9 +154,17 @@ website_route_rules = [
"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/<path:name>",
"from_route": "/portal/purchase-invoices/<path:name>",
"to_route": "order",
"defaults": {
"doctype": "Purchase Invoice",
@@ -165,7 +173,7 @@ website_route_rules = [
},
{"from_route": "/quotations", "to_route": "Quotation"},
{
"from_route": "/quotations/<path:name>",
"from_route": "/portal/quotations/<path:name>",
"to_route": "order",
"defaults": {
"doctype": "Quotation",
@@ -174,7 +182,7 @@ website_route_rules = [
},
{"from_route": "/shipments", "to_route": "Delivery Note"},
{
"from_route": "/shipments/<path:name>",
"from_route": "/portal/shipments/<path:name>",
"to_route": "order",
"defaults": {
"doctype": "Delivery Note",
@@ -183,7 +191,7 @@ website_route_rules = [
},
{"from_route": "/rfq", "to_route": "Request for Quotation"},
{
"from_route": "/rfq/<path:name>",
"from_route": "/portal/rfq/<path:name>",
"to_route": "rfq",
"defaults": {
"doctype": "Request for Quotation",

View File

@@ -447,6 +447,7 @@ def get_list_context(context=None):
"title": _("Projects"),
"get_list": get_project_list,
"row_template": "templates/includes/projects/project_row.html",
"list_template": "templates/includes/list/list.html",
}
)

View File

@@ -559,4 +559,5 @@ def get_list_context(context=None):
"title": _("Timesheets"),
"get_list": get_timesheets_list,
"row_template": "templates/includes/timesheet/timesheet_row.html",
"list_template": "templates/includes/list/list.html",
}

View File

@@ -345,6 +345,7 @@ def get_list_context(context=None):
"show_search": True,
"no_breadcrumbs": True,
"title": _("Quotations"),
"list_template": "templates/includes/list/list.html",
}
)

View File

@@ -954,6 +954,7 @@ def get_list_context(context=None):
"show_search": True,
"no_breadcrumbs": True,
"title": _("Orders"),
"list_template": "templates/includes/list/list.html",
}
)

View File

@@ -791,6 +791,7 @@ def get_list_context(context=None):
"show_search": True,
"no_breadcrumbs": True,
"title": _("Shipments"),
"list_template": "templates/includes/list/list.html",
}
)
return list_context

View File

@@ -471,6 +471,7 @@ def get_list_context(context=None):
"show_search": True,
"no_breadcrumbs": True,
"title": _("Material Request"),
"list_template": "templates/includes/list/list.html",
}
)