Skip to content

Commit

Permalink
FIX l10n_it_account_stamp in migration --cr al posto di env in def mi…
Browse files Browse the repository at this point in the history
…grate
  • Loading branch information
jado95 committed Jan 30, 2025
1 parent 8e0cf50 commit d410f3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions l10n_it_account_stamp/migrations/18.0.1.0.0/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from openupgradelib import openupgrade

from odoo import SUPERUSER_ID

def _rename_fields(env):
openupgrade.rename_fields(
Expand Down Expand Up @@ -74,4 +75,5 @@ def _rename_fields(env):

@openupgrade.migrate()
def migrate(cr, version):
env = api.Environment(cr, SUPERUSER_ID, {})
_rename_fields(env)

0 comments on commit d410f3c

Please sign in to comment.