diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index 6066a474b822..869a08d1bb8c 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -14,7 +14,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | account_edi |Nothing to do |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| account_edi_proxy_client | | | +| account_edi_proxy_client |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | account_edi_ubl_cii |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ @@ -24,7 +24,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | account_payment |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| account_peppol | | | +| account_peppol |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | |new| account_peppol_advanced_fields | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/account_edi_proxy_client/19.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/account_edi_proxy_client/19.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..f62aa993f147 --- /dev/null +++ b/openupgrade_scripts/scripts/account_edi_proxy_client/19.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,7 @@ +---Models in module 'account_edi_proxy_client'--- +---Fields in module 'account_edi_proxy_client'--- +account_edi_proxy_client / account_edi_proxy_client.user / is_token_out_of_sync (boolean): NEW +account_edi_proxy_client / account_edi_proxy_client.user / token_sync_version (integer) : NEW +# NOTHING TO DO: empty values are fine for existing records + +---XML records in module 'account_edi_proxy_client'--- diff --git a/openupgrade_scripts/scripts/account_peppol/19.0.1.2/post-migration.py b/openupgrade_scripts/scripts/account_peppol/19.0.1.2/post-migration.py new file mode 100644 index 000000000000..3beff574f0f4 --- /dev/null +++ b/openupgrade_scripts/scripts/account_peppol/19.0.1.2/post-migration.py @@ -0,0 +1,22 @@ +# Copyright 2026 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from markupsafe import Markup +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + admin_channel = env.ref("mail.channel_admin") + if admin_channel and any( + c.account_peppol_proxy_state == "sender" for c in env["res.company"].search([]) + ): + admin_channel.message_post( + body=Markup( + "
" + "Cannot automatically determine res.company#peppol_external_provider." + "You should fill this field manually or rerun the peppol wizard." + "
" + ) + ) diff --git a/openupgrade_scripts/scripts/account_peppol/19.0.1.2/pre-migration.py b/openupgrade_scripts/scripts/account_peppol/19.0.1.2/pre-migration.py new file mode 100644 index 000000000000..033116c5e1c7 --- /dev/null +++ b/openupgrade_scripts/scripts/account_peppol/19.0.1.2/pre-migration.py @@ -0,0 +1,22 @@ +# Copyright 2026 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + +copy_columns = { + "res_company": [ + ("account_peppol_proxy_state", None, None), + ] +} + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.copy_columns(env.cr, copy_columns) + openupgrade.map_values( + env.cr, + openupgrade.get_legacy_name("account_peppol_proxy_state"), + "account_peppol_proxy_state", + [("in_verification", "not_registered")], + table="res_company", + ) diff --git a/openupgrade_scripts/scripts/account_peppol/19.0.1.2/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/account_peppol/19.0.1.2/upgrade_analysis_work.txt new file mode 100644 index 000000000000..5da6998baf9e --- /dev/null +++ b/openupgrade_scripts/scripts/account_peppol/19.0.1.2/upgrade_analysis_work.txt @@ -0,0 +1,47 @@ +---Models in module 'account_peppol'--- +obsolete model account_peppol.service.wizard (renamed to peppol.config.wizard) [transient] +new model peppol.config.wizard (renamed from account_peppol.service.wizard) [transient] +# NOTHING TO DO + +---Fields in module 'account_peppol'--- +account_peppol / account_edi_proxy_client.user / peppol_verification_code (char): DEL +# NOTHING TO DO + +account_peppol / res.company / account_peppol_proxy_state (selection): selection_keys removed: [in_verification] +# DONE: mapped 'in_verification' to 'not_registered' + +account_peppol / res.company / peppol_activate_self_billing_sending (boolean): NEW +# NOTHING TO DO + +account_peppol / res.company / peppol_external_provider (char): NEW +# NOTHING TO DO: we don't know this and don't want to (probably can't) query external resources during migration + +account_peppol / res.company / peppol_metadata (json) : NEW +account_peppol / res.company / peppol_metadata_updated_at (datetime): NEW +# NOTHING TO DO: fields seem unused in CE + +account_peppol / res.company / peppol_self_billing_reception_journal_id (many2one): NEW relation: account.journal, isfunction: function, stored +# NOTHING TO DO: rely on ORM computation + +account_peppol_selfbilling / account.journal / is_self_billing (boolean) : module is now 'account' ('account_peppol_selfbilling') +# NOTHING TO DO + +---XML records in module 'account_peppol'--- +NEW ir.actions.client: account_peppol.action_peppol_auth_callback +NEW ir.cron: account_peppol.ir_cron_peppol_webhook_keepalive +NEW ir.model.access: account_peppol.access_peppol_config_wizard +DEL ir.model.access: account_peppol.account_peppol_service_wizard_system +NEW ir.ui.view: account_peppol.peppol_config_wizard_form +NEW ir.ui.view: account_peppol.portal_my_details +DEL ir.ui.view: account_peppol.account_journal_dashboard_kanban_view +DEL ir.ui.view: account_peppol.peppol_service_configuration +DEL ir.ui.view: account_peppol.portal_my_details_fields +DEL ir.ui.view: account_peppol_selfbilling.account_move_form_inherit_self_billing +DEL ir.ui.view: account_peppol_selfbilling.report_invoice_document +DEL ir.ui.view: account_peppol_selfbilling.view_account_journal_form_inherited +NEW mail.template: account_peppol.mail_template_peppol_registration +# NOTHING TO DO + +DEL mail.template: account_peppol_selfbilling.email_template_edi_self_billing_credit_note [renamed to account module] (noupdate) +DEL mail.template: account_peppol_selfbilling.email_template_edi_self_billing_invoice [renamed to account module] (noupdate) +# NOTHING TO DO: handled in account migration