If your Odoo database was created before **January 13, 2022**, first :ref:`upgrade
<general/upgrade>` the `account_intrastat` module to add the new transaction codes and
:ref:`install <general/install>` the `account_intrastat_expiry` module to archive the old codes.
.._intrastat/default-transaction-codes:
Default transaction codes: invoice and refund
---------------------------------------------
You can set a default :ref:`transaction code <intrastat/transaction-code>` for all newly created
invoice and refund transactions. Under :menuselection:`Accounting --> Configuration --> Settings`,
select a :guilabel:`Default invoice transaction code` and/or a :guilabel:`Default refund transaction
code` and then :guilabel:`Save`. The code will be set automatically on all respective invoice lines.
.._intrastat/default-incoterm:
Default Incoterm rule
---------------------
You can set a default :ref:`Incoterm rule <intrastat/incoterm>` to automatically populate the
Incoterm field on all newly created invoices and bills. Under :menuselection:`Accounting -->
Configuration --> Settings`, select the company's :guilabel:`Default Incoterm` and then
:guilabel:`Save`.
.._intrastat/region-code:
Region code
-----------
The region code is **only used by Belgian companies**. Under :menuselection:`Accounting -->
Configuration --> Settings`, select the :guilabel:`Company Intrastat Region` where the company is
located and then :guilabel:`Save`.
..tip::
If your warehouses are located in more than one region, you can define the region code at the
level of each warehouse instead. To do so, go to :menuselection:`Inventory --> Configuration -->
Warehouses`, select a warehouse, set its :guilabel:`Intrastat region`, and then :guilabel:`Save`.
..image:: intrastat/warehouse-region.png
:align:center
:alt:Adding the Intrastat region to a warehouse
.._intrastat/product-configuration:
Product configuration
=====================
All products must be properly configured to be included in the Intrastat report.
.._intrastat/commodity-code:
Commodity code
--------------
Commodity codes are internationally recognized reference numbers used to classify goods depending on
their **nature**. Intrastat uses the `Combined Nomenclature <https://taxation-customs.ec.europa.eu/customs-4/calculation-customs-duties/customs-tariff/combined-nomenclature_en>`_.
To add a commodity code, go to :menuselection:`Accounting --> Customers --> Products` and select a
product. Under the :guilabel:`Accounting` tab, set the product's :guilabel:`Commodity Code`.
..seealso::
`National Bank of Belgium - Intrastat commodity codes