feat(fusion_plating_jobs): traveller lists all parts in the batch

Additive 'Batch parts' roster in the Item Information cell, shown when a
WO covers 2+ distinct parts (the labeled block still details the primary
part). Keeps the existing table layout intact.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-06-03 22:41:16 -04:00
parent ba1e15da07
commit c71c60350b

View File

@@ -142,6 +142,16 @@
<span t-esc="(job.recipe_id and job.recipe_id.name) or '—'"/><br/>
<strong>S/N:</strong>
<t t-if="'serial_number' in job._fields"><span t-esc="job.serial_number or ''"/></t>
<!-- Multi-part batch: list every distinct part on this WO
(the labeled block above details the primary part). -->
<t t-set="trav_lines" t-value="job.sale_order_line_ids.filtered(lambda l: not l.display_type and ('x_fc_part_catalog_id' in l._fields and l.x_fc_part_catalog_id)) if 'sale_order_line_ids' in job._fields else False"/>
<t t-set="trav_parts" t-value="trav_lines.mapped('x_fc_part_catalog_id') if trav_lines else False"/>
<t t-if="trav_parts and len(trav_parts) &gt; 1">
<br/><strong>Batch parts:</strong>
<t t-foreach="trav_parts" t-as="tp">
<div style="font-size: 7pt;"><span t-esc="tp.part_number or '—'"/><t t-if="'revision' in tp._fields and tp.revision"> Rev <span t-esc="tp.revision"/></t></div>
</t>
</t>
</td>
<td>
<strong>