-
-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
3 changed files
with
51 additions
and
2 deletions.
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
22 changes: 22 additions & 0 deletions
22
openupgrade_scripts/scripts/payment_custom/16.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,22 @@ | ||
# SPDX-FileCopyrightText: 2023 Coop IT Easy SC | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
# The payment migration script renames provider.acquirer to | ||
# payment.provider. Assume that that script has already been run. | ||
|
||
# The provider (Selection) field no longer exists. The same information is | ||
# now in custom_mode. | ||
openupgrade.logged_query( | ||
env.cr, | ||
""" | ||
UPDATE payment_provider | ||
SET code = 'custom', custom_mode = 'wire_transfer' | ||
WHERE provider = 'transfer' | ||
""", | ||
) |
27 changes: 27 additions & 0 deletions
27
openupgrade_scripts/scripts/payment_custom/16.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,27 @@ | ||
# A global note: This module was renamed from payment_transfer. | ||
|
||
---Models in module 'payment_custom'--- | ||
---Fields in module 'payment_custom'--- | ||
payment_custom / payment.provider / code (False) : NEW selection_keys: ['adyen', 'alipay', 'aps', 'asiapay', 'authorize', 'buckaroo', 'custom', 'none'], mode: modify | ||
# DONE: post-migration: moved from payment.acquirer 'provider' field. | ||
|
||
payment_custom / payment.provider / custom_mode (selection) : NEW selection_keys: ['wire_transfer'] | ||
# DONE: post-migration: moved from payment.acquirer 'provider' field. | ||
|
||
payment_custom / payment.provider / qr_code (boolean) : NEW | ||
# NOTHING TO DO: Model is renamed in payment migration. Field name is identical. | ||
|
||
---XML records in module 'payment_custom'--- | ||
NEW ir.model.constraint: payment_custom.constraint_payment_provider_custom_providers_setup | ||
# NOTHING TO DO: New. | ||
|
||
NEW ir.ui.view: payment_custom.custom_transaction_status | ||
# NOTHING TO DO: Renamed from payment_transfer.transfer_transaction_status | ||
# with minimal changes. | ||
|
||
NEW ir.ui.view: payment_custom.payment_provider_form | ||
# NOTHING TO DO: Renamed from payment_transfer.payment_acquirer_form with | ||
# minimal changes. | ||
|
||
NEW ir.ui.view: payment_custom.redirect_form | ||
# NOTHING TO DO: Renamed from payment_transfer with no changes. |