summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosse Colpaert <jco@odoo.com>2021-03-21 08:42:13 +0000
committerJosse Colpaert <jco@odoo.com>2021-03-21 08:42:13 +0000
commit82788f6b6a2501412b2deff8da70867b67db4d6f (patch)
tree4b20a278f7c5245dd83980456286a666917c4676
parentd7d11b993db5b17c421302829f0bd5a76c229e7c (diff)
[FIX] l10n_ar: wrong fw-port as l10n_latam_country_code does not exist anymore
closes odoo/odoo#68179 Signed-off-by: William André (wan) <wan@odoo.com>
-rw-r--r--addons/l10n_ar/models/account_move.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/l10n_ar/models/account_move.py b/addons/l10n_ar/models/account_move.py
index 74b72d5136f..9d1854240be 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'])