[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) <las@odoo.com> Signed-off-by: Julien Van Roy (juvr) <juvr@odoo.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user