Skip to content

Commit

Permalink
[FIX] account_fiscal_year_closing: move line created with correct cur…
Browse files Browse the repository at this point in the history
…rency
  • Loading branch information
Borruso committed Aug 1, 2024
1 parent 0b50922 commit ec095fa
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,15 @@ def move_line_prepare(self, account, account_lines, partner_id=False):
"date": date,
"partner_id": partner_id,
}
if (
account.currency_id
and account.currency_id != account.company_currency_id
):
amount_currency = sum(account_lines.mapped("amount_currency")) * -1
move_line.update(
currency_id=account.currency_id.id,
amount_currency=amount_currency,
)
else:
balance = 0
return balance, move_line
Expand Down

0 comments on commit ec095fa

Please sign in to comment.