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

Co-Authored-By: Pedro M. Baeza <[email protected]>
  • Loading branch information
victoralmau and pedrobaeza committed Mar 7, 2024
1 parent 6356918 commit cf1ff0e
Show file tree
Hide file tree
Showing 3 changed files with 29 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,22 @@
# Copyright 2023 Tecnativa - Víctor Martínez
# Copyright 2024 Tecnativa - Pedro M. Baeza
# 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.load_data(
env.cr, "website_profile", "migrations/16.0.1.0/noupdate_changes.xml"
)
openupgrade.delete_record_translations(
env.cr,
"website_profile",
"validation_email",
["name", "description"],
)
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
# NOTHING TO DO: noupdate=0 handled by ORM

0 comments on commit cf1ff0e

Please sign in to comment.