From 2653e2d5dbc2dde8e4845a297a3aba040b24f9c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <30716308+remi-filament@users.noreply.github.com> Date: Fri, 18 Oct 2024 11:41:17 +0200 Subject: [PATCH] [OU-ADD] payment_custom: Migration to 17.0 --- docsource/modules160-170.rst | 2 +- .../scripts/payment_custom/17.0.2.0/post-migration.py | 9 +++++++++ .../payment_custom/17.0.2.0/upgrade_analysis_work.txt | 9 +++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/payment_custom/17.0.2.0/post-migration.py create mode 100644 openupgrade_scripts/scripts/payment_custom/17.0.2.0/upgrade_analysis_work.txt diff --git a/docsource/modules160-170.rst b/docsource/modules160-170.rst index 98c84901043b..2e389348d8ef 100644 --- a/docsource/modules160-170.rst +++ b/docsource/modules160-170.rst @@ -730,7 +730,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/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/payment_custom/17.0.2.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..48c0019d97c3 --- /dev/null +++ b/openupgrade_scripts/scripts/payment_custom/17.0.2.0/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'payment_custom'--- +---Fields in module 'payment_custom'--- +---XML records in module 'payment_custom'--- +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