-
-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OU-FIX] digest: Finish migration scripts
- load_data should be done on post, as the record may be deleted on 16, and then the new record creation will fail due to missing required fields. - We have to reset translations for the template that has changed to have the new definition for other languages than `en_US`.
- Loading branch information
1 parent
3c2d29a
commit d132a0d
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
openupgrade_scripts/scripts/digest/17.0.1.1/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,9 @@ | ||
# Copyright 2024 Tecnativa - Pedro M. Baeza | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.load_data(env, "digest", "17.0.1.1/noupdate_changes.xml") | ||
openupgrade.delete_record_translations(env.cr, "digest", ["digest_mail_layout"]) |
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