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

[13.0][MIG] payment_transfer #2383

Merged
merged 2 commits into from
Nov 11, 2020
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
13 changes: 6 additions & 7 deletions addons/payment_transfer/migrations/13.0.1.0/noupdate_changes.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="payment.payment_acquirer_transfer" model="payment.acquirer">
<field name="environment"/>
<field name="image" type="base64" file="payment_transfer/static/src/img/transfer_icon.png"/>
<field name="pre_msg"/>
<field name="website_published"/>
<field name="image_128" type="base64" file="payment_transfer/static/src/img/transfer_icon.png"/>
<field name="pending_msg"><![CDATA[
<!-- <field name="environment"/>-->
<!-- <field name="image" type="base64" file="payment_transfer/static/src/img/transfer_icon.png"/>-->
<!-- <field name="pre_msg"/>-->
<!-- <field name="website_published"/>-->
<!-- <field name="pending_msg"><![CDATA[
<h3>Please make a payment to: </h3>
<ul>
<li>Bank:&nbsp;</li>
<li>Account Number:</li>
<li>Account Holder: </li>
</ul>]]></field>
<field name="state">enabled</field>
<field name="state">enabled</field> -->
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---Models in module 'payment_transfer'---
---Fields in module 'payment_transfer'---
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']')
# NOTHING TO DO: new option 'alipay'

---XML records in module 'payment_transfer'---
ir.ui.view: payment_transfer.transfer_form (noupdate) (noupdate switched)
# DONE: post-migration: handled noupdate switched, but after Odoo has updated to current valid definition

DEL payment.acquirer: payment.payment_acquirer_custom (noupdate)
# NOTHING TO DO: Already tried to remove on payment
15 changes: 15 additions & 0 deletions addons/payment_transfer/migrations/13.0.1.0/post-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2020 ForgeFlow <http://www.forgeflow.com>
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
# We shouldn't load anything from noupdate_changes, as this may be changed
# by users in v12 according their needs
# openupgrade.load_data(
# env.cr, "payment_transfer", "migrations/13.0.1.0/noupdate_changes.xml")
openupgrade.set_xml_ids_noupdate_value(
env, "payment_transfer", ["transfer_form"], True,
)
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 @@ -487,7 +487,7 @@ missing in the new release are marked with |del|.
+----------------------------------------------+-------------------------------------------------+
| |new| payment_test | |
+----------------------------------------------+-------------------------------------------------+
|payment_transfer | |
|payment_transfer | Done |
+----------------------------------------------+-------------------------------------------------+
|phone_validation | Nothing to do |
+----------------------------------------------+-------------------------------------------------+
Expand Down