Skip to content

Commit

Permalink
Merge PR #1837 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 8, 2024
2 parents 9d1a41c + 7a940d9 commit 717ed0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_invoice_show_currency_rate/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _compute_currency_rate_amount(self):
lines = item.line_ids.filtered(lambda x: x.amount_currency > 0)
if item.state == "posted" and lines:
amount_currency_positive = sum(lines.mapped("amount_currency"))
total_debit = sum(item.line_ids.mapped("debit"))
total_debit = sum(lines.mapped("debit"))
item.currency_rate_amount = item.currency_id.round(
amount_currency_positive / total_debit
)
Expand Down

0 comments on commit 717ed0a

Please sign in to comment.