Saturday, November 22, 2025
1 change · saas-18.3
Enhancements to existing features
The system now checks whether a B2B buyer already exists in ECPay before sending the invoice, and creates the buyer automatically when needed. This helps avoid invoice submission failures in cases where the customer has not yet been registered on ECPay. The update also adds VAT validation support earlier in the process to catch incorrect VAT data before sending.
Original PR description
This commit aims to address an edge case where the buyer identifier might not exist on ECPay before issuing a B2B invoice. A call to "Add" a customer is made. RtnCode 1 indicates successful creation, 6160052 - indicates buyer already exists, others are failure. Additionally, add "base_vat" as dependency to enable client-sided validation for VAT before sending to ECPay. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#236826