Skip to content
Merged
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
12 changes: 6 additions & 6 deletions addons/payment_adyen/migrations/13.0.1.0/noupdate_changes.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="payment.payment_acquirer_adyen" model="payment.acquirer">
<field name="adyen_merchant_account"/>
<field name="adyen_skin_code"/>
<field name="adyen_skin_hmac_key"/>
<field name="environment"/>
<field name="image" type="base64" file="payment_adyen/static/src/img/adyen_icon.png"/>
<field name="pre_msg"/>
<!-- <field name="adyen_merchant_account"/>-->
<!-- <field name="adyen_skin_code"/>-->
<!-- <field name="adyen_skin_hmac_key"/>-->
<!-- <field name="environment"/>-->
<!-- <field name="image" type="base64" file="payment_adyen/static/src/img/adyen_icon.png"/>-->
<!-- <field name="pre_msg"/>-->
<field name="image_128" type="base64" file="payment_adyen/static/src/img/adyen_icon.png"/>
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---Models in module 'payment_adyen'---
---Fields in module 'payment_adyen'---
---XML records in module 'payment_adyen'---
ir.ui.view: payment_adyen.adyen_form (noupdate) (noupdate switched)
# DONE: pre-migration: handled noupdate switch
9 changes: 9 additions & 0 deletions addons/payment_adyen/migrations/13.0.1.0/post-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2020 ForgeFlow <http://www.forgeflow.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.cr, "payment_adyen", "migrations/13.0.1.0/noupdate_changes.xml")
19 changes: 19 additions & 0 deletions addons/payment_adyen/migrations/13.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2020 ForgeFlow <http://www.forgeflow.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade


def switch_noupdate_records(env):
openupgrade.set_xml_ids_noupdate_value(
env,
"payment_adyen",
[
"adyen_form",
],
True,
)


@openupgrade.migrate()
def migrate(env, version):
switch_noupdate_records(env)
2 changes: 1 addition & 1 deletion odoo/openupgrade/doc/source/modules120-130.rst
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ missing in the new release are marked with |del|.
+----------------------------------------------+-------------------------------------------------+
|payment | |
+----------------------------------------------+-------------------------------------------------+
|payment_adyen | |
|payment_adyen | Done |
+----------------------------------------------+-------------------------------------------------+
| |new| payment_alipay | |
+----------------------------------------------+-------------------------------------------------+
Expand Down