feat(plating): Sub 4 — Check All / Clear All buttons + fix QA-005 PDF logo render

- New bulk-toggle actions on fp.contract.review flip all 10 checklist
  items in Section 2.0 (and all 11 in Section 3.0) in one click.
  Rendered as "Check All" / "Clear All" buttons above each checklist.
  User can still tick boxes individually. Buttons hide once the
  section is signed (locked).
- Fix QA-005 PDF: replaced `to_text(...)` (not in QWeb context) with
  `image_data_uri(...)` for the company logo embed. PDF now renders
  with the full colour ENTECH logo (render size 103 KB).
- Smoke test extended: 5 new assertions covering bulk-toggle on/off
  and locked-section guard. 17/17 pass on entech.

fusion_plating_quality → 19.0.2.1.0

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-04-22 21:50:18 -04:00
parent 21da526aa7
commit 5d9c78f8ce
5 changed files with 127 additions and 2 deletions

View File

@@ -69,6 +69,21 @@
<group>
<field name="s20_locked" invisible="1"/>
</group>
<div class="mb-2" invisible="s20_locked">
<button name="action_check_all_section_20"
type="object"
string="Check All"
class="btn btn-sm btn-secondary me-2"
icon="fa-check-square-o"/>
<button name="action_clear_all_section_20"
type="object"
string="Clear All"
class="btn btn-sm btn-link"
icon="fa-square-o"/>
<span class="text-muted ms-2">
Bulk-toggle the 10 checklist items, or tick them individually below.
</span>
</div>
<group col="4" string="Checklist">
<field name="s20_acceptable_lead_time" readonly="s20_locked"/>
<field name="s20_capacity_to_process" readonly="s20_locked"/>
@@ -101,6 +116,21 @@
<group>
<field name="s30_locked" invisible="1"/>
</group>
<div class="mb-2" invisible="s30_locked">
<button name="action_check_all_section_30"
type="object"
string="Check All"
class="btn btn-sm btn-secondary me-2"
icon="fa-check-square-o"/>
<button name="action_clear_all_section_30"
type="object"
string="Clear All"
class="btn btn-sm btn-link"
icon="fa-square-o"/>
<span class="text-muted ms-2">
Bulk-toggle the 11 checklist items, or tick them individually below.
</span>
</div>
<group col="4" string="Checklist">
<field name="s30_source_control_docs" readonly="s30_locked"/>
<field name="s30_quality_clauses_supplied" readonly="s30_locked"/>