Skip to content

Commit

Permalink
[IMP] l10n_br_fiscal: add migrations to update field name
Browse files Browse the repository at this point in the history
  • Loading branch information
ygcarvalh committed Mar 28, 2023
1 parent 38d1423 commit eff976a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions l10n_br_fiscal/migrations/14.0.10.10.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2023 - Ygor Carvalho - KMEE
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade

_field_renames = [
(
"res.company",
"res_company",
"nfe_transmission",
"edoc_transmission",
),
]


@openupgrade.migrate(use_env=True)
def migrate(env, version):
openupgrade.rename_fields(env, _field_renames)

0 comments on commit eff976a

Please sign in to comment.