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

[17.0][OU-ADD] account_payment: Migrate to 17.0 #4650

Open
wants to merge 5 commits into
base: 17.0
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion docsource/modules160-170.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Module coverage 16.0 -> 17.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| account_lock | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| account_payment | | |
| account_payment | Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| |del| account_payment_invoice_online_payment_patch| |Merged into account_payment. |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from openupgradelib import openupgrade

_deleted_xml_records = ["account_payment.payment_transaction_billing_rule"]


@openupgrade.migrate()
def migrate(env, version):
openupgrade.delete_records_safely_by_xml_id(
env,
_deleted_xml_records,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from openupgradelib import openupgrade

_xmlid_renames = [
(
"account_payment_invoice_online_payment_patch.enable_portal_payment",
"account_payment.enable_portal_payment",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this already taken care of by the merge in apriori.py?

),
]


@openupgrade.migrate()
def migrate(env, version):
openupgrade.rename_xmlids(env.cr, _xmlid_renames)
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---Models in module 'account_payment'---
---Fields in module 'account_payment'---
---XML records in module 'account_payment'---
NEW ir.config_parameter: account_payment.enable_portal_payment [renamed from account_payment_invoice_online_payment_patch module] (noupdate)
DEL ir.config_parameter: account_payment_invoice_online_payment_patch.enable_portal_payment [renamed to account_payment module] (noupdate)
# DONE pre-migration rename XML-IDs

NEW ir.model.access: account_payment.payment_transaction_user [renamed from payment module]
# NOTHING TO DO

DEL ir.rule: account_payment.payment_transaction_billing_rule (noupdate)
# DONE: removed in post-migration

NEW ir.ui.menu: account_payment.payment_method_menu
DEL ir.ui.menu: account_payment.payment_icon_menu
NEW ir.ui.view: account_payment.res_config_settings_view_form
DEL ir.ui.view: account_payment.payment_checkout_inherit
DEL ir.ui.view: account_payment.payment_manage_inherit
DEL ir.ui.view: account_payment_invoice_online_payment_patch.portal_invoice_page_inherit_payment
DEL ir.ui.view: account_payment_invoice_online_payment_patch.portal_my_invoices_payment
DEL ir.ui.view: account_payment_invoice_online_payment_patch.res_config_settings_view_form
NEW onboarding.onboarding.step: account_payment.onboarding_onboarding_step_payment_provider (noupdate)
# NOTHING TO DO
Loading