Skip to content

[19.0][MIG] l10n_es_intrastat_report: Migration to 19.0 - #5056

Merged
OCA-git-bot merged 47 commits into
OCA:19.0from
Tecnativa:19.0-mig-l10n_es_intrastat_report
Jul 8, 2026
Merged

[19.0][MIG] l10n_es_intrastat_report: Migration to 19.0#5056
OCA-git-bot merged 47 commits into
OCA:19.0from
Tecnativa:19.0-mig-l10n_es_intrastat_report

Conversation

@victoralmau

@victoralmau victoralmau commented Jun 18, 2026

Copy link
Copy Markdown
Member

Migración a 19.0

Por favor @pedrobaeza ¿puedes revisarlo?

@Tecnativa TT61941

@HaraldPanten

Copy link
Copy Markdown
Contributor

/ocabot migration l10n_es_intrastat_report

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Jun 18, 2026
@OCA-git-bot

Copy link
Copy Markdown
Contributor

The migration issue (#4402) has not been updated to reference the current pull request because a previous pull request (#4985) is not closed.
Perhaps you should check that there is no duplicate work.
CC @miguelvazquez1

@HaraldPanten

Copy link
Copy Markdown
Contributor

Se cierra el anterior PR por falta de seguimiento.

/ocabot migration l10n_es_intrastat_report

@OCA-git-bot OCA-git-bot mentioned this pull request Jun 18, 2026
40 tasks
@victoralmau
victoralmau force-pushed the 19.0-mig-l10n_es_intrastat_report branch from 673b16b to 50b088f Compare June 19, 2026 07:01

@juancarlosonate-tecnativa juancarlosonate-tecnativa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

luc-demeyer and others added 19 commits July 8, 2026 18:59
…ral imps/fixes

* Remove unneeded dependency to stock_picking_invoice_link.
* Updated HS Codes source file.
* Optimized compute/import methods.
* Remove useless/obsolete code, data and fields.
* Added Spanish translation.
Previous code was forcing the existence of linked purchase lines which may be not
true for all. As we already have a fallback in declaration code, let's not force
this at location level.
Missed step from the migration to v13
Update multi-company security domains and provide migration scripts

TT27865
Due to upstream change, now invoice date is required.
… is set

Co-authored-by: Pedro M. Baeza <pedro.baeza@tecnativa.com>

l10n_es_intrastat_report 14.0.1.0.1
…ording to documentation.

TT30682

l10n_es_intrastat_report 14.0.1.1.0
… de 2022

Co-Authored-By: Pedro M. Baeza <pedro.baeza@tecnativa.com>
TT34295

l10n_es_intrastat_report 14.0.2.0.1
… and show error when missing product_origin_country_id in line.

TT29332

l10n_es_intrastat_report 14.0.2.1.0
Since 81aac30dd2278e43a43cf8fd6cef31e1e8c60f3f, all tests depending on
invoicing base test should be post-install.
… and show error when missing product_origin_country_id in line.

TT29332
victoralmau and others added 19 commits July 8, 2026 18:59
…ady defined in intrastat_product.

Transaction 70 is eliminated, it does not exist (officially).

https://eur-lex.europa.eu/legal-content/ES/TXT/HTML/?uri=CELEX:32020R1197&from=EN#d1e32-7-1

company_id=False is not necessary in v16 because the field is no longer has a default
…ns with Intrastat

Since v17, ir.model.data records (external identifiers) are no longer created with
the localization module (l10n_es). Account is defined in all of them, so the
post_init_hook() method must be adjusted so that the appropriate fiscal positions
have the appropriate Intrastat data.
…nit_hook

Define the appropriate data (intrastat+vat_required) in the fiscal positions
to be consistent with what is indicated in the _get_fiscal_position() method
of account.chart.template
[UPD] Update l10n_es_intrastat_report.pot

[BOT] post-merge updates
[UPD] Update l10n_es_intrastat_report.pot

[BOT] post-merge updates

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_intrastat_report
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_intrastat_report/
Related to OCA/intrastat-extrastat#335

[UPD] Update l10n_es_intrastat_report.pot

[BOT] post-merge updates

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_intrastat_report
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_intrastat_report/
…ue of the Intrastat field)

Related to OCA/intrastat-extrastat#333

[BOT] post-merge updates
Currently translated at 98.0% (51 of 52 strings)

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_intrastat_report
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_intrastat_report/es/

Translated using Weblate (Spanish)

Currently translated at 100.0% (52 of 52 strings)

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_intrastat_report
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_intrastat_report/es/
Currently translated at 65.3% (34 of 52 strings)

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_intrastat_report
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_intrastat_report/ca/

[UPD] Update l10n_es_intrastat_report.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_intrastat_report
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_intrastat_report/
@pedrobaeza
pedrobaeza force-pushed the 19.0-mig-l10n_es_intrastat_report branch from 50b088f to 1d9adb7 Compare July 8, 2026 16:59

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

He realizado ya los cambios para poder fusionar.

/ocabot merge nobump

else:
raise exceptions.UserError(
self.env._("Unit not found: '%s'") % iu
self.env._("Unit not found: '%(iu)s'", iu=iu)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No hay que cambiar la traducción, si no cómo cargar el argumento:

Suggested change
self.env._("Unit not found: '%(iu)s'", iu=iu)
self.env._("Unit not found: '%s'", iu)

"views/l10n_es_intrastat_product.xml",
"wizards/l10n_es_intrastat_code_import.xml",
],
"external_dependencies": {"python": ["openpyxl"]},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No hace falta declararlo, porque el propio Odoo ya lo tiene en su requirements.txt: https://github.com/odoo/odoo/blob/19.0/requirements.txt#L49

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-5056-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 19.0-ocabot-merge-pr-5056-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 1c670ac into OCA:19.0 Jul 8, 2026
5 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 2051667. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza
pedrobaeza deleted the 19.0-mig-l10n_es_intrastat_report branch July 8, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.