Skip to content

Commit

Permalink
[OU-FIX] auth_signup: load noupdate_changes
Browse files Browse the repository at this point in the history
  • Loading branch information
marielejeune committed Jun 15, 2023
1 parent 518c324 commit 6e3879f
Show file tree
Hide file tree
Showing 2 changed files with 20 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 @@ -52,7 +52,7 @@ Module coverage 15.0 -> 16.0
+-------------------------------------------------+----------------------+-------------------------------------------------+
| auth_password_policy_signup | | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| auth_signup | Nothing to do | |
| auth_signup | Done | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| auth_totp | |No DB layout changes. |
+-------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
19 changes: 19 additions & 0 deletions openupgrade_scripts/scripts/auth_signup/16.0.1.0/post-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2023 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openupgradelib import openupgrade

_translations_to_delete = [
"mail_template_data_unregistered_users",
"mail_template_user_signup_account_created",
"reset_password_email",
"set_password_email",
]


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(env.cr, "auth_signup", "16.0.1.0/noupdate_changes.xml")
openupgrade.delete_record_translations(
env.cr, "auth_signup", _translations_to_delete
)

0 comments on commit 6e3879f

Please sign in to comment.