From 54f5c1499488b144c2cd8ef4026f5191d72736c6 Mon Sep 17 00:00:00 2001 From: qdp-odoo <qdp@odoo.com> Date: Thu, 12 May 2016 10:35:36 +0200 Subject: [PATCH] [FIX] account: multi-currency reconciliation use case as defined in opw 640248. Since the reconciliation changed, the bugfix made for saas-6 isn't valid anymore and was actually, the root cause of the same bug appearing in v9. --- addons/account/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index ac2c3a19015f..95f58fe972cd 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -672,7 +672,7 @@ class AccountMoveLine(models.Model): amount_currency_str = formatLang(self.env, abs(actual_debit or actual_credit), currency_obj=line_currency) total_amount_currency_str = formatLang(self.env, total_amount, currency_obj=line_currency) ctx = context.copy() - ctx.update({'date': line.date}) + ctx.update({'date': target_date or line.date}) total_amount = line_currency.with_context(ctx).compute(total_amount, target_currency) actual_debit = line_currency.with_context(ctx).compute(actual_debit, target_currency) actual_credit = line_currency.with_context(ctx).compute(actual_credit, target_currency) -- GitLab