From 47387b9d02a0fd0365326fbb8bf94154a5f82bad Mon Sep 17 00:00:00 2001 From: Katherine Zaoral Date: Fri, 6 Jan 2023 10:03:48 -0300 Subject: [PATCH] [ADD] l10n_ar: AFIP Concept Otros option If partner to invoice is from "Zona Franca - IVA Liberado" then the exportation invoice then the AFIP concept to use should be code 4. "Others" closes odoo/odoo#150051 X-original-commit: 8ef4b332d46d78daa5c8c91d8b1110468316d583 Signed-off-by: Josse Colpaert --- addons/l10n_ar/models/account_move.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/l10n_ar/models/account_move.py b/addons/l10n_ar/models/account_move.py index 0254ff72032..55a085491a0 100644 --- a/addons/l10n_ar/models/account_move.py +++ b/addons/l10n_ar/models/account_move.py @@ -96,9 +96,14 @@ class AccountMove(models.Model): # on expo invoice you can mix services and products expo_invoice = self.l10n_latam_document_type_id.code in ['19', '20', '21'] + # WSFEX 1668 - If Expo invoice and we have a "IVA Liberado – Ley Nº 19.640" (Zona Franca) partner + # then AFIP concept to use should be type "Others (4)" + is_zona_franca = self.partner_id.l10n_ar_afip_responsibility_type_id == self.env.ref("l10n_ar.res_IVA_LIB") # Default value "product" afip_concept = '1' - if product_types == service: + if expo_invoice and is_zona_franca: + afip_concept = '4' + elif product_types == service: afip_concept = '2' elif product_types - consumable and product_types - service and not expo_invoice: afip_concept = '3'