Skip to content

Commit

Permalink
Merge pull request #4365 from Tecnativa/16.0-ou_add-auth_totp_mail
Browse files Browse the repository at this point in the history
[16.0][OU-ADD] auth_totp_mail: Migration scripts
  • Loading branch information
pedrobaeza authored Mar 31, 2024
2 parents 4a874c5 + def20ec commit f0e76f3
Show file tree
Hide file tree
Showing 2 changed files with 12 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 @@ -56,7 +56,7 @@ Module coverage 15.0 -> 16.0
+-------------------------------------------------+----------------------+-------------------------------------------------+
| auth_totp | Nothing to do |No DB layout changes. |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| auth_totp_mail | | |
| auth_totp_mail | Done | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| auth_totp_mail_enforce | |No DB layout changes. |
+-------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright 2024 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(env.cr, "auth_totp_mail", "16.0.1.0/noupdate_changes.xml")
openupgrade.delete_record_translations(
env.cr, "auth_totp_mail", ["mail_template_totp_invite"], ["name", "email_from"]
)

0 comments on commit f0e76f3

Please sign in to comment.