Files
odoo_source/addons/l10n_hk
Nicolas Viseur (vin) b104a50d6d [FIX] account_qr_code_emv: fallback error
The account_qr_code_emv module has an issue at the
moment where it will only return errors in
_get_error_messages_for_qr for the country the qr
code is intended for.

This makes sense since you want to check all countries
in later versions where we have multiple of them.

But it causes an issue with the standard implementation
where if you are using a country that is not supported
by an EMV QR, _get_error_messages_for_qr will just
return None.

This means that:
    - The default QR CODE selection on the invoice that
    depends on that may select EMV QR for unrelated
    countries.
    - If it gets selected, this method will not check
    that the currency is correct for said countries.

To fix this issue, we will simply return an error
message in the common module, which will serve as a
fallback once all the EMV QR methods have been checked.

Task id # 3758668

closes odoo/odoo#156847

X-original-commit: 5290fb7a2d400ce1c9732e8d835f6b7990c0d145
Signed-off-by: de Wouters de Bouchout Jean-Benoît (jbw) <jbw@odoo.com>
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
2024-03-07 05:07:08 +00:00
..
…
…
…