diff --git a/addons/l10n_ar/models/account_move.py b/addons/l10n_ar/models/account_move.py index ad0c70e8c4a..1f1eca4b49b 100644 --- a/addons/l10n_ar/models/account_move.py +++ b/addons/l10n_ar/models/account_move.py @@ -163,8 +163,12 @@ class AccountMove(models.Model): if rec.company_id.currency_id == rec.currency_id: rec.l10n_ar_currency_rate = 1.0 elif not rec.l10n_ar_currency_rate: - rec.l10n_ar_currency_rate = rec.currency_id._convert( - 1.0, rec.company_id.currency_id, rec.company_id, rec.date, round=False) + rec.l10n_ar_currency_rate = self.env['res.currency']._get_conversion_rate( + from_currency=rec.currency_id, + to_currency=rec.company_id.currency_id, + company=rec.company_id, + date=rec.invoice_date, + ) @api.onchange('partner_id') def _onchange_afip_responsibility(self):