From 7d7bc23a16b386c3eecd103622e4d2ce6c21a0c7 Mon Sep 17 00:00:00 2001 From: Julien Van Roy Date: Wed, 29 Nov 2023 14:59:26 +0100 Subject: [PATCH] [FIX] account_edi_ubl_cii: no tax exemption reason for NO customers Prevent error: "[BR-S-10]-A VAT breakdown (BG-23) with VAT Category code (BT-118) "Standard rate" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120)." We should not provide a tax exemption reason for standard rates when the customer is Norvegian. It is not allowed in UBL Peppol Bis 3. no task/no ticket (noticed the error in the IAP logs). closes odoo/odoo#144287 X-original-commit: 5b62e301b91a3f39857c2c7f18729e10796ef194 Signed-off-by: Laurent Smet (las) Signed-off-by: Julien Van Roy (juvr) --- .../account_edi_ubl_cii/models/account_edi_common.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/addons/account_edi_ubl_cii/models/account_edi_common.py b/addons/account_edi_ubl_cii/models/account_edi_common.py index 16e89adc75e..6443ad8a3bf 100644 --- a/addons/account_edi_ubl_cii/models/account_edi_common.py +++ b/addons/account_edi_ubl_cii/models/account_edi_common.py @@ -169,17 +169,6 @@ class AccountEdiCommon(models.AbstractModel): if customer.zip[:2] in ('51', '52'): return create_dict(tax_category_code='M') # Ceuta & Mellila - # see: https://anskaffelser.dev/postaward/g3/spec/current/billing-3.0/norway/#_value_added_tax_norwegian_mva - if customer.country_id.code == 'NO': - if tax.amount == 25: - return create_dict(tax_category_code='S', tax_exemption_reason=_('Output VAT, regular rate')) - if tax.amount == 15: - return create_dict(tax_category_code='S', tax_exemption_reason=_('Output VAT, reduced rate, middle')) - if tax.amount == 11.11: - return create_dict(tax_category_code='S', tax_exemption_reason=_('Output VAT, reduced rate, raw fish')) - if tax.amount == 12: - return create_dict(tax_category_code='S', tax_exemption_reason=_('Output VAT, reduced rate, low')) - if supplier.country_id == customer.country_id: if not tax or tax.amount == 0: # in theory, you should indicate the precise law article