[FIX] base,l10n_ch: Display all QR codes in QR bill
Issue: When trying to print a Suisse QR bill, if multiple images are presents in document and they have a url as src, some pictures will not be displayed. (Same issue may occur with simple QR code) Cause: It's a known issue with wkhtmltopdf: https://github.com/odoo/odoo/commit/2949138a7d84cd6c925ea1745d62f25ef077bb8b Also, adding css class to body by js break wkhtmltopdf. Solution: Replace link by base64 image value (use a function to retrieve base64 image instead of image_url). Remove class 'l10n_ch_qr' added by js (no need since CSS file didacted to this report). extra: Alter some css for better rendering. opw-2620082 closes odoo/odoo#75408 Signed-off-by:oco-odoo <oco-odoo@users.noreply.github.com>
Showing
- addons/account/views/report_invoice.xml 1 addition, 1 deletionaddons/account/views/report_invoice.xml
- addons/l10n_ch/models/res_bank.py 17 additions, 2 deletionsaddons/l10n_ch/models/res_bank.py
- addons/l10n_ch/report/swissqr_report.xml 1 addition, 3 deletionsaddons/l10n_ch/report/swissqr_report.xml
- addons/l10n_ch/static/src/scss/report_swissqr.scss 4 additions, 4 deletionsaddons/l10n_ch/static/src/scss/report_swissqr.scss
- addons/payment/views/payment_portal_templates.xml 2 additions, 2 deletionsaddons/payment/views/payment_portal_templates.xml
- addons/website_sale/views/templates.xml 1 addition, 1 deletionaddons/website_sale/views/templates.xml
- odoo/addons/base/models/res_bank.py 20 additions, 4 deletionsodoo/addons/base/models/res_bank.py
Loading
Please register or sign in to comment