From cbae410ee57836b28844836e6d2b7c8f14a5acae Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Sun, 21 Mar 2021 08:42:13 +0000 Subject: [PATCH] [FIX] l10n_ar: wrong fw-port as l10n_latam_country_code does not exist anymore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes odoo/odoo#68181 X-original-commit: 82788f6b6a2501412b2deff8da70867b67db4d6f Signed-off-by: William André (wan) --- addons/l10n_ar/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])