-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
mgomezleon
wants to merge
5
commits into
OCA:17.0
Choose a base branch
from
sisinfo-odoo:17.0_ou_add_account_payment
base: 17.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7a985d3
[17.0][OU-ADD] account_payment: migrate to 17.0
ff0d68f
[OU-FIX] account_payment: add newline at end of file upgrade_analysis…
mgomezleon e70a700
[OU-FIX] account_payment: add double quotes
mgomezleon 550c6e3
[17.0][OU-ADD] account_payment: migrate to 17.0
b98e72a
Merge remote-tracking branch 'origin/17.0_ou_add_account_payment' int…
mgomezleon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
openupgrade_scripts/scripts/account_payment/17.0.2.0/post-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
15 changes: 15 additions & 0 deletions
15
openupgrade_scripts/scripts/account_payment/17.0.2.0/pre-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
), | ||
] | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.rename_xmlids(env.cr, _xmlid_renames) |
23 changes: 23 additions & 0 deletions
23
openupgrade_scripts/scripts/account_payment/17.0.2.0/upgrade_analysis_work.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?