diff --git a/intrastat_product/models/intrastat_product_declaration.py b/intrastat_product/models/intrastat_product_declaration.py index 8e80a3d..3fef185 100644 --- a/intrastat_product/models/intrastat_product_declaration.py +++ b/intrastat_product/models/intrastat_product_declaration.py @@ -691,6 +691,9 @@ class IntrastatProductDeclaration(models.Model): partner_country = self._get_partner_country( inv_line, notedict, eu_countries ) + # When the country is the same as the company's country must be skipped. + if partner_country == self.company_id.country_id: + continue partner_country_code = ( invoice.commercial_partner_id._get_intrastat_country_code() )