-
- Downloads
[FIX] l10n_ch - Swiss QR layout cleaning
This intend to enforce specifications and improve readability
Layout changes:
* [FIX] Amount section must be placed under the QR code
* [FIX] Don't display empty additional information
* [FIX] Rename slip sections and labels
* [IMP] Rework of the layout
Group content like adresse by removing line spacing
Reduce character size to follow Swiss Implementation Guidelines QR-bill v2.1
Reduce left margin to avoid overlap of spaced ISR reference on the Receipt
* [FIX] Missing street on Receipt
* [FIX] Add thousand separators
Official specs asks for:
- thousand separators as blank. (using a non breaking to avoid spliting the amount)
- decimal separators as a full stop
> If the amount isincluded in the Swiss QR Code, then it must be printed after the currency code. A blank (space) should be used as the thousands separator and a full stop «.»as the decimal separator. The amount must always include two decimal places (e.g. CHF 1 590.00).
QR-Code:
* [IMP] Align QR code upper and improve accuracy of size
Add an option on reportlab to print QR Code without surounding blank space
this is required to compute with accuracy the width of 46mm x 46mm defined
in the specs.
* [FIX] Street and street2 issues
Removes an extra space between street values when only one is given.
Test the right partner street, only the company street was checked.
QRR generation
* [FIX] make it possible to generate QRR
It must be possible to generate QRR without ISR subscription number.
Content removed as not present in the specs version 2.1:
* [RM] procedure section
* [RM] due date
Translations:
* [IMP] Add translations of the QR-bill in DE, FR and IT
* [FIX] QR-bill lang is now based on customer lang
Tests:
* [IMP] Add unit tests for Swiss reality check for the QR-bill
closes odoo/odoo#53084
Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
Showing
- addons/l10n_ch/i18n/l10n_ch.pot 12 additions, 83 deletionsaddons/l10n_ch/i18n/l10n_ch.pot
- addons/l10n_ch/i18n_extra/de.po 21 additions, 63 deletionsaddons/l10n_ch/i18n_extra/de.po
- addons/l10n_ch/i18n_extra/fr.po 78 additions, 0 deletionsaddons/l10n_ch/i18n_extra/fr.po
- addons/l10n_ch/i18n_extra/it.po 24 additions, 84 deletionsaddons/l10n_ch/i18n_extra/it.po
- addons/l10n_ch/i18n_extra/l10n_ch.pot 13 additions, 39 deletionsaddons/l10n_ch/i18n_extra/l10n_ch.pot
- addons/l10n_ch/models/account_invoice.py 6 additions, 4 deletionsaddons/l10n_ch/models/account_invoice.py
- addons/l10n_ch/models/res_bank.py 10 additions, 3 deletionsaddons/l10n_ch/models/res_bank.py
- addons/l10n_ch/report/swissqr_report.xml 90 additions, 63 deletionsaddons/l10n_ch/report/swissqr_report.xml
- addons/l10n_ch/static/src/scss/report_swissqr.scss 61 additions, 32 deletionsaddons/l10n_ch/static/src/scss/report_swissqr.scss
- addons/l10n_ch/tests/__init__.py 1 addition, 0 deletionsaddons/l10n_ch/tests/__init__.py
- addons/l10n_ch/tests/test_swissqr.py 177 additions, 0 deletionsaddons/l10n_ch/tests/test_swissqr.py
- odoo/addons/base/models/ir_actions_report.py 7 additions, 1 deletionodoo/addons/base/models/ir_actions_report.py
Loading
Please register or sign in to comment