-
-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
account_analytic_no_lines: add migration script
- Loading branch information
1 parent
a7fa7b6
commit 473acc5
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
account_analytic_no_lines/migrations/14.0.1.0.0/pre-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,19 @@ | ||
# Copyright 2024 Akretion France (http://www.akretion.com/) | ||
# @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
if version and version <= "10.0.1.0.0": | ||
openupgrade.rename_xmlids( | ||
env.cr, | ||
[ | ||
( | ||
"account_analytic_no_lines.hide_analytic_entries", | ||
"account_analytic_no_lines.show_analytic_entries", | ||
) | ||
], | ||
) |