From dce8e9d3902793807e1e2ce4ba19769a98519f58 Mon Sep 17 00:00:00 2001 From: Pilar Vargas Date: Wed, 8 Jul 2026 14:59:47 +0200 Subject: [PATCH 1/5] [OU-ADD] l10n_fr: Migration scripts TT61942 --- docsource/modules180-190.rst | 2 +- .../l10n_fr/19.0.2.1/post-migration.py | 9 +++++++++ .../scripts/l10n_fr/19.0.2.1/pre-migration.py | 19 +++++++++++++++++++ .../19.0.2.1/upgrade_analysis_work.txt | 13 +++++++++++++ 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/l10n_fr/19.0.2.1/post-migration.py create mode 100644 openupgrade_scripts/scripts/l10n_fr/19.0.2.1/pre-migration.py create mode 100644 openupgrade_scripts/scripts/l10n_fr/19.0.2.1/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index a4aae335164f..9fdaef3d744d 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -390,7 +390,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_fi_sale | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| l10n_fr | | | +| l10n_fr |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_fr_account | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/post-migration.py b/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/post-migration.py new file mode 100644 index 000000000000..1bf575e06312 --- /dev/null +++ b/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/post-migration.py @@ -0,0 +1,9 @@ +# Copyright 2026 Tecnativa - Pilar Vargas +# 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_fr", "19.0.2.1/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/pre-migration.py b/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/pre-migration.py new file mode 100644 index 000000000000..f3f69668f9a5 --- /dev/null +++ b/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/pre-migration.py @@ -0,0 +1,19 @@ +# Copyright 2026 Tecnativa - Pilar Vargas +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + # Migrate SIRET values to company_registry without overwriting existing data. + openupgrade.logged_query( + env.cr, + """ + UPDATE res_partner + SET company_registry = siret + WHERE siret IS NOT NULL + AND siret != '' + AND (company_registry IS NULL OR company_registry = '') + """, + ) diff --git a/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/upgrade_analysis_work.txt new file mode 100644 index 000000000000..bf0f8023e9bd --- /dev/null +++ b/openupgrade_scripts/scripts/l10n_fr/19.0.2.1/upgrade_analysis_work.txt @@ -0,0 +1,13 @@ +---Models in module 'l10n_fr'--- +# NOTHING TO DO + +---Fields in module 'l10n_fr'--- +l10n_fr / res.partner / siret (char) : DEL +# DONE: pre-migration script migrated siret values to existing company_registry when empty. + +---XML records in module 'l10n_fr'--- +NEW ir.ui.view: l10n_fr.view_partner_form_inherit_l10n_fr +DEL ir.ui.view: l10n_fr.res_partner_form_l10n_fr +res.country.group: l10n_fr.fr_and_mc (noupdate) (noupdate switched) +DEL res.country.group: l10n_fr.dom-tom [renamed to base module] +# NOTHING TO DO From 415de0684fbcccb2a827d680a30ba4c10aeb3254 Mon Sep 17 00:00:00 2001 From: Pilar Vargas Date: Wed, 8 Jul 2026 15:15:35 +0200 Subject: [PATCH 2/5] [OU-ADD] l10n_fr_account: Nothing to do TT61944 --- docsource/modules180-190.rst | 2 +- .../scripts/l10n_fr_account/19.0.2.4/upgrade_analysis.txt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index a4aae335164f..ae3292c0dff6 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -392,7 +392,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_fr | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| l10n_fr_account | | | +| l10n_fr_account |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_fr_facturx_chorus_pro | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/l10n_fr_account/19.0.2.4/upgrade_analysis.txt b/openupgrade_scripts/scripts/l10n_fr_account/19.0.2.4/upgrade_analysis.txt index 934aa8b552e1..a30688d7ffb5 100644 --- a/openupgrade_scripts/scripts/l10n_fr_account/19.0.2.4/upgrade_analysis.txt +++ b/openupgrade_scripts/scripts/l10n_fr_account/19.0.2.4/upgrade_analysis.txt @@ -1,5 +1,9 @@ ---Models in module 'l10n_fr_account'--- +# NOTHING TO DO + ---Fields in module 'l10n_fr_account'--- +# NOTHING TO DO + ---XML records in module 'l10n_fr_account'--- NEW account.report.expression: l10n_fr_account.tax_report_08_base_balance_from_tags_purchase NEW account.report.expression: l10n_fr_account.tax_report_09_base_balance_from_tags_purchase @@ -7,3 +11,4 @@ NEW account.report.expression: l10n_fr_account.tax_report_10_base_balance_from_t NEW account.report.expression: l10n_fr_account.tax_report_11_base_balance_from_tags_purchase NEW account.report.expression: l10n_fr_account.tax_report_9B_base_balance_from_tags_purchase DEL ir.ui.view: l10n_fr_account.res_partner_form_l10n_fr +# NOTHING TO DO From 3bd541346aa6641169189eb6119b2fcc066155b2 Mon Sep 17 00:00:00 2001 From: Pilar Vargas Date: Wed, 8 Jul 2026 15:58:18 +0200 Subject: [PATCH 3/5] [OU-ADD] microsoft_outlook: Nothing to do TT63207 --- docsource/modules180-190.rst | 2 +- .../microsoft_outlook/19.0.1.1/upgrade_analysis_work.txt | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/microsoft_outlook/19.0.1.1/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index a4aae335164f..5790ec280c7f 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -746,7 +746,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | microsoft_calendar | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| microsoft_outlook | | | +| microsoft_outlook |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | mrp |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/microsoft_outlook/19.0.1.1/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/microsoft_outlook/19.0.1.1/upgrade_analysis_work.txt new file mode 100644 index 000000000000..932d483cb709 --- /dev/null +++ b/openupgrade_scripts/scripts/microsoft_outlook/19.0.1.1/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'microsoft_outlook'--- +# NOTHING TO DO + +---Fields in module 'microsoft_outlook'--- +microsoft_outlook / res.users / outgoing_mail_server_type (False): NEW selection_keys: ['default', 'gmail', 'outlook'], mode: modify +# NOTHING TO DO: module only adds the new 'outlook' selection value + +---XML records in module 'microsoft_outlook'--- +# NOTHING TO DO From a0b75ca0c9b19c8e7f58d540134c98bdefc82bf8 Mon Sep 17 00:00:00 2001 From: Pilar Vargas Date: Wed, 8 Jul 2026 16:15:17 +0200 Subject: [PATCH 4/5] [OU-ADD] mail_bot_hr: Nothing to do TT63291 --- docsource/modules180-190.rst | 2 +- .../mail_bot_hr/19.0.1.0/upgrade_analysis_work.txt | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/mail_bot_hr/19.0.1.0/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index a4aae335164f..bc72bbd4ea51 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -706,7 +706,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | mail_bot | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| mail_bot_hr | | | +| mail_bot_hr |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | mail_group | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/mail_bot_hr/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/mail_bot_hr/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..56c991eb6279 --- /dev/null +++ b/openupgrade_scripts/scripts/mail_bot_hr/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'mail_bot_hr'--- +# NOTHING TO DO + +---Fields in module 'mail_bot_hr'--- +# NOTHING TO DO + +---XML records in module 'mail_bot_hr'--- +DEL ir.ui.view: mail_bot_hr.res_users_view_form_profile +# NOTHING TO DO: removed inherited user profile view only From 5db687991279864bd89198cb925cf91b971c7f85 Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Fri, 15 May 2026 19:23:46 -0400 Subject: [PATCH 5/5] [MIG] project_*: analysis annotations for suite modules --- docsource/modules180-190.rst | 14 +++++++------- .../19.0.1.0/upgrade_analysis_work.txt | 9 +++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 9 +++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 12 ++++++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 9 +++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 9 +++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 11 +++++++++++ .../19.0.1.0/upgrade_analysis_work.txt | 15 +++++++++++++++ 8 files changed, 81 insertions(+), 7 deletions(-) create mode 100644 openupgrade_scripts/scripts/project_hr_expense/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/project_hr_skills/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/project_mrp/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/project_mrp_account/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/project_purchase/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/project_stock/19.0.1.0/upgrade_analysis_work.txt create mode 100644 openupgrade_scripts/scripts/project_timesheet_holidays/19.0.1.0/upgrade_analysis_work.txt diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index ab2ddedec63f..dbbf8e680388 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -926,21 +926,21 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | project_account |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| project_hr_expense | | | +| project_hr_expense |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| project_hr_skills | | | +| project_hr_skills |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | project_mail_plugin | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| project_mrp | | | +| project_mrp |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| project_mrp_account | | | +| project_mrp_account |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | project_mrp_sale | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | project_mrp_stock_landed_costs | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| project_purchase | | | +| project_purchase |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | project_purchase_stock | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ @@ -948,13 +948,13 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | project_sms | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| project_stock | | | +| project_stock |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | project_stock_account | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ | project_stock_landed_costs | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| project_timesheet_holidays | | | +| project_timesheet_holidays |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | project_todo |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/project_hr_expense/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/project_hr_expense/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..619af324ef73 --- /dev/null +++ b/openupgrade_scripts/scripts/project_hr_expense/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'project_hr_expense'--- + + +---Fields in module 'project_hr_expense'--- + +---XML records in module 'project_hr_expense'--- +NEW ir.embedded.actions: project_hr_expense.project_embedded_action_hr_expenses_dashbord + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/project_hr_skills/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/project_hr_skills/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..fb0c0bda8f44 --- /dev/null +++ b/openupgrade_scripts/scripts/project_hr_skills/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'project_hr_skills'--- + + +---Fields in module 'project_hr_skills'--- +project_hr_skills / res.users / employee_skill_ids (one2many) : previously in module hr_skills + +# NOTHING TO DO + +---XML records in module 'project_hr_skills'--- diff --git a/openupgrade_scripts/scripts/project_mrp/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/project_mrp/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..8acc5d83a488 --- /dev/null +++ b/openupgrade_scripts/scripts/project_mrp/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,12 @@ +---Models in module 'project_mrp'--- + + +---Fields in module 'project_mrp'--- + +---XML records in module 'project_mrp'--- +NEW ir.embedded.actions: project_mrp.project_embedded_action_bills_of_materials_dashboard +NEW ir.embedded.actions: project_mrp.project_embedded_action_manufacturing_orders_dashboard +NEW ir.model.access: project_mrp.access_mrp_bom_line_project_user +NEW ir.model.access: project_mrp.access_mrp_bom_project_user + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/project_mrp_account/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/project_mrp_account/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..c8aa897b8630 --- /dev/null +++ b/openupgrade_scripts/scripts/project_mrp_account/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'project_mrp_account'--- + + +---Fields in module 'project_mrp_account'--- + +---XML records in module 'project_mrp_account'--- +DEL ir.ui.view: project_mrp_account.mrp_production_form_view_inherit_project_mrp_account + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/project_purchase/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/project_purchase/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..583a6d62bb2e --- /dev/null +++ b/openupgrade_scripts/scripts/project_purchase/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'project_purchase'--- + + +---Fields in module 'project_purchase'--- + +---XML records in module 'project_purchase'--- +NEW ir.embedded.actions: project_purchase.project_embedded_action_purchase_orders_dashboard + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/project_stock/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/project_stock/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..02b07fe62394 --- /dev/null +++ b/openupgrade_scripts/scripts/project_stock/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,11 @@ +---Models in module 'project_stock'--- + + +---Fields in module 'project_stock'--- + +---XML records in module 'project_stock'--- +NEW ir.embedded.actions: project_stock.project_embedded_action_all_pickings_dashboard +NEW ir.embedded.actions: project_stock.project_embedded_action_from_wh_dashboard +NEW ir.embedded.actions: project_stock.project_embedded_action_to_wh_dashboard + +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/project_timesheet_holidays/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/project_timesheet_holidays/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..98710d05c89a --- /dev/null +++ b/openupgrade_scripts/scripts/project_timesheet_holidays/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,15 @@ +---Models in module 'project_timesheet_holidays'--- + + +---Fields in module 'project_timesheet_holidays'--- +project_timesheet_holidays / hr.leave.type / timesheet_generate (boolean) : DEL +project_timesheet_holidays / hr.leave.type / timesheet_project_id (many2one): DEL relation: project.project +project_timesheet_holidays / hr.leave.type / timesheet_task_id (many2one) : DEL relation: project.task + +# NOTHING TO DO + +---XML records in module 'project_timesheet_holidays'--- +NEW ir.model.constraint: project_timesheet_holidays.constraint_account_analytic_line_timeoff_timesheet_idx +DEL ir.ui.view: project_timesheet_holidays.hr_holiday_status_view_form_inherit + +# NOTHING TO DO