fix(fusion_plating_reports): page-break-inside on CoC part rows

Final-review follow-up: per the entech wkhtmltopdf rule, page-break-inside
must sit on each <tr>, not just the <table>, so a large multi-part cert
can't split a part row mid-row under the company header.

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

View File

@@ -296,7 +296,7 @@
</thead>
<tbody>
<t t-foreach="doc.part_line_ids" t-as="pl">
<tr>
<tr style="page-break-inside: avoid;">
<td class="text-center" style="line-height: 1.3;">
<div><t t-esc="pl.part_number or '-'"/></div>
<div><t t-esc="pl.part_name or '-'"/></div>
@@ -314,7 +314,7 @@
<td class="text-center"><t t-esc="doc.customer_job_no or '-'"/></td>
</tr>
</t>
<tr t-if="not doc.part_line_ids">
<tr t-if="not doc.part_line_ids" style="page-break-inside: avoid;">
<td class="text-center" style="line-height: 1.3;">
<t t-set="pid" t-value="doc._fp_resolve_part_identity()"/>
<div><t t-esc="pid[0] or '-'"/></div>