forked from OCA/OpenUpgrade
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OU-ADD] payment_custom: Migration to 17.0
- Loading branch information
1 parent
89fbfd5
commit 44d557e
Showing
4 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
openupgrade_scripts/scripts/payment_custom/17.0.2.0/post-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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") |
11 changes: 11 additions & 0 deletions
11
openupgrade_scripts/scripts/payment_custom/17.0.2.0/pre-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
) |
12 changes: 12 additions & 0 deletions
12
openupgrade_scripts/scripts/payment_custom/17.0.2.0/upgrade_analysis_work.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |