[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 <jco@odoo.com>
This commit is contained in:
Katherine Zaoral
2024-01-26 21:07:54 +00:00
parent bf65cb53d0
commit 47387b9d02
+6 -1
View File
@@ -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'