Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OU-ADD] payment_custom: Migration to 17.0 #4592

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docsource/modules160-170.rst
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ Module coverage 16.0 -> 17.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| payment_buckaroo | |No DB layout changes. |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| payment_custom | | |
| payment_custom | Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| payment_demo | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
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")
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"
)
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
Loading