diff --git a/l10n_es_intrastat_report/README.rst b/l10n_es_intrastat_report/README.rst index c888b67eb05..68015331c86 100644 --- a/l10n_es_intrastat_report/README.rst +++ b/l10n_es_intrastat_report/README.rst @@ -17,21 +17,21 @@ Intrastat Product Declaration for Spain :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--spain-lightgray.png?logo=github - :target: https://github.com/OCA/l10n-spain/tree/16.0/l10n_es_intrastat_report + :target: https://github.com/OCA/l10n-spain/tree/17.0/l10n_es_intrastat_report :alt: OCA/l10n-spain .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/l10n-spain-16-0/l10n-spain-16-0-l10n_es_intrastat_report + :target: https://translation.odoo-community.org/projects/l10n-spain-17-0/l10n-spain-17-0-l10n_es_intrastat_report :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-spain&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-spain&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| 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. +The report can be reviewed and corrected where needed before the +creation of the csv file for the declaration. **Table of contents** @@ -41,93 +41,109 @@ the creation of the csv file for the declaration. Installation ============ -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. +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. +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" +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 2023. Please check possible updates for this codes in: +The included codes are for 2023. Please check possible updates for this +codes in: https://sede.agenciatributaria.gob.es/Sede/estadisticas/estadisticas-comercio-exterior/nomenclatura-combinada-ano.html -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 wizard also sets a sane default Intrastat transaction type for each +kind of invoice at company level, but it can be changed later. Configuration ============= This module adds the following configuration parameters: -* Company +- 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) + - 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 +- Warehouse - - Intrastat State to cope with warehouses in different states + - 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. + 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 +- Intrastat Codes, Supplementary Units, Transaction Types, Transport + Modes, States - Cf. menu *Invoicing / Configuration / Miscellaneous / Intrastat Configuration* + Cf. menu *Invoicing / Configuration / Miscellaneous / Intrastat + Configuration* -* Product +- Product - You can define a default Intrastat Code on the Product or the Product Category. + You can define a default Intrastat Code on the Product or the Product + Category. Usage ===== -#. Go to *Invocing > Reporting > Intrastat > Spanish Intrastat Product Declaration*. -#. Create a new record. -#. Select or input following data: +1. Go to *Invocing > Reporting > Intrastat > Spanish Intrastat Product + Declaration*. - * Year - * Month - * Type: for selecting if arrivals or dispatches. - * Reporting level: standard or extended. - * Action: +2. Create a new record. - * if "Nihil", no recomputation is possible and the report is considered empty. - * if "Replace", everything is recomputed. - * if "Append", only new lines are added. -#. Click on "Generate Lines from invoices" for populating transaction lines. +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. -#. Click on "Generate Declaration Lines" for populating the lines that summarize - transactions and will be the source for the exports. + +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. -#. Click on "Generate CSV Declaration Line" for getting the CSV for declaring - the report in AEAT. -#. Click on "Excel Export" for having the information in a spreadsheet. + +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. +- 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. + - 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. +- The current version of the Intrastat reporting module does not + perform a cross-check with the VAT declaration. +- Add tests. Bug Tracker =========== @@ -135,7 +151,7 @@ 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 to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -143,36 +159,36 @@ Credits ======= Authors -~~~~~~~ +------- * FactorLibre * Noviat * Tecnativa Contributors -~~~~~~~~~~~~ +------------ -* Ismael Calvo, FactorLibre -* Luc De Meyer, Noviat -* Daniel Duque -* `Tecnativa `__: +- Ismael Calvo, FactorLibre +- Luc De Meyer, Noviat +- Daniel Duque +- `Tecnativa `__: - * Manuel Calero - * Pedro M. Baeza - * João Marques - * Víctor Martínez + - Manuel Calero + - Pedro M. Baeza + - João Marques + - Víctor Martínez -* `Sygel `__: +- `Sygel `__: - * Harald Panten - * Valentin Vinagre + - Harald Panten + - Valentin Vinagre -* `GreenIce `__: +- `GreenIce `__: - * Fernando La Chica + - Fernando La Chica Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -184,6 +200,6 @@ 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. +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. diff --git a/l10n_es_intrastat_report/__manifest__.py b/l10n_es_intrastat_report/__manifest__.py index e059124d6bb..ed555a32352 100644 --- a/l10n_es_intrastat_report/__manifest__.py +++ b/l10n_es_intrastat_report/__manifest__.py @@ -8,7 +8,7 @@ { "name": "Intrastat Product Declaration for Spain", - "version": "16.0.1.3.2", + "version": "17.0.1.0.0", "category": "Intrastat", "license": "AGPL-3", "summary": "Spanish Intrastat Product Declaration", diff --git a/l10n_es_intrastat_report/migrations/16.0.1.0.0/post-migration.py b/l10n_es_intrastat_report/migrations/16.0.1.0.0/post-migration.py index 1510027f2f6..f67a349285f 100644 --- a/l10n_es_intrastat_report/migrations/16.0.1.0.0/post-migration.py +++ b/l10n_es_intrastat_report/migrations/16.0.1.0.0/post-migration.py @@ -80,32 +80,28 @@ def migrate(env, version): ) new_fields = ", ".join(f'"{f}"' for f in ["old_l10n_es_id"] + intr_prod_dec_fields) old_fields = ", ".join(f'"{f}"' for f in ["id"] + intr_prod_dec_fields) - query = """INSERT INTO intrastat_product_declaration ({new_fields}) + query = f"""INSERT INTO intrastat_product_declaration ({new_fields}) SELECT {old_fields} FROM l10n_es_intrastat_product_declaration - """.format( - new_fields=new_fields, old_fields=old_fields - ) + """ openupgrade.logged_query(env.cr, query) new_fields = ", ".join( f"{f}" for f in ["old_l10n_es_id"] + intr_prod_dec_lin_fields ) old_fields = ", ".join(f"leipd.{f}" for f in ["id"] + intr_prod_dec_lin_fields) - query = """INSERT INTO intrastat_product_declaration_line (parent_id, {new_fields}) + query = f"""INSERT INTO intrastat_product_declaration_line (parent_id, {new_fields}) SELECT ipd.id, {old_fields} FROM l10n_es_intrastat_product_declaration_line AS leipd INNER JOIN intrastat_product_declaration AS ipd ON ipd.old_l10n_es_id = leipd.parent_id - """.format( - new_fields=new_fields, old_fields=old_fields - ) + """ openupgrade.logged_query(env.cr, query) new_fields = ", ".join( f"{f}" for f in ["old_l10n_es_id"] + intr_prod_comp_lin_fields ) old_fields = ", ".join(f"leipc.{f}" for f in ["id"] + intr_prod_comp_lin_fields) - query = """INSERT INTO intrastat_product_computation_line + query = f"""INSERT INTO intrastat_product_computation_line (parent_id, declaration_line_id, {new_fields}) SELECT ipd.id, leipd.id, {old_fields} FROM l10n_es_intrastat_product_computation_line AS leipc @@ -113,7 +109,5 @@ def migrate(env, version): AS ipd ON ipd.old_l10n_es_id = leipc.parent_id INNER JOIN intrastat_product_declaration_line AS leipd ON leipd.old_l10n_es_id = leipc.declaration_line_id - """.format( - new_fields=new_fields, old_fields=old_fields - ) + """ openupgrade.logged_query(env.cr, query) diff --git a/l10n_es_intrastat_report/models/l10n_es_intrastat_product_declaration.py b/l10n_es_intrastat_report/models/l10n_es_intrastat_product_declaration.py index 9a7e59b8dd1..706209830a0 100644 --- a/l10n_es_intrastat_report/models/l10n_es_intrastat_product_declaration.py +++ b/l10n_es_intrastat_report/models/l10n_es_intrastat_product_declaration.py @@ -84,7 +84,7 @@ def _attach_xml_file(self, xml_string, declaration_name): attach_id = super()._attach_xml_file(xml_string, declaration_name) self.ensure_one() attach = self.env["ir.attachment"].browse(attach_id) - filename = "{}_{}.csv".format(self.year_month, declaration_name) + filename = f"{self.year_month}_{declaration_name}.csv" attach.write({"name": filename}) return attach.id diff --git a/l10n_es_intrastat_report/pyproject.toml b/l10n_es_intrastat_report/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/l10n_es_intrastat_report/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/l10n_es_intrastat_report/readme/CONFIGURE.rst b/l10n_es_intrastat_report/readme/CONFIGURE.md similarity index 69% rename from l10n_es_intrastat_report/readme/CONFIGURE.rst rename to l10n_es_intrastat_report/readme/CONFIGURE.md index d16e1850634..173ac0e504a 100644 --- a/l10n_es_intrastat_report/readme/CONFIGURE.rst +++ b/l10n_es_intrastat_report/readme/CONFIGURE.md @@ -1,6 +1,6 @@ This module adds the following configuration parameters: -* Company +- Company - Arrivals : Exempt, Standard or Extended - Dispatches : Exempt, Standard or Extended @@ -8,17 +8,21 @@ This module adds the following configuration parameters: - Default Intrastat Transport Mode (Extended Declaration) - Default Intrastat Incoterm (Extended Declaration) -* Warehouse +- 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. + 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 +- Intrastat Codes, Supplementary Units, Transaction Types, Transport + Modes, States - Cf. menu *Invoicing / Configuration / Miscellaneous / Intrastat Configuration* + Cf. menu *Invoicing / Configuration / Miscellaneous / Intrastat + Configuration* -* Product +- Product - You can define a default Intrastat Code on the Product or the Product Category. + You can define a default Intrastat Code on the Product or the Product + Category. diff --git a/l10n_es_intrastat_report/readme/CONTRIBUTORS.md b/l10n_es_intrastat_report/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..49731066cc2 --- /dev/null +++ b/l10n_es_intrastat_report/readme/CONTRIBUTORS.md @@ -0,0 +1,13 @@ +- Ismael Calvo, FactorLibre \<\> +- Luc De Meyer, Noviat \<\> +- Daniel Duque \<\> +- [Tecnativa](https://www.tecnativa.com): + - Manuel Calero + - Pedro M. Baeza + - João Marques + - Víctor Martínez +- [Sygel](https://www.sygel.es): + - Harald Panten + - Valentin Vinagre +- [GreenIce](https://www.greenice.com): + - Fernando La Chica diff --git a/l10n_es_intrastat_report/readme/CONTRIBUTORS.rst b/l10n_es_intrastat_report/readme/CONTRIBUTORS.rst deleted file mode 100644 index 2ac75bb2787..00000000000 --- a/l10n_es_intrastat_report/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,18 +0,0 @@ -* Ismael Calvo, FactorLibre -* Luc De Meyer, Noviat -* Daniel Duque -* `Tecnativa `__: - - * Manuel Calero - * Pedro M. Baeza - * João Marques - * Víctor Martínez - -* `Sygel `__: - - * Harald Panten - * Valentin Vinagre - -* `GreenIce `__: - - * Fernando La Chica diff --git a/l10n_es_intrastat_report/readme/DESCRIPTION.md b/l10n_es_intrastat_report/readme/DESCRIPTION.md new file mode 100644 index 00000000000..1fd8abce363 --- /dev/null +++ b/l10n_es_intrastat_report/readme/DESCRIPTION.md @@ -0,0 +1,4 @@ +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. diff --git a/l10n_es_intrastat_report/readme/DESCRIPTION.rst b/l10n_es_intrastat_report/readme/DESCRIPTION.rst deleted file mode 100644 index 0767f5a3e65..00000000000 --- a/l10n_es_intrastat_report/readme/DESCRIPTION.rst +++ /dev/null @@ -1,4 +0,0 @@ -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. diff --git a/l10n_es_intrastat_report/readme/INSTALL.md b/l10n_es_intrastat_report/readme/INSTALL.md new file mode 100644 index 00000000000..cd837dbb0fb --- /dev/null +++ b/l10n_es_intrastat_report/readme/INSTALL.md @@ -0,0 +1,19 @@ +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 2023. 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. diff --git a/l10n_es_intrastat_report/readme/INSTALL.rst b/l10n_es_intrastat_report/readme/INSTALL.rst deleted file mode 100644 index 9c446abe4fc..00000000000 --- a/l10n_es_intrastat_report/readme/INSTALL.rst +++ /dev/null @@ -1,17 +0,0 @@ -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 2023. Please check possible updates for this codes in: - -https://sede.agenciatributaria.gob.es/Sede/estadisticas/estadisticas-comercio-exterior/nomenclatura-combinada-ano.html - -This wizard also sets a sane default Intrastat transaction type for each kind -of invoice at company level, but it can be changed later. diff --git a/l10n_es_intrastat_report/readme/ROADMAP.md b/l10n_es_intrastat_report/readme/ROADMAP.md new file mode 100644 index 00000000000..d295ef31116 --- /dev/null +++ b/l10n_es_intrastat_report/readme/ROADMAP.md @@ -0,0 +1,10 @@ +- 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. diff --git a/l10n_es_intrastat_report/readme/ROADMAP.rst b/l10n_es_intrastat_report/readme/ROADMAP.rst deleted file mode 100644 index 0a2e1ef221c..00000000000 --- a/l10n_es_intrastat_report/readme/ROADMAP.rst +++ /dev/null @@ -1,11 +0,0 @@ -- 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. diff --git a/l10n_es_intrastat_report/readme/USAGE.md b/l10n_es_intrastat_report/readme/USAGE.md new file mode 100644 index 00000000000..e569163d2b7 --- /dev/null +++ b/l10n_es_intrastat_report/readme/USAGE.md @@ -0,0 +1,31 @@ +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. diff --git a/l10n_es_intrastat_report/readme/USAGE.rst b/l10n_es_intrastat_report/readme/USAGE.rst deleted file mode 100644 index f8cc0cd9cfe..00000000000 --- a/l10n_es_intrastat_report/readme/USAGE.rst +++ /dev/null @@ -1,23 +0,0 @@ -#. Go to *Invocing > Reporting > Intrastat > Spanish Intrastat Product Declaration*. -#. Create a new record. -#. 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. -#. Click on "Generate Lines from invoices" for populating transaction lines. - - You can review them on "Transactions" page of the report. -#. 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. -#. Click on "Generate CSV Declaration Line" for getting the CSV for declaring - the report in AEAT. -#. Click on "Excel Export" for having the information in a spreadsheet. diff --git a/l10n_es_intrastat_report/static/description/index.html b/l10n_es_intrastat_report/static/description/index.html index 95d7991187f..dc3e2f117fa 100644 --- a/l10n_es_intrastat_report/static/description/index.html +++ b/l10n_es_intrastat_report/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -368,10 +369,10 @@

Intrastat Product Declaration for Spain

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:6cd83513a2fd3ee39cfe4e43c26db6dd02b99cd7913ea8463fe41686c0a7c1f5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

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.

+

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

Table of contents

    @@ -390,18 +391,20 @@

    Intrastat Product Declaration for Spain

Installation

-

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 2023. Please check possible updates for this codes in:

+

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 2023. Please check possible updates for this +codes in:

https://sede.agenciatributaria.gob.es/Sede/estadisticas/estadisticas-comercio-exterior/nomenclatura-combinada-ano.html

-

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 wizard also sets a sane default Intrastat transaction type for each +kind of invoice at company level, but it can be changed later.

Configuration

@@ -419,23 +422,28 @@

Configuration

  • 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.

      +

      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

    +
  • 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.

    +

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

  • Usage

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

      +
    2. Go to Invocing > Reporting > Intrastat > Spanish Intrastat Product +Declaration.

    3. Create a new record.

    4. @@ -446,22 +454,24 @@

      Usage

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

      +
    10. Click on “Generate Lines from invoices” for populating transaction +lines.

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

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

      +
    13. 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.

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

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

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

    18. @@ -470,16 +480,17 @@

      Usage

      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 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.
        • +
        • The current version of the Intrastat reporting module does not +perform a cross-check with the VAT declaration.
        • Add tests.
      @@ -488,7 +499,7 @@

      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 to smash it by providing a detailed and welcomed -feedback.

      +feedback.

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

    @@ -528,11 +539,13 @@

    Contributors

    Maintainers

    This module is maintained by the OCA.

    -Odoo Community Association + +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.

    +

    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.

    diff --git a/l10n_es_intrastat_report/tests/test_l10n_es_intrastat_report.py b/l10n_es_intrastat_report/tests/test_l10n_es_intrastat_report.py index cb2cdab133a..f4ab5438923 100644 --- a/l10n_es_intrastat_report/tests/test_l10n_es_intrastat_report.py +++ b/l10n_es_intrastat_report/tests/test_l10n_es_intrastat_report.py @@ -136,6 +136,7 @@ def setUpClass(cls, chart_template_ref=None): for partner, fiscal in zip( (cls.partner_1, cls.partner_2), (cls.fiscal_position_b2b, cls.fiscal_position_b2c), + strict=True, ): invoice = cls._create_invoice(inv_type, partner, fiscal) cls.invoices[declaration_type]["invoices"].append(invoice)