diff --git a/addons/l10n_ar/models/account_move.py b/addons/l10n_ar/models/account_move.py index e17a65a19db..88d2dafeebf 100644 --- a/addons/l10n_ar/models/account_move.py +++ b/addons/l10n_ar/models/account_move.py @@ -49,7 +49,7 @@ class AccountMove(models.Model): In this method we exclude the argentinian document type 99 from the generic constraint """ ar_doctype_99 = self.filtered( - lambda x: x.l10n_latam_country_code == 'AR' and + lambda x: x.country_code == 'AR' and x.l10n_latam_document_type_id.code == '99' and x.move_type in ['out_refund', 'in_refund'])