0eab4b4efb2b8d745db3ce1dbe0447debca34302
The QR <img> src used `% quote(_scan_url)` to URL-encode the value, but `quote` isn't always in the QWeb render context — particularly on the fusion_pdf_preview / account render chains. Result: KeyError: 'quote' when printing from the browser. _scan_url is always base_url + '/fp/wo/<int>' — no characters that need encoding. Replaced the % + quote() formatting with simple string concatenation, dropping the quote dependency entirely. Smoke verified on entech: MO + WO stickers render cleanly at 27KB each (with QR image included). fusion_plating_reports → 19.0.7.2.0 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Description
Odoo 19 custom modules
Languages
Python
55.9%
HTML
26.1%
JavaScript
14.9%
SCSS
1.8%
CSS
0.8%
Other
0.4%