[FIX] account_reconcile_oca : exchange rate gain/loss currency and amount
If currency amount is not 0, the suspense line will have wrong amountpull/808/head
parent
829299dffe
commit
4fe0125cc9
|
@ -1113,8 +1113,8 @@ class AccountBankStatementLine(models.Model):
|
|||
"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
|
||||
|
|
Loading…
Reference in New Issue