feat(portal): redirect 3 legacy URLs to consolidated homes (Sub-A IA)

- /my/fp_invoices       -> /my/account_summary
- /my/purchase_orders   -> /my/orders (Odoo default)
- /my/quote_requests/new (GET) -> /my/configurator/new
  (POST handler preserved for back-compat with the existing RFQ form
  button; will be removed after the form is fully retired)

Thin templates deleted: portal_my_fp_invoices, portal_my_purchase_orders.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-05-17 14:01:32 -04:00
parent fe4cceeffa
commit 8225061dfa
2 changed files with 12 additions and 226 deletions

View File

@@ -575,98 +575,6 @@
</t>
</template>
<!-- ================================================================== -->
<!-- PURCHASE ORDERS — list -->
<!-- ================================================================== -->
<template id="portal_my_purchase_orders" name="My Purchase Orders">
<t t-call="portal.portal_layout">
<t t-set="breadcrumbs_searchbar" t-value="True"/>
<t t-call="portal.portal_searchbar">
<t t-set="title">Purchase Orders</t>
</t>
<t t-if="not orders">
<div class="o_fp_portal_card card bg-body-tertiary border-0 p-4 text-center">
<p class="text-muted mb-0">No purchase orders found.</p>
</div>
</t>
<t t-if="orders" t-call="portal.portal_table">
<thead>
<tr class="active">
<th>Order</th>
<th>Date</th>
<th class="text-end">Total</th>
</tr>
</thead>
<tbody>
<tr t-foreach="orders" t-as="order">
<td t-out="order.name"/>
<td>
<span t-field="order.date_order" t-options='{"widget": "date"}'/>
</td>
<td class="text-end">
<span t-field="order.amount_total"
t-options='{"widget": "monetary", "display_currency": order.currency_id}'/>
</td>
</tr>
</tbody>
</t>
</t>
</template>
<!-- ================================================================== -->
<!-- INVOICES — list -->
<!-- ================================================================== -->
<template id="portal_my_fp_invoices" name="My Invoices">
<t t-call="portal.portal_layout">
<t t-set="breadcrumbs_searchbar" t-value="True"/>
<t t-call="portal.portal_searchbar">
<t t-set="title">Invoices</t>
</t>
<t t-if="not invoices">
<div class="o_fp_portal_card card bg-body-tertiary border-0 p-4 text-center">
<p class="text-muted mb-0">No invoices found.</p>
</div>
</t>
<t t-if="invoices" t-call="portal.portal_table">
<thead>
<tr class="active">
<th>Invoice</th>
<th>Date</th>
<th>Due Date</th>
<th class="text-end">Amount Due</th>
<th class="text-end">Total</th>
</tr>
</thead>
<tbody>
<tr t-foreach="invoices" t-as="inv">
<td t-out="inv.name"/>
<td>
<span t-if="inv.invoice_date"
t-field="inv.invoice_date"
t-options='{"widget": "date"}'/>
</td>
<td>
<span t-if="inv.invoice_date_due"
t-field="inv.invoice_date_due"
t-options='{"widget": "date"}'/>
<span t-else="" class="text-muted">--</span>
</td>
<td class="text-end">
<span t-field="inv.amount_residual"
t-options='{"widget": "monetary", "display_currency": inv.currency_id}'/>
</td>
<td class="text-end">
<span t-field="inv.amount_total"
t-options='{"widget": "monetary", "display_currency": inv.currency_id}'/>
</td>
</tr>
</tbody>
</t>
</t>
</template>
<!-- ================================================================== -->
<!-- DELIVERIES / PACKING SLIPS — list -->
<!-- ================================================================== -->