Daily updates from Odoo
Saturday, August 2, 2025
1 change · 18.0
Resolved issues and error corrections
This fix prevents an error when registering payments for Vietnamese vendors with specific bank account settings. Users can now create those vendor payments normally, improving reliability for Vietnam accounting workflows.
Original PR description
### Issue: When creating a vendor with a bank account and certain fields configured, trying to register a payment could raise a KeyError: 'none'. This was due to the incorrect order of validations in…
### Issue: When creating a vendor with a bank account and certain fields configured, trying to register a payment could raise a KeyError: 'none'. This was due to the incorrect order of validations in _check_for_qr_code_errors, introduced in PR #219566. This commit reorders the checks to ensure proxy_type is validated before being used. ### Affected Versions: 17.0 and later ### To reproduce: 1. Install account_accountant, l10n_vn 2. Select VN Company 3. Go to Accounting > Vendors > Vendors 4. Create a partner with country set to Vietnam 5. In Accounting tab, add a bank account with: - Account Name - Bank - Currency - "Send money" set to True 6. Go to Accounting > Vendors > Payments 7. Try to create a payment for that partner ##### Expected: Payment is created successfully ##### Current: KeyError: 'none' is raised OPW-4976541 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#221522