[FIX] account: move date on reversed exchange move
Before this commit, the reversal of a passed exchange move was not created on the correct date: - If sequence is reset by month, the reversal should be created at the end of the month of the exchange move, and if sequence is reset by year, at the end of the year. Steps: - With a foreign currency X activated and two different rates few months in the past. - Create and confirm an invoice with currency X at the date of the first rate. - Register a payment at the date of the second rate (an exchange move is created). - Unreconcile the payment from the invoice. -> A reversal of the exchange move is created, but the date is wrong (set to today's date). opw-2856385 closes odoo/odoo#122081 X-original-commit: 56a1759e Signed-off-by:Brice Bartoletti (bib) <bib@odoo.com> Signed-off-by:
Guillaume Vanleynseele (guva) <guva@odoo.com>
Loading