-
-
Notifications
You must be signed in to change notification settings - Fork 696
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_paypal: Migration to 16.0
TT44209
- Loading branch information
1 parent
fa97688
commit 765704b
Showing
4 changed files
with
36 additions
and
3 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
4 changes: 2 additions & 2 deletions
4
openupgrade_scripts/scripts/payment_paypal/16.0.2.0/noupdate_changes.xml
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<odoo> | ||
<record id="payment.payment_provider_paypal" model="payment.provider"> | ||
<field name="code">paypal</field> | ||
<field name="redirect_form_view_id" ref="redirect_form"/> | ||
<!-- <field name="code">paypal</field> | ||
<field name="redirect_form_view_id" ref="redirect_form"/> --> | ||
</record> | ||
</odoo> |
16 changes: 16 additions & 0 deletions
16
openupgrade_scripts/scripts/payment_paypal/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,16 @@ | ||
# Copyright 2023 Tecnativa - Víctor Martínez | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.delete_records_safely_by_xml_id( | ||
env, | ||
[ | ||
"payment_paypal.payment_method_paypal", | ||
], | ||
) | ||
openupgrade.load_data( | ||
env.cr, "payment_paypal", "migrations/16.0.2.0/noupdate_changes.xml" | ||
) |
17 changes: 17 additions & 0 deletions
17
openupgrade_scripts/scripts/payment_paypal/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,17 @@ | ||
---Models in module 'payment_paypal'--- | ||
---Fields in module 'payment_paypal'--- | ||
payment_paypal / payment.acquirer / paypal_email_account (char) : DEL | ||
payment_paypal / payment.acquirer / paypal_pdt_token (char) : DEL | ||
payment_paypal / payment.acquirer / paypal_seller_account (char) : DEL | ||
payment_paypal / payment.acquirer / paypal_use_ipn (boolean) : DEL | ||
payment_paypal / payment.acquirer / provider (False) : DEL selection_keys: ['adyen', 'alipay', 'authorize', 'buckaroo', 'mollie', 'none', 'ogone', 'paypal'], mode: modify | ||
payment_paypal / payment.provider / code (False) : NEW selection_keys: ['adyen', 'alipay', 'aps', 'asiapay', 'authorize', 'buckaroo', 'custom', 'demo', 'flutterwave', 'mercado_pago', 'mollie', 'none', 'ogone', 'paypal'], mode: modify | ||
payment_paypal / payment.provider / paypal_email_account (char) : NEW | ||
payment_paypal / payment.provider / paypal_pdt_token (char) : NEW | ||
payment_paypal / payment.provider / paypal_seller_account (char) : NEW | ||
payment_paypal / payment.provider / paypal_use_ipn (boolean) : NEW hasdefault: default | ||
---XML records in module 'payment_paypal'--- | ||
DEL account.payment.method: payment_paypal.payment_method_paypal (noupdate) | ||
# DONE: post-migration (delete record) | ||
NEW ir.ui.view: payment_paypal.payment_provider_form | ||
DEL ir.ui.view: payment_paypal.payment_acquirer_form |