Skip to content

Commit

Permalink
[OU-ADD] website_profile: Migration to 16.0
Browse files Browse the repository at this point in the history
TT45247
  • Loading branch information
victoralmau committed Oct 18, 2023
1 parent fba2cde commit 4a80825
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docsource/modules150-160.rst
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ Module coverage 15.0 -> 16.0
+-------------------------------------------------+----------------------+-------------------------------------------------+
| |new| website_payment_paypal | | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| website_profile | | |
| website_profile | Done | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| website_sale | | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2023 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade

_translations_to_delete = [
"name",
"description",
]


@openupgrade.migrate()
def migrate(env, version):
openupgrade.delete_records_safely_by_xml_id(
env,
[
"website_profile.gamification_karma_rank_access_website_publisher",
],
)
openupgrade.load_data(
env.cr, "website_profile", "migrations/16.0.1.0/noupdate_changes.xml"
)
openupgrade.delete_record_translations(
env.cr, "website_profile", _translations_to_delete
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---Models in module 'website_profile'---
---Fields in module 'website_profile'---
---XML records in module 'website_profile'---
NEW ir.model.access: website_profile.gamification_karma_rank_access_restricted_editor
DEL ir.model.access: website_profile.gamification_karma_rank_access_website_publisher
# DONE: post-migration (delete record)

0 comments on commit 4a80825

Please sign in to comment.