diff --git a/addons/payment_transfer/migrations/13.0.1.0/noupdate_changes.xml b/addons/payment_transfer/migrations/13.0.1.0/noupdate_changes.xml index fed41f89ecc0..dee69490f6fb 100644 --- a/addons/payment_transfer/migrations/13.0.1.0/noupdate_changes.xml +++ b/addons/payment_transfer/migrations/13.0.1.0/noupdate_changes.xml @@ -1,18 +1,17 @@ - - - - - - --> + + + + diff --git a/addons/payment_transfer/migrations/13.0.1.0/openupgrade_analysis_work.txt b/addons/payment_transfer/migrations/13.0.1.0/openupgrade_analysis_work.txt new file mode 100644 index 000000000000..268441a3f750 --- /dev/null +++ b/addons/payment_transfer/migrations/13.0.1.0/openupgrade_analysis_work.txt @@ -0,0 +1,11 @@ +---Models in module 'payment_transfer'--- +---Fields in module 'payment_transfer'--- +payment_transfer / payment.acquirer / provider (False) : selection_keys is now '['adyen', 'alipay', 'authorize', 'buckaroo', 'manual', 'ogone', 'paypal', 'payulatam', 'payumoney', 'sips', 'stripe', 'test', 'transfer']' ('['adyen', 'authorize', 'buckaroo', 'manual', 'ogone', 'paypal', 'payumoney', 'sips', 'stripe', 'transfer']') +# NOTHING TO DO: new option 'alipay' + +---XML records in module 'payment_transfer'--- +ir.ui.view: payment_transfer.transfer_form (noupdate) (noupdate switched) +# DONE: post-migration: handled noupdate switched, but after Odoo has updated to current valid definition + +DEL payment.acquirer: payment.payment_acquirer_custom (noupdate) +# NOTHING TO DO: Already tried to remove on payment diff --git a/addons/payment_transfer/migrations/13.0.1.0/post-migration.py b/addons/payment_transfer/migrations/13.0.1.0/post-migration.py new file mode 100644 index 000000000000..22b8d6a13075 --- /dev/null +++ b/addons/payment_transfer/migrations/13.0.1.0/post-migration.py @@ -0,0 +1,15 @@ +# Copyright 2020 ForgeFlow +# Copyright 2020 Tecnativa - Pedro M. Baeza +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + # We shouldn't load anything from noupdate_changes, as this may be changed + # by users in v12 according their needs + # openupgrade.load_data( + # env.cr, "payment_transfer", "migrations/13.0.1.0/noupdate_changes.xml") + openupgrade.set_xml_ids_noupdate_value( + env, "payment_transfer", ["transfer_form"], True, + ) diff --git a/odoo/openupgrade/doc/source/modules120-130.rst b/odoo/openupgrade/doc/source/modules120-130.rst index 98d7f6d72783..3f0d245f0c11 100644 --- a/odoo/openupgrade/doc/source/modules120-130.rst +++ b/odoo/openupgrade/doc/source/modules120-130.rst @@ -487,7 +487,7 @@ missing in the new release are marked with |del|. +----------------------------------------------+-------------------------------------------------+ | |new| payment_test | | +----------------------------------------------+-------------------------------------------------+ -|payment_transfer | | +|payment_transfer | Done | +----------------------------------------------+-------------------------------------------------+ |phone_validation | Nothing to do | +----------------------------------------------+-------------------------------------------------+