Saturday, December 13, 2025
2 changes · saas-18.3
Resolved issues and error corrections
This update optimizes how the loyalty program calculates potential free products. Previously, the system unnecessarily checked all reward products, even after a valid one was found, leading to slower performance. This change improves the speed and efficiency of the loyalty program, particularly when multiple rewards are involved.
Original PR description
Before this commit, the computation of potential free product quantities looped through all reward products even after finding a valid one. This led to unnecessary calculations and performance degradation, especially when multiple reward products were involved. opw-5268991 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#239442
This update resolves an issue where exporting batch payments with mixed IBAN and Swedish payment methods (Bankgiro, Plusgiro, BBAN) was generating incorrect XML files. The team reverted a faulty fix and is now focusing solely on generating the necessary zip file, utilizing the correct payment type context.
Original PR description
Here https://github.com/odoo/enterprise/pull/95463, we add the possibility to export
batch payments with mixed IBAN and Bankgiro/Plusgiro/BBAN payments, but this introduced
few bug in the xml format.
The reason is, we were using new custom logics and not the main one. The problem is
the custom logics is wrong, not the main one.
This commit remove most of the custom logics we added and use all the main one.
This has been done by:
1 - Reverting the original commit
2 - Adding only the zip file generation, passing a context key to know if we are
with bban or iban payments.
opw-5181340
Forward-Port-Of: odoo/enterprise#101917
Forward-Port-Of: odoo/enterprise#100014