Skip to content

Commit

Permalink
[OU-ADD] payment_paypal: mig to 16.0 (#478)
Browse files Browse the repository at this point in the history
* [OU-ADD] payment_paypal: mig to 16.0

* Update openupgrade_scripts/scripts/payment_paypal/16.0.2.0/post-migration.py

---------

Co-authored-by: Roy Le <[email protected]>
  • Loading branch information
ngochuy97hp and royle-vietnam authored Jul 19, 2023
1 parent be8bf84 commit 9b7bab4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docsource/modules150-160.rst
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ Module coverage 15.0 -> 16.0
+-------------------------------------------------+----------------------+-------------------------------------------------+
| payment_ogone | | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| payment_paypal | | |
| payment_paypal |Done | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| payment_payulatam | | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(env.cr, "payment_paypal", "16.0.2.0/noupdate_changes.xml")
openupgrade.delete_records_safely_by_xml_id(
env,
[
"payment_paypal.payment_method_paypal",
],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---Models in module 'payment_paypal'---
---Fields in module 'payment_paypal'---
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', 'aps', 'asiapay', 'authorize', 'buckaroo', 'custom', 'demo', 'flutterwave', 'mercado_pago', 'mollie', 'none', 'paypal'], mode: modify
# NOTHING TO DO: field renaming is done at module payment

---XML records in module 'payment_paypal'---
DEL account.payment.method: payment_paypal.payment_method_paypal (noupdate)
# DONE: post-migration: safely remove

NEW ir.ui.view: payment_paypal.payment_provider_form
DEL ir.ui.view: payment_paypal.payment_acquirer_form
# NOTHING TO DO

DEL payment.acquirer: payment.payment_acquirer_paypal (noupdate)
# NOTHING TO DO: handled at module payment

0 comments on commit 9b7bab4

Please sign in to comment.