Skip to content

Commit

Permalink
[FIX] account_reconcile_oca : exchange rate gain/loss currency and am…
Browse files Browse the repository at this point in the history
…ount

If currency amount is not 0, the suspense line will have wrong amount
  • Loading branch information
florian-dacosta authored and etobella committed Nov 16, 2024
1 parent 95645d2 commit 32421da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions account_reconcile_oca/models/account_bank_statement_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,8 +1106,8 @@ def _compute_exchange_rate(
"debit": amount if amount > 0 else 0.0,
"kind": "other",
"currency_id": self.company_id.currency_id.id,
"line_currency_id": self.company_id.currency_id.id,
"currency_amount": amount,
"line_currency_id": currency.id,
"currency_amount": 0,
}
reconcile_auxiliary_id += 1
return reconcile_auxiliary_id, data
Expand Down

0 comments on commit 32421da

Please sign in to comment.