From d19295898cee80ff38ad0d7154f69a153bfb27e6 Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Sat, 30 May 2026 14:22:56 -0400 Subject: [PATCH] [MIG] l10n_ar/l10n_fi/l10n_latam_check: load changed noupdate localization data Force-load the noupdate records that changed in 19.0 via post-migration openupgrade.load_data: l10n_ar res.partner partner_afip rename (->ARCA), l10n_fi account.account.tag fi translations + invoice_reference_model new selection key (no-op), l10n_latam_check payment-method es_419 translations. All xml_ids/keys validated against the Odoo 19 source. --- docsource/modules180-190.rst | 6 +++--- .../scripts/l10n_ar/19.0.3.7/post-migration.py | 6 ++++++ .../l10n_ar/19.0.3.7/upgrade_analysis_work.txt | 11 +++++++++++ .../scripts/l10n_fi/19.0.13.0.2/post-migration.py | 8 ++++++++ .../l10n_fi/19.0.13.0.2/upgrade_analysis_work.txt | 7 +++++++ .../l10n_latam_check/19.0.1.0.0/post-migration.py | 6 ++++++ .../19.0.1.0.0/upgrade_analysis_work.txt | 7 +++++++ 7 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 openupgrade_scripts/scripts/l10n_ar/19.0.3.7/post-migration.py create mode 100644 openupgrade_scripts/scripts/l10n_ar/19.0.3.7/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/l10n_fi/19.0.13.0.2/post-migration.py create mode 100644 openupgrade_scripts/scripts/l10n_fi/19.0.13.0.2/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/l10n_latam_check/19.0.1.0.0/post-migration.py create mode 100644 openupgrade_scripts/scripts/l10n_latam_check/19.0.1.0.0/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index e7f797ce0766..3c4722d13f9c 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -254,7 +254,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_anz_ubl_pint | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| l10n_ar | | | +| l10n_ar | Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_ar_pos | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ @@ -386,7 +386,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_eu_oss | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| l10n_fi | | | +| l10n_fi | Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_fi_sale | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ @@ -526,7 +526,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_latam_base | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| l10n_latam_check | | | +| l10n_latam_check | Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_latam_invoice_document | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/l10n_ar/19.0.3.7/post-migration.py b/openupgrade_scripts/scripts/l10n_ar/19.0.3.7/post-migration.py new file mode 100644 index 000000000000..6850dc4cc902 --- /dev/null +++ b/openupgrade_scripts/scripts/l10n_ar/19.0.3.7/post-migration.py @@ -0,0 +1,6 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env, "l10n_ar", "19.0.3.7/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/l10n_ar/19.0.3.7/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/l10n_ar/19.0.3.7/upgrade_analysis_work.txt new file mode 100644 index 000000000000..d72df12774f5 --- /dev/null +++ b/openupgrade_scripts/scripts/l10n_ar/19.0.3.7/upgrade_analysis_work.txt @@ -0,0 +1,11 @@ +---Models in module 'l10n_ar'--- +---Fields in module 'l10n_ar'--- +---XML records in module 'l10n_ar'--- +# DONE: noupdate_changes.xml loaded in post-migration (partner_afip AFIP->ARCA rebrand) +NEW ir.model.constraint: l10n_ar.constraint_l10n_ar_afip_responsibility_type_code_uniq +NEW ir.model.constraint: l10n_ar.constraint_l10n_ar_afip_responsibility_type_name_uniq +DEL ir.model.constraint: l10n_ar.constraint_l10n_ar_afip_responsibility_type_code +DEL ir.model.constraint: l10n_ar.constraint_l10n_ar_afip_responsibility_type_name +NEW ir.ui.view: l10n_ar.address_form_fields +DEL ir.ui.view: l10n_ar.product_uom_categ_form_view +# NOTHING TO DO: constraint rename + view add/del are handled automatically by the ORM diff --git a/openupgrade_scripts/scripts/l10n_fi/19.0.13.0.2/post-migration.py b/openupgrade_scripts/scripts/l10n_fi/19.0.13.0.2/post-migration.py new file mode 100644 index 000000000000..4f7350e59599 --- /dev/null +++ b/openupgrade_scripts/scripts/l10n_fi/19.0.13.0.2/post-migration.py @@ -0,0 +1,8 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env, "l10n_fi", "19.0.13.0.2/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/l10n_fi/19.0.13.0.2/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/l10n_fi/19.0.13.0.2/upgrade_analysis_work.txt new file mode 100644 index 000000000000..de862613d64f --- /dev/null +++ b/openupgrade_scripts/scripts/l10n_fi/19.0.13.0.2/upgrade_analysis_work.txt @@ -0,0 +1,7 @@ +---Models in module 'l10n_fi'--- +---Fields in module 'l10n_fi'--- +l10n_fi / account.journal / invoice_reference_model (False): selection_keys added: [number] (most likely nothing to do) + +# NOTHING TO DO: new selection key, no existing data to remap + +---XML records in module 'l10n_fi'--- diff --git a/openupgrade_scripts/scripts/l10n_latam_check/19.0.1.0.0/post-migration.py b/openupgrade_scripts/scripts/l10n_latam_check/19.0.1.0.0/post-migration.py new file mode 100644 index 000000000000..0ba3fb896097 --- /dev/null +++ b/openupgrade_scripts/scripts/l10n_latam_check/19.0.1.0.0/post-migration.py @@ -0,0 +1,6 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env, "l10n_latam_check", "19.0.1.0.0/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/l10n_latam_check/19.0.1.0.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/l10n_latam_check/19.0.1.0.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..a0cd623148fd --- /dev/null +++ b/openupgrade_scripts/scripts/l10n_latam_check/19.0.1.0.0/upgrade_analysis_work.txt @@ -0,0 +1,7 @@ +---Models in module 'l10n_latam_check'--- +---Fields in module 'l10n_latam_check'--- +---XML records in module 'l10n_latam_check'--- +# NOTHING TO DO: NEW records are auto-created on update. +NEW ir.model.constraint: l10n_latam_check.constraint_l10n_latam_check_unique +NEW ir.ui.view: l10n_latam_check.report_payment_receipt_document +# DONE: noupdate_changes.xml es_419 translations on standard payment-method data loaded in post-migration.