-
-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] l10n_it_riba: add slip and slip line states mig
- Loading branch information
1 parent
fc306e1
commit d94f567
Showing
3 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,9 +1,24 @@ | ||
# Copyright 2023 Simone Rubino - AionTech | ||
# Copyright 2024 Nextev Srl | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
from . import hooks | ||
|
||
|
||
def migrate(cr, installed_version): | ||
# Used by OpenUpgrade when module is in `apriori` | ||
hooks.migrate_old_module(cr) | ||
|
||
# copy old riba.distinta.line.state refs | ||
openupgrade.copy_columns( | ||
cr, | ||
{"riba_distinta_line": [("state", None, None)]}, | ||
) | ||
|
||
# copy old riba.distinta.state refs | ||
openupgrade.copy_columns( | ||
cr, | ||
{"riba_distinta": [("state", None, None)]}, | ||
) |
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 |
---|---|---|
|
@@ -3,5 +3,6 @@ asn1crypto | |
codicefiscale | ||
elementpath | ||
mock | ||
openupgradelib | ||
unidecode | ||
xmlschema |