Skip to content

Commit 388a418

Browse files
[MIG] payment_paypal
1 parent ace5606 commit 388a418

File tree

5 files changed

+55
-9
lines changed

5 files changed

+55
-9
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?xml version='1.0' encoding='utf-8'?>
22
<odoo>
33
<record id="payment.payment_acquirer_paypal" model="payment.acquirer">
4-
<field name="environment"/>
5-
<field name="image" type="base64" file="payment_paypal/static/src/img/paypal_icon.png"/>
6-
<field name="paypal_api_password"/>
7-
<field name="paypal_api_username"/>
8-
<field name="paypal_email_account"/>
9-
<field name="paypal_pdt_token"/>
10-
<field name="paypal_seller_account"/>
11-
<field name="pre_msg"/>
4+
<!-- <field name="environment"/>-->
5+
<!-- <field name="image" type="base64" file="payment_paypal/static/src/img/paypal_icon.png"/>-->
6+
<!-- <field name="paypal_api_password"/>-->
7+
<!-- <field name="paypal_api_username"/>-->
8+
<!-- <field name="paypal_email_account"/>-->
9+
<!-- <field name="paypal_pdt_token"/>-->
10+
<!-- <field name="paypal_seller_account"/>-->
11+
<!-- <field name="pre_msg"/>-->
1212
<field name="image_128" type="base64" file="payment_paypal/static/src/img/paypal_icon.png"/>
1313
</record>
1414
</odoo>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---Models in module 'payment_paypal'---
2+
---Fields in module 'payment_paypal'---
3+
payment_paypal / payment.acquirer / paypal_api_access_token (char): DEL
4+
payment_paypal / payment.acquirer / paypal_api_access_token_validity (datetime): DEL
5+
payment_paypal / payment.acquirer / paypal_api_enabled (boolean) : DEL
6+
payment_paypal / payment.acquirer / paypal_api_password (char) : DEL
7+
payment_paypal / payment.acquirer / paypal_api_username (char) : DEL
8+
# NOTHING TO DO: thee were deprecated fields
9+
10+
payment_paypal / payment.acquirer / provider (False) : selection_keys is now '['adyen', 'alipay', 'authorize', 'buckaroo', 'manual', 'ogone', 'paypal']' ('['adyen', 'authorize', 'buckaroo', 'manual', 'ogone', 'paypal']')
11+
# NOTHING TO DO: 'alipay' new option
12+
13+
---XML records in module 'payment_paypal'---
14+
NEW ir.ui.view: payment_paypal.mail_template_paypal_invite_user_to_configure
15+
# NOTHING TO DO
16+
17+
ir.ui.view: payment_paypal.paypal_form (noupdate) (noupdate switched)
18+
# DONE: pre-migration: handle noupdate switched
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright 2020 ForgeFlow <http://www.forgeflow.com>
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
from openupgradelib import openupgrade
4+
5+
6+
@openupgrade.migrate()
7+
def migrate(env, version):
8+
openupgrade.load_data(
9+
env.cr, "payment_paypal", "migrations/13.0.1.0/noupdate_changes.xml")
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2020 ForgeFlow <http://www.forgeflow.com>
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
from openupgradelib import openupgrade
4+
5+
6+
def switch_noupdate_records(env):
7+
openupgrade.set_xml_ids_noupdate_value(
8+
env,
9+
"payment_paypal",
10+
[
11+
"paypal_form",
12+
],
13+
True,
14+
)
15+
16+
17+
@openupgrade.migrate()
18+
def migrate(env, version):
19+
switch_noupdate_records(env)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ missing in the new release are marked with |del|.
473473
+----------------------------------------------+-------------------------------------------------+
474474
| |del| payment_ogone | |
475475
+----------------------------------------------+-------------------------------------------------+
476-
|payment_paypal | |
476+
|payment_paypal | Done |
477477
+----------------------------------------------+-------------------------------------------------+
478478
| |new| payment_payulatam | |
479479
+----------------------------------------------+-------------------------------------------------+

0 commit comments

Comments
 (0)