Skip to content

Commit 901c05f

Browse files
committed
[FIX] account_reconcile_oca: Fix currency and amount when using reconciliation models
1 parent 836417b commit 901c05f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

account_reconcile_oca/models/account_bank_statement_line.py

+7
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,13 @@ def _reconcile_data_by_model(self, data, reconcile_model, reconcile_auxiliary_id
585585
self.company_id,
586586
self.date,
587587
)
588+
if currency != self.company_id.currency_id:
589+
currency_amount = self.company_id.currency_id._convert(
590+
amount,
591+
currency,
592+
self.company_id,
593+
self.date,
594+
)
588595
new_line.update(
589596
{
590597
"reference": "reconcile_auxiliary;%s" % reconcile_auxiliary_id,

0 commit comments

Comments
 (0)