diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py index 261b26fe316..0b31937c8b4 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py @@ -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 diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index c3d24c392a8..46797291d92 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -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 diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.py b/erpnext/buying/doctype/purchase_order/purchase_order.py index 5c3e0d92257..ca9761dda47 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.py +++ b/erpnext/buying/doctype/purchase_order/purchase_order.py @@ -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 diff --git a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py index 992e4f758cb..2cf564e6152 100644 --- a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py +++ b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py @@ -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 diff --git a/erpnext/buying/doctype/supplier_quotation/supplier_quotation.py b/erpnext/buying/doctype/supplier_quotation/supplier_quotation.py index 10cba8a8be8..5923d48d736 100644 --- a/erpnext/buying/doctype/supplier_quotation/supplier_quotation.py +++ b/erpnext/buying/doctype/supplier_quotation/supplier_quotation.py @@ -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", } ) diff --git a/erpnext/hooks.py b/erpnext/hooks.py index 9a65062e7c4..2dffbde5d4b 100644 --- a/erpnext/hooks.py +++ b/erpnext/hooks.py @@ -123,13 +123,13 @@ website_context = { website_route_rules = [ {"from_route": "/orders", "to_route": "Sales Order"}, { - "from_route": "/orders/", + "from_route": "/portal/orders/", "to_route": "order", "defaults": {"doctype": "Sales Order", "parents": [{"label": "Orders", "route": "orders"}]}, }, {"from_route": "/invoices", "to_route": "Sales Invoice"}, { - "from_route": "/invoices/", + "from_route": "/portal/invoices/", "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/", + "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/", + "from_route": "/portal/purchase-invoices/", "to_route": "order", "defaults": { "doctype": "Purchase Invoice", @@ -165,7 +173,7 @@ website_route_rules = [ }, {"from_route": "/quotations", "to_route": "Quotation"}, { - "from_route": "/quotations/", + "from_route": "/portal/quotations/", "to_route": "order", "defaults": { "doctype": "Quotation", @@ -174,7 +182,7 @@ website_route_rules = [ }, {"from_route": "/shipments", "to_route": "Delivery Note"}, { - "from_route": "/shipments/", + "from_route": "/portal/shipments/", "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/", + "from_route": "/portal/rfq/", "to_route": "rfq", "defaults": { "doctype": "Request for Quotation", diff --git a/erpnext/projects/doctype/project/project.py b/erpnext/projects/doctype/project/project.py index 1f0e282cee2..13da8d10774 100644 --- a/erpnext/projects/doctype/project/project.py +++ b/erpnext/projects/doctype/project/project.py @@ -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", } ) diff --git a/erpnext/projects/doctype/timesheet/timesheet.py b/erpnext/projects/doctype/timesheet/timesheet.py index 80552abe895..5ef50218a3f 100644 --- a/erpnext/projects/doctype/timesheet/timesheet.py +++ b/erpnext/projects/doctype/timesheet/timesheet.py @@ -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", } diff --git a/erpnext/selling/doctype/quotation/quotation.py b/erpnext/selling/doctype/quotation/quotation.py index 8ca6688852f..db037ff46fb 100644 --- a/erpnext/selling/doctype/quotation/quotation.py +++ b/erpnext/selling/doctype/quotation/quotation.py @@ -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", } ) diff --git a/erpnext/selling/doctype/sales_order/sales_order.py b/erpnext/selling/doctype/sales_order/sales_order.py index 70f2d2bd395..a3c0ef2f52d 100755 --- a/erpnext/selling/doctype/sales_order/sales_order.py +++ b/erpnext/selling/doctype/sales_order/sales_order.py @@ -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", } ) diff --git a/erpnext/stock/doctype/delivery_note/delivery_note.py b/erpnext/stock/doctype/delivery_note/delivery_note.py index 6c639787cae..3b52f91b492 100644 --- a/erpnext/stock/doctype/delivery_note/delivery_note.py +++ b/erpnext/stock/doctype/delivery_note/delivery_note.py @@ -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 diff --git a/erpnext/stock/doctype/material_request/material_request.py b/erpnext/stock/doctype/material_request/material_request.py index f56fa8b6e7b..3eac6f94f04 100644 --- a/erpnext/stock/doctype/material_request/material_request.py +++ b/erpnext/stock/doctype/material_request/material_request.py @@ -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", } )