Skip to content

Commit

Permalink
migrazione
Browse files Browse the repository at this point in the history
  • Loading branch information
TennyMkt committed Dec 22, 2023
1 parent a655ee2 commit 6f592eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
12 changes: 2 additions & 10 deletions l10n_it_financial_statement_eu/hooks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'''
from openupgradelib import openupgrade
from openupgradelib.openupgrade import logged_query

Expand Down Expand Up @@ -36,10 +35,8 @@

RENAMED_FIELDS = [
(
"account.account.type",
"account_account_type",
"account_balance_report_section",
"financial_statements_report_section",
"balance_id",
"financial_statement_id",
),
]

Expand All @@ -61,10 +58,6 @@ def remove_models(cr, model_spec):


def migrate_old_module(cr):
remove_models(
cr,
REMOVED_MODELS,
)
openupgrade.rename_models(
cr,
RENAMED_MODELS,
Expand Down Expand Up @@ -102,4 +95,3 @@ def pre_absorb_old_module(cr):
merge_modules=True,
)
migrate_old_module(cr)
'''
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

from odoo.addons.l10n_it_financial_statements_eu import hooks


def migrate(cr, installed_version):
# Used by OpenUpgrade when module is in `apriori`
hooks.migrate_old_module(cr)

0 comments on commit 6f592eb

Please sign in to comment.