-
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MOV] assets_management: Rename to l10n_it_asset_management
- Loading branch information
1 parent
802110d
commit 7683a7c
Showing
76 changed files
with
6,455 additions
and
6,367 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
from . import models | ||
from . import report | ||
from . import wizard | ||
from .hooks import pre_absorb_old_module |
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
File renamed without changes.
File renamed without changes.
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,37 @@ | ||
# Copyright 2023 Simone Rubino - Aion Tech | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
NEW_MODULE_NAME = "l10n_it_asset_management" | ||
OLD_MODULE_NAME = "assets_management" | ||
|
||
RENAMED_MODELS = [ | ||
( | ||
"report.assets_management.report_asset_journal_xlsx", | ||
"report.l10n_it_asset_management.report_asset_journal_xlsx", | ||
), | ||
( | ||
"report.assets_management.report_asset_previsional_xlsx", | ||
"report.l10n_it_asset_management.report_asset_previsional_xlsx", | ||
), | ||
] | ||
|
||
|
||
def migrate_old_module(cr): | ||
openupgrade.rename_models( | ||
cr, | ||
RENAMED_MODELS, | ||
) | ||
|
||
|
||
def pre_absorb_old_module(cr): | ||
if openupgrade.is_module_installed(cr, OLD_MODULE_NAME): | ||
openupgrade.update_module_names( | ||
cr, | ||
[ | ||
(OLD_MODULE_NAME, NEW_MODULE_NAME), | ||
], | ||
merge_modules=True, | ||
) | ||
migrate_old_module(cr) | ||
3,072 changes: 3,072 additions & 0 deletions
3,072
l10n_it_asset_management/i18n/assets_management.pot
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
l10n_it_asset_management/migrations/16.0.1.0.0/pre-migrate.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,14 @@ | ||
# Copyright 2023 Simone Rubino - Aion Tech | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
# pylint: disable=odoo-addons-relative-import | ||
# because | ||
# from ... import hooks | ||
# raises | ||
# ImportError: attempted relative import with no known parent package | ||
from odoo.addons.l10n_it_asset_management import hooks | ||
|
||
|
||
def migrate(cr, installed_version): | ||
# Used by OpenUpgrade when module is in `apriori` | ||
hooks.migrate_old_module(cr) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
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
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
File renamed without changes.
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
Oops, something went wrong.