Skip to content

Commit 2471a96

Browse files
authored
Merge pull request #2383 from ForgeFlow/13.0-mig-payment_transfer-script
[13.0][MIG] payment_transfer
2 parents 7f3cd70 + e0f40d0 commit 2471a96

File tree

4 files changed

+33
-8
lines changed

4 files changed

+33
-8
lines changed
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
<?xml version='1.0' encoding='utf-8'?>
22
<odoo>
33
<record id="payment.payment_acquirer_transfer" model="payment.acquirer">
4-
<field name="environment"/>
5-
<field name="image" type="base64" file="payment_transfer/static/src/img/transfer_icon.png"/>
6-
<field name="pre_msg"/>
7-
<field name="website_published"/>
8-
<field name="image_128" type="base64" file="payment_transfer/static/src/img/transfer_icon.png"/>
9-
<field name="pending_msg"><![CDATA[
4+
<!-- <field name="environment"/>-->
5+
<!-- <field name="image" type="base64" file="payment_transfer/static/src/img/transfer_icon.png"/>-->
6+
<!-- <field name="pre_msg"/>-->
7+
<!-- <field name="website_published"/>-->
8+
<!-- <field name="pending_msg"><![CDATA[
109
<h3>Please make a payment to: </h3>
1110
<ul>
1211
<li>Bank:&nbsp;</li>
1312
<li>Account Number:</li>
1413
<li>Account Holder: </li>
1514
</ul>]]></field>
16-
<field name="state">enabled</field>
15+
<field name="state">enabled</field> -->
1716
</record>
1817
</odoo>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---Models in module 'payment_transfer'---
2+
---Fields in module 'payment_transfer'---
3+
payment_transfer / payment.acquirer / provider (False) : selection_keys is now '['adyen', 'alipay', 'authorize', 'buckaroo', 'manual', 'ogone', 'paypal', 'payulatam', 'payumoney', 'sips', 'stripe', 'test', 'transfer']' ('['adyen', 'authorize', 'buckaroo', 'manual', 'ogone', 'paypal', 'payumoney', 'sips', 'stripe', 'transfer']')
4+
# NOTHING TO DO: new option 'alipay'
5+
6+
---XML records in module 'payment_transfer'---
7+
ir.ui.view: payment_transfer.transfer_form (noupdate) (noupdate switched)
8+
# DONE: post-migration: handled noupdate switched, but after Odoo has updated to current valid definition
9+
10+
DEL payment.acquirer: payment.payment_acquirer_custom (noupdate)
11+
# NOTHING TO DO: Already tried to remove on payment
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2020 ForgeFlow <http://www.forgeflow.com>
2+
# Copyright 2020 Tecnativa - Pedro M. Baeza
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4+
from openupgradelib import openupgrade
5+
6+
7+
@openupgrade.migrate()
8+
def migrate(env, version):
9+
# We shouldn't load anything from noupdate_changes, as this may be changed
10+
# by users in v12 according their needs
11+
# openupgrade.load_data(
12+
# env.cr, "payment_transfer", "migrations/13.0.1.0/noupdate_changes.xml")
13+
openupgrade.set_xml_ids_noupdate_value(
14+
env, "payment_transfer", ["transfer_form"], True,
15+
)

odoo/openupgrade/doc/source/modules120-130.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ missing in the new release are marked with |del|.
487487
+----------------------------------------------+-------------------------------------------------+
488488
| |new| payment_test | |
489489
+----------------------------------------------+-------------------------------------------------+
490-
|payment_transfer | |
490+
|payment_transfer | Done |
491491
+----------------------------------------------+-------------------------------------------------+
492492
|phone_validation | Nothing to do |
493493
+----------------------------------------------+-------------------------------------------------+

0 commit comments

Comments
 (0)