Commit Graph
6 Commits
Author SHA1 Message Date
tong-odoo 910756df63 [FIX] account_qr_code_emv, l10n_*: fix emv_qr_vals format
Steps to reproduce:

- Create any emv_qr_code. Set merchant name with a Vietname accent
- Set amount to a integer number

Current behaviour:

- An EMV QR Code will be generated with accent merchant name, and the amount
include .0 value

Expected behaviour:

- The EMV QR Code change change the accent value to alphabet. And the amount should
not contain .0 if the amount is an integer

closes odoo/odoo#131852

X-original-commit: 158f8090ef30065b97ebe8b15b0bf73fff6a9ac4
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
Signed-off-by: Tommy Ng (tong) <tong@odoo.com>
2023-08-14 06:17:00 +02:00
tong-odoo 14221a596b [IMP] l10n_vn: add Vietnam Bank QR code payment for invoice
Impacted Version:

- saas-16.4 and above

This commit improve below features:

- Add Vietnam Bank QR code payment for invoice based on below github repository
https://github.com/anhjean/vietqr

task-3344654

closes odoo/odoo#127689

Related: odoo/documentation#5043
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
2023-07-20 06:40:43 +02:00
Tommy (tong) 799e0ff84c [IMP] account_qr_code_emv,l10n_hk: code refractoring for reusing
Impacted versions:

- saas-16.4 or above

This commit improve below features:

- Move country_code to account_qr_code_emv
- Add _serialize method to compute the qr_code_vals
- Fix additional data field should return if country_code mismatched
- Merge fields l10n_hk_fps_type to proxy_type
- Merge fields l10n_hk_fps_identifier to proxy_value
- Add include_reference boolean to res.partner.bank

Part-of: odoo/odoo#122802
2023-06-15 17:36:14 +02:00
Tommy (tong) 17ff8fa45c [IMP] account_qr_code_emv,l10n_hk: add reference to emv qr code
Impacted versions:

- saas-16.3

Changes:

This commit improve below features:

- Add additional data field into qr code vals
- Override the additional data field in l10n_hk to support the new field
- Update l10n_hk unit tests
- Change FPS Identifier label

closes odoo/odoo#122224

X-original-commit: 27b729709e78855721111f6f8b34cd0532147ec8
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
Signed-off-by: Tommy Ng (tong) <tong@odoo.com>
2023-05-24 09:49:19 +02:00
Tommy (tong) cd53618d5a [FIX] l10n_hk: Fix unit test for FPS QR code
Current behaviour:
The unit test doesn't run.

Expected behaviour:
The unit test should run.

Explanation:
File name is not prefix with test so the file doesn't run.

X-original-commit: daaec6d52a58994ada7eb11faab903cd447ef9bd
Part-of: odoo/odoo#122224
2023-05-24 09:49:19 +02:00
Tommy (tong) 9113a17a8b [IMP] l10n_hk: added FPS QR code payment for invoice
- Add FPS QR code payment by following the government document of FPS QR
Code Standard
- https://www.hkma.gov.hk/media/eng/doc/key-functions/financial-infrastructure/infrastructure/retail-payment-initiatives/Common_QR_Code_Specification.pdf

task-3042940

closes odoo/odoo#120050

Related: odoo/documentation#4309
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-05-15 11:41:26 +02:00