diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index f90c72de6818..344b35b0e934 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -22,7 +22,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | account_fleet | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| account_payment | | | +| account_payment |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | account_peppol | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/account_payment/19.0.2.0/post-migration.py b/openupgrade_scripts/scripts/account_payment/19.0.2.0/post-migration.py new file mode 100644 index 000000000000..5d94a1b0197c --- /dev/null +++ b/openupgrade_scripts/scripts/account_payment/19.0.2.0/post-migration.py @@ -0,0 +1,11 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from openupgradelib import openupgrade + +_deleted_xmlids = [ + "account_payment.onboarding_onboarding_step_payment_provider", +] + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.delete_records_safely_by_xml_id(env, _deleted_xmlids) diff --git a/openupgrade_scripts/scripts/account_payment/19.0.2.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/account_payment/19.0.2.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..7da0b9dae45c --- /dev/null +++ b/openupgrade_scripts/scripts/account_payment/19.0.2.0/upgrade_analysis_work.txt @@ -0,0 +1,6 @@ +---Models in module 'account_payment'--- +---Fields in module 'account_payment'--- +---XML records in module 'account_payment'--- +DEL onboarding.onboarding.step: account_payment.onboarding_onboarding_step_payment_provider (noupdate) + +# DONE: deleted in post-migration