Skip to content

Commit

Permalink
[OU-ADD] payment_custom: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-filament committed Oct 18, 2024
1 parent 89fbfd5 commit 8ca37e9
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
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,9 @@
# 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", "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

0 comments on commit 8ca37e9

Please sign in to comment.