Skip to content
Snippets Groups Projects
Commit 54f5c149 authored by Quentin De Paoli's avatar Quentin De Paoli
Browse files

[FIX] account: multi-currency reconciliation use case as defined in opw...

[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.
parent 49ea7597
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment