odoo/odoo#258648

Created by fw-bot
Merged at 94b96a70103e4859a0f049042ba8292ca068bef7

Statuses:

label
odoo-dev:19.0-16.0-l10n_ch-invalid_qrcode-516245-fw
head
568e6beff591a6788eb95325ef6e53a70c45a2e9
merged
1 day ago by Accounting, Josse Colpaert (jco)
odoo/odoo
16.0 #254980
17.0 #256335
18.0 #256707
saas-18.2 #257961
saas-18.3 #258571
saas-18.4 #258618
19.0 #258648
saas-19.1 #258680 missing statuses missing r+
saas-19.2
master

[16.0][FIX] l10n_ch: filter characters for QR codes

Description of the issue/feature this PR addresses:

QR code is rejected by the bank, when it contains an invalid character U+202F.

Current behavior before PR:

Unauthorized Unicode characters are encoded in the QR-Bill, and it is rejected on the receiving part.

Desired behavior after PR is merged:

Any Unicode codepoint which is not in the subset of 324 allowed codepoints has to be filtered out.

> spec of QR-bill allows only a subset of characters, a precise list of 324 Unicode codepoints (section 4.1.1, page 30 of the Swiss Implementation Guidelines for the QR-bill)


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #257961
Forward-Port-Of: #254980