OCA / account-reconcile

Odoo account reconciliation modules (statements, data completion...)
https://odoo-community.org/psc-teams/banking-10
GNU Affero General Public License v3.0
127 stars 369 forks source link

[13.0][FIX] account_mass_reconcile: reconciles not being sorted #648

Open iTecan opened 2 months ago

iTecan commented 2 months ago

Original Code: reconciles.sorted(key=_get_date) # WRONG

New code: reconciles = reconciles.sorted(key=_get_date) # OK

In the original code the reconciles aren't sorted as the variable is not being updated, this causes to getting the same values and wrong order. This also happens in 14.0 and 15.0