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
6 changes: 6 additions & 0 deletions addons/payment_paypal/migrations/9.0.1.0/noupdate_changes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="payment_acquirer_paypal" model="payment.acquirer">
<field name="image" type="base64" file="payment_paypal/static/description/icon.png"/>
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---Fields in module 'payment_paypal'---
payment_paypal / payment.transaction / paypal_txn_id (char) : DEL
# Simply stored the column in case of later need

---XML records in module 'payment_paypal'---
12 changes: 12 additions & 0 deletions addons/payment_paypal/migrations/9.0.1.0/post-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Tecnativa - Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(cr, version):
openupgrade.load_data(
cr, 'payment_paypal', 'migrations/9.0.1.0/noupdate_changes.xml',
)
15 changes: 15 additions & 0 deletions addons/payment_paypal/migrations/9.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Tecnativa - Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade

column_renames = {
'payment_transaction': [
('paypal_txn_id', None),
]}


@openupgrade.migrate()
def migrate(cr, version):
openupgrade.rename_columns(cr, column_renames)
2 changes: 1 addition & 1 deletion openerp/openupgrade/doc/source/modules80-90.rst
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ Status :
+-----------------------------------+-----------------------------------+
|payment_ogone | |
+-----------------------------------+-----------------------------------+
|payment_paypal | |
|payment_paypal | Done |
+-----------------------------------+-----------------------------------+
|payment_sips | |
+-----------------------------------+-----------------------------------+
Expand Down