e6bbf566ca9ef350e3bb15109e8c2a6008050ce2
fusion.plating.delivery already had packing_list_attachment_id + a viewer action, but nothing populated it — shipping a local delivery produced no packing slip. Add _fp_generate_packing_slip(): renders fusion_plating_reports.action_report_fp_packing_slip_portrait and stores it on packing_list_attachment_id. Hooked into action_start_route (the dispatch / loaded-on-vehicle moment, so it travels with the goods) and as a generate-if-missing catch-all on action_mark_delivered. Idempotent (skips deliveries that already have one unless force=True) and best-effort (a report glitch logs + continues, never blocks shipping). Report action resolved at runtime so logistics keeps no hard dep on fusion_plating_reports. Deployed + verified on entech (12.8KB PDF for DLV-30097, rolled back). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Description
Odoo 19 custom modules
Languages
Python
57.7%
HTML
23.8%
JavaScript
14.9%
SCSS
2.3%
CSS
0.8%
Other
0.4%