fix(plating): drop Specification + Delivery Date from customer reports
Remove the unused Customer Specification field and the redundant Delivery Date (Lead Time covers it) from the customer-facing SO confirmation and invoice PDFs (portrait + landscape). SO info row goes 5->4 columns (Delivery Date gone); the Customer Job # / Spec / Delivery Method row goes 3->2 (Spec gone). Internal docs (traveller, sticker) and the CoC process "Specification(s)" section are left untouched. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
# License OPL-1 (Odoo Proprietary License v1.0)
|
# License OPL-1 (Odoo Proprietary License v1.0)
|
||||||
{
|
{
|
||||||
'name': 'Fusion Plating — Reports',
|
'name': 'Fusion Plating — Reports',
|
||||||
'version': '19.0.11.33.0',
|
'version': '19.0.11.34.0',
|
||||||
'category': 'Manufacturing/Plating',
|
'category': 'Manufacturing/Plating',
|
||||||
'summary': 'PDF reports for Fusion Plating: quote, SO, WO, packing, BoL, CoC, invoice, receipt, quality + compliance.',
|
'summary': 'PDF reports for Fusion Plating: quote, SO, WO, packing, BoL, CoC, invoice, receipt, quality + compliance.',
|
||||||
'depends': [
|
'depends': [
|
||||||
|
|||||||
@@ -159,18 +159,15 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!-- Row 2: Customer Job # | Specification | Delivery Method (pulled from source SO; hidden on manual invoices). -->
|
<!-- Row 2: Customer Job # | Delivery Method (pulled from source SO; hidden on manual invoices). -->
|
||||||
<t t-if="source_so and (source_so.x_fc_customer_job_number or spec_label or delivery_method_label)">
|
<t t-if="source_so and (source_so.x_fc_customer_job_number or delivery_method_label)">
|
||||||
<table class="bordered">
|
<table class="bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="info-header" style="width: 34%;">
|
<th class="info-header" style="width: 50%;">
|
||||||
<span class="fp-bl-en">Customer Job #</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">N° de travail client</span>
|
<span class="fp-bl-en">Customer Job #</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">N° de travail client</span>
|
||||||
</th>
|
</th>
|
||||||
<th class="info-header" style="width: 33%;">
|
<th class="info-header" style="width: 50%;">
|
||||||
<span class="fp-bl-en">Specification</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">Spécification</span>
|
|
||||||
</th>
|
|
||||||
<th class="info-header" style="width: 33%;">
|
|
||||||
<span class="fp-bl-en">Delivery Method</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">Méthode de livraison</span>
|
<span class="fp-bl-en">Delivery Method</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">Méthode de livraison</span>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -178,7 +175,6 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-center"><span t-esc="source_so.x_fc_customer_job_number or '—'"/></td>
|
<td class="text-center"><span t-esc="source_so.x_fc_customer_job_number or '—'"/></td>
|
||||||
<td class="text-center"><span t-esc="spec_label or '—'"/></td>
|
|
||||||
<td class="text-center"><span t-esc="delivery_method_label or '—'"/></td>
|
<td class="text-center"><span t-esc="delivery_method_label or '—'"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -509,16 +505,13 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!-- Source SO row (wider, 3 cols, inline). Hidden on manual invoices. -->
|
<!-- Source SO row (wider, 3 cols, inline). Hidden on manual invoices. -->
|
||||||
<t t-if="source_so and (source_so.x_fc_customer_job_number or spec_label or delivery_method_label)">
|
<t t-if="source_so and (source_so.x_fc_customer_job_number or delivery_method_label)">
|
||||||
<table class="bordered info-table">
|
<table class="bordered info-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<span class="fp-bl-en">Customer Job #</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">N° de travail client</span>
|
<span class="fp-bl-en">Customer Job #</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">N° de travail client</span>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
|
||||||
<span class="fp-bl-en">Specification</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">Spécification</span>
|
|
||||||
</th>
|
|
||||||
<th>
|
<th>
|
||||||
<span class="fp-bl-en">Delivery Method</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">Méthode de livraison</span>
|
<span class="fp-bl-en">Delivery Method</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">Méthode de livraison</span>
|
||||||
</th>
|
</th>
|
||||||
@@ -527,7 +520,6 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-center"><span t-esc="source_so.x_fc_customer_job_number or '—'"/></td>
|
<td class="text-center"><span t-esc="source_so.x_fc_customer_job_number or '—'"/></td>
|
||||||
<td class="text-center"><span t-esc="spec_label or '—'"/></td>
|
|
||||||
<td class="text-center"><span t-esc="delivery_method_label or '—'"/></td>
|
<td class="text-center"><span t-esc="delivery_method_label or '—'"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -260,23 +260,19 @@
|
|||||||
<table class="bordered">
|
<table class="bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="info-header" style="width: 20%;">
|
<th class="info-header" style="width: 25%;">
|
||||||
<span class="fp-bl-en-stk">Order Date</span>
|
<span class="fp-bl-en-stk">Order Date</span>
|
||||||
<span class="fp-bl-fr-stk">Date de commande</span>
|
<span class="fp-bl-fr-stk">Date de commande</span>
|
||||||
</th>
|
</th>
|
||||||
<th class="info-header" style="width: 20%;">
|
<th class="info-header" style="width: 25%;">
|
||||||
<span class="fp-bl-en-stk">Delivery Date</span>
|
|
||||||
<span class="fp-bl-fr-stk">Date de livraison</span>
|
|
||||||
</th>
|
|
||||||
<th class="info-header" style="width: 20%;">
|
|
||||||
<span class="fp-bl-en-stk">Salesperson</span>
|
<span class="fp-bl-en-stk">Salesperson</span>
|
||||||
<span class="fp-bl-fr-stk">Vendeur</span>
|
<span class="fp-bl-fr-stk">Vendeur</span>
|
||||||
</th>
|
</th>
|
||||||
<th class="info-header" style="width: 20%;">
|
<th class="info-header" style="width: 25%;">
|
||||||
<span class="fp-bl-en-stk">Customer PO #</span>
|
<span class="fp-bl-en-stk">Customer PO #</span>
|
||||||
<span class="fp-bl-fr-stk">N° de B/C client</span>
|
<span class="fp-bl-fr-stk">N° de B/C client</span>
|
||||||
</th>
|
</th>
|
||||||
<th class="info-header" style="width: 20%;">
|
<th class="info-header" style="width: 25%;">
|
||||||
<span class="fp-bl-en-stk">Lead Time</span>
|
<span class="fp-bl-en-stk">Lead Time</span>
|
||||||
<span class="fp-bl-fr-stk">Délai</span>
|
<span class="fp-bl-fr-stk">Délai</span>
|
||||||
</th>
|
</th>
|
||||||
@@ -285,12 +281,6 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-center"><span t-field="doc.date_order" t-options="{'widget': 'date'}"/></td>
|
<td class="text-center"><span t-field="doc.date_order" t-options="{'widget': 'date'}"/></td>
|
||||||
<td class="text-center">
|
|
||||||
<t t-if="doc.commitment_date">
|
|
||||||
<span t-field="doc.commitment_date" t-options="{'widget': 'date'}"/>
|
|
||||||
</t>
|
|
||||||
<t t-else="">—</t>
|
|
||||||
</td>
|
|
||||||
<td class="text-center"><span t-field="doc.user_id"/></td>
|
<td class="text-center"><span t-field="doc.user_id"/></td>
|
||||||
<td class="text-center"><span t-esc="doc.x_fc_po_number or '—'"/></td>
|
<td class="text-center"><span t-esc="doc.x_fc_po_number or '—'"/></td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
@@ -311,18 +301,15 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!-- Row 2: 3 wider cells (33% each) — inline. -->
|
<!-- Row 2: 2 wide cells (50% each) — inline. -->
|
||||||
<t t-if="doc.x_fc_customer_job_number or spec_label or delivery_method_label">
|
<t t-if="doc.x_fc_customer_job_number or delivery_method_label">
|
||||||
<table class="bordered">
|
<table class="bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="info-header" style="width: 34%;">
|
<th class="info-header" style="width: 50%;">
|
||||||
<span class="fp-bl-en">Customer Job #</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">N° de travail client</span>
|
<span class="fp-bl-en">Customer Job #</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">N° de travail client</span>
|
||||||
</th>
|
</th>
|
||||||
<th class="info-header" style="width: 33%;">
|
<th class="info-header" style="width: 50%;">
|
||||||
<span class="fp-bl-en">Specification</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">Spécification</span>
|
|
||||||
</th>
|
|
||||||
<th class="info-header" style="width: 33%;">
|
|
||||||
<span class="fp-bl-en">Delivery Method</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">Méthode de livraison</span>
|
<span class="fp-bl-en">Delivery Method</span><span class="fp-bl-sep">/</span><span class="fp-bl-fr">Méthode de livraison</span>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -330,7 +317,6 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-center"><span t-esc="doc.x_fc_customer_job_number or '—'"/></td>
|
<td class="text-center"><span t-esc="doc.x_fc_customer_job_number or '—'"/></td>
|
||||||
<td class="text-center"><span t-esc="spec_label or '—'"/></td>
|
|
||||||
<td class="text-center"><span t-esc="delivery_method_label or '—'"/></td>
|
<td class="text-center"><span t-esc="delivery_method_label or '—'"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -599,12 +585,11 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!-- Plating details -->
|
<!-- Plating details -->
|
||||||
<t t-if="doc.x_fc_part_catalog_id or doc.x_fc_customer_spec_id">
|
<t t-if="doc.x_fc_part_catalog_id">
|
||||||
<table class="bordered info-table">
|
<table class="bordered info-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>PART CATALOG</th>
|
<th>PART CATALOG</th>
|
||||||
<th>SPECIFICATION</th>
|
|
||||||
<th>INVOICE STRATEGY</th>
|
<th>INVOICE STRATEGY</th>
|
||||||
<th>DEPOSIT %</th>
|
<th>DEPOSIT %</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -612,7 +597,6 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-center"><span t-field="doc.x_fc_part_catalog_id"/></td>
|
<td class="text-center"><span t-field="doc.x_fc_part_catalog_id"/></td>
|
||||||
<td class="text-center"><span t-field="doc.x_fc_customer_spec_id"/></td>
|
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
<t t-set="inv_strat" t-value="dict(doc._fields['x_fc_invoice_strategy'].selection).get(doc.x_fc_invoice_strategy, '-')"/>
|
<t t-set="inv_strat" t-value="dict(doc._fields['x_fc_invoice_strategy'].selection).get(doc.x_fc_invoice_strategy, '-')"/>
|
||||||
<span t-esc="inv_strat"/>
|
<span t-esc="inv_strat"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user