Skip to content

Commit

Permalink
account_analytic_no_lines: add migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via committed Apr 22, 2024
1 parent a7fa7b6 commit 473acc5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions account_analytic_no_lines/migrations/14.0.1.0.0/pre-migration.py
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",
)
],
)

0 comments on commit 473acc5

Please sign in to comment.