v 11.0 v 12.0 Third Party 64
Download for v 11.0 Deploy on Odoo.sh
Required Apps Invoicing Management (account_invoicing)
Purchase Management (purchase)
Inventory Management (stock)
Sales Management (sale_management)
Included Dependencies
Lines of code 6816
Technical Name l10n_es_intrastat_report
Also available in version v 13.0 v 12.0 v 14.0
You bought this module and need support? Click here!

Intrastat Product Declaration for Spain

Beta License: AGPL-3 OCA/l10n-spain Translate me on Weblate Try me on Runbot

This module implements the Spanish Intrastat reporting.

The report can be reviewed and corrected where needed before the creation of the csv file for the declaration.

Table of contents


WARNING: This module conflicts with the Intrastat modules from the official enterprise addons. If you have already installed these modules, you should uninstall them before installing this module.

You need to add HS product codes for your company through the installation wizard. It’s automatically launched if installing the module from the UI.

If any other installation method is used, you can go to Settings > Technical > Actions > Configuration Wizards on developer mode, and launch there the wizard called “Import Spanish Product HS Codes”

The included codes are for 2020. Please check possible updates for this codes in:


This wizard also sets a sane default Intrastat transaction type for each kind of invoice at company level, but it can be changed later.


This module adds the following configuration parameters:

  • Company

    • Arrivals : Exempt, Standard or Extended
    • Dispatches : Exempt, Standard or Extended
    • Default Intrastat Transaction
    • Default Intrastat Transport Mode (Extended Declaration)
    • Default Intrastat Incoterm (Extended Declaration)
  • Warehouse

    • Intrastat State to cope with warehouses in different states

      The configuration of the Intrastat State on a Warehouse, requires a login belonging to the “Spanish Intrastat Product Declaration” security group.

  • Intrastat Codes, Supplementary Units, Transaction Types, Transport Modes, States

    Cf. menu Invoicing / Configuration / Miscellaneous / Intrastat Configuration

  • Product

    You can define a default Intrastat Code on the Product or the Product Category.


  1. Go to Invocing > Reporting > Intrastat > Spanish Intrastat Product Declaration.

  2. Create a new record.

  3. Select or input following data:

    • Year
    • Month
    • Type: for selecting if arrivals or dispatches.
    • Reporting level: standard or extended.
    • Action:
      • if “Nihil”, no recomputation is possible and the report is considered empty.
      • if “Replace”, everything is recomputed.
      • if “Append”, only new lines are added.
  4. Click on “Generate Lines from invoices” for populating transaction lines.

    You can review them on “Transactions” page of the report.

  5. Click on “Generate Declaration Lines” for populating the lines that summarize transactions and will be the source for the exports.

    You can review them on “Declaration Lines” page.

  6. Click on “Generate CSV Declaration Line” for getting the CSV for declaring the report in AEAT.

  7. Click on “Excel Export” for having the information in a spreadsheet.

Known issues / Roadmap

  • The current version of the Intrastat reporting module is only based on invoices. Since associated stock moves are not taken into consideration, it is possible that manual corrections are required, e.g.
    • Product movements without invoices are not included in the current version of this module and must be added manually to the report lines before generating the declaration.
  • The current version of the Intrastat reporting module does not perform a cross-check with the VAT declaration.
  • Add tests.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.



  • FactorLibre
  • Noviat
  • Tecnativa



This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/l10n-spain project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.