From 25f568f225b13597d1a97337de48f021dfb399c4 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Mon, 18 May 2026 00:30:55 -0400 Subject: [PATCH] =?UTF-8?q?fix(portal):=20correct=20terminology=20?= =?UTF-8?q?=E2=80=94=20Sales=20Orders=20everywhere=20(revert=20Purchase=20?= =?UTF-8?q?Orders=20rename)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The customer's Purchase Order is the doc they send US — a separate artifact, often a PDF attachment on the quote. What lives in our system is the Sales Order we create in response. Labeling the SO list as "Purchase Orders" in the customer portal was a wrong-side mapping. Reverts and renames in this commit: - Sidebar item label: "Purchase Orders" → "Sales Orders" (key stays odoo_orders; URL still /my/orders). _FP_SIDEBAR_LAYOUT. - Dashboard KPI tile: "Active POs" → "Active Sales Orders". Link hint: "View POs →" → "View orders →". Link target updated to the current /my/orders (the legacy /my/purchase_orders still redirects but we point at the canonical URL now). - Dashboard panel: "Recent Purchase Orders" → "Recent Sales Orders". Empty state: "No purchase orders yet." → "No sales orders yet." View-all link target updated to /my/orders. - Dashboard docs entries strip: "Purchase Orders" docs entry title → "Sales Orders"; URL → /my/orders. - Removed the three Odoo template rename inherits from fp_sale_order_portal.xml (sale.portal_my_home_menu_sale, sale.portal_my_orders, sale.sale_order_portal_content). With those gone the stock templates emit Odoo's native "Sales Order(s)" and "Your Orders" wording on the list page header, breadcrumb, and detail page

— which is now the correct terminology. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../controllers/portal.py | 2 +- .../views/fp_portal_dashboard.xml | 16 ++-- .../views/fp_sale_order_portal.xml | 95 ------------------- 3 files changed, 9 insertions(+), 104 deletions(-) diff --git a/fusion_plating/fusion_plating_portal/controllers/portal.py b/fusion_plating/fusion_plating_portal/controllers/portal.py index 81baeddf..0d701d51 100644 --- a/fusion_plating/fusion_plating_portal/controllers/portal.py +++ b/fusion_plating/fusion_plating_portal/controllers/portal.py @@ -126,7 +126,7 @@ class FpCustomerPortal(CustomerPortal): {'type': 'section_label', 'label': 'Activity'}, {'type': 'item', 'key': 'fp_quote_requests', 'label': 'Quote Requests', 'icon': '📄', 'url': '/my/quote_requests'}, {'type': 'item', 'key': 'fp_configurator', 'label': 'Get a Quote', 'icon': '+', 'url': '/my/configurator'}, - {'type': 'item', 'key': 'odoo_orders', 'label': 'Purchase Orders', 'icon': '🛒', 'url': '/my/orders'}, + {'type': 'item', 'key': 'odoo_orders', 'label': 'Sales Orders', 'icon': '🛒', 'url': '/my/orders'}, {'type': 'item', 'key': 'fp_jobs', 'label': 'Work Orders', 'icon': '⚙️', 'url': '/my/jobs'}, {'type': 'section_label', 'label': 'Documents'}, {'type': 'item', 'key': 'fp_certifications', 'label': 'Certifications', 'icon': '📑', 'url': '/my/certifications'}, diff --git a/fusion_plating/fusion_plating_portal/views/fp_portal_dashboard.xml b/fusion_plating/fusion_plating_portal/views/fp_portal_dashboard.xml index dfee6d16..86588f03 100644 --- a/fusion_plating/fusion_plating_portal/views/fp_portal_dashboard.xml +++ b/fusion_plating/fusion_plating_portal/views/fp_portal_dashboard.xml @@ -38,9 +38,9 @@ View quotes →
-
Active POs
+
Active Sales Orders
In-Flight Jobs
@@ -110,11 +110,11 @@
- +
- 🛒 Recent Purchase Orders - View all → + 🛒 Recent Sales Orders + View all →
@@ -125,7 +125,7 @@ -
No purchase orders yet.
+
No sales orders yet.
@@ -219,8 +219,8 @@ - Purchase Orders - + Sales Orders + diff --git a/fusion_plating/fusion_plating_portal/views/fp_sale_order_portal.xml b/fusion_plating/fusion_plating_portal/views/fp_sale_order_portal.xml index 92e9da7d..a7846abd 100644 --- a/fusion_plating/fusion_plating_portal/views/fp_sale_order_portal.xml +++ b/fusion_plating/fusion_plating_portal/views/fp_sale_order_portal.xml @@ -95,99 +95,4 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -