-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] Add migration script to rename module (#4)
- Loading branch information
Showing
17 changed files
with
39 additions
and
56 deletions.
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
l10n_it_vat_payability/migrations/14.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,23 @@ | ||
# Copyright 2020 Sergio Zanchetta <https://github.com/primes2h> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.update_module_names( | ||
env.cr, | ||
[ | ||
("l10n_it_esigibilita_iva", "l10n_it_vat_payability"), | ||
], | ||
) | ||
openupgrade.rename_xmlids( | ||
env.cr, | ||
[ | ||
( | ||
"l10n_it_vat_payability.view_tax_code_esigibilita_form", | ||
"l10n_it_vat_payability.view_tax_code_payability_form", | ||
), | ||
], | ||
) |
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
4 changes: 2 additions & 2 deletions
4
...it_esigibilita_iva/views/account_view.xml → ..._it_vat_payability/views/account_view.xml
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
1 change: 0 additions & 1 deletion
1
setup/l10n_it_esigibilita_iva/odoo/addons/l10n_it_esigibilita_iva
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
setup/l10n_it_vat_payability/odoo/addons/l10n_it_vat_payability
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 @@ | ||
../../../../l10n_it_vat_payability |
File renamed without changes.