diff --git a/docsource/modules160-170.rst b/docsource/modules160-170.rst index f1d925eea135..ae1d96a4b6ae 100644 --- a/docsource/modules160-170.rst +++ b/docsource/modules160-170.rst @@ -604,7 +604,7 @@ Module coverage 16.0 -> 17.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | payment_buckaroo | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| payment_custom | | | +| payment_custom | Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | payment_demo | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/payment_custom/17.0.2.0/post-migration.py b/openupgrade_scripts/scripts/payment_custom/17.0.2.0/post-migration.py new file mode 100644 index 000000000000..102823915677 --- /dev/null +++ b/openupgrade_scripts/scripts/payment_custom/17.0.2.0/post-migration.py @@ -0,0 +1,9 @@ +# Copyright 2024 Le Filament (https://le-filament.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env, "payment_custom", "17.0.2.0/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/payment_custom/17.0.2.0/pre-migration.py b/openupgrade_scripts/scripts/payment_custom/17.0.2.0/pre-migration.py new file mode 100644 index 000000000000..51f6097e5ead --- /dev/null +++ b/openupgrade_scripts/scripts/payment_custom/17.0.2.0/pre-migration.py @@ -0,0 +1,11 @@ +# Copyright 2024 Le Filament (https://le-filament.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.delete_sql_constraint_safely( + env, "payment", "payment_provider", "custom_providers_setup" + ) diff --git a/openupgrade_scripts/scripts/payment_custom/17.0.2.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/payment_custom/17.0.2.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..efdaec3d145d --- /dev/null +++ b/openupgrade_scripts/scripts/payment_custom/17.0.2.0/upgrade_analysis_work.txt @@ -0,0 +1,12 @@ +---Models in module 'payment_custom'--- +---Fields in module 'payment_custom'--- +---XML records in module 'payment_custom'--- +DEL ir.model.constraint: payment_custom.constraint_payment_provider_custom_providers_setup +# DONE: pre-migration: remove constraint safely + +NEW ir.ui.view: payment_custom.payment_method_form +NEW ir.ui.view: payment_custom.token_form +# NOTHING TO DO: new views + +NEW payment.method: payment_custom.payment_method_wire_transfer (noupdate) +# NOTHING TO DO: new payment method