Skip to content

Commit

Permalink
[13.0] [FIX] l10n_ar_ux: use rec instead self into the loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomacr committed Aug 25, 2020
1 parent 95874ee commit 9a3ba36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_ar_ux/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def _compute_currency_rate(self):
for rec in self:
if rec.currency_id and rec.company_id and (rec.currency_id != rec.company_id.currency_id):
rec.computed_currency_rate = rec.currency_id._convert(
1.0, self.company_id.currency_id, self.company_id,
1.0, rec.company_id.currency_id, rec.company_id,
date=rec.invoice_date or fields.Date.context_today(rec),
round=False)
else:
Expand Down

0 comments on commit 9a3ba36

Please sign in to comment.