Skip to content

Commit

Permalink
FIX-l10n_it_account_stamp. Changed env to cr in arguments of def migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
jado95 committed Jan 30, 2025
1 parent 75f706f commit 10c9932
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


@openupgrade.migrate()
def migrate(env, version):
def migrate(cr, version):
openupgrade.load_data(
env.cr, "l10n_it_account_stamp", "18.0.1.0.0/noupdate_changes.xml"
)
Expand Down
4 changes: 3 additions & 1 deletion 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 @@ -73,5 +74,6 @@ def _rename_fields(env):


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

0 comments on commit 10c9932

Please sign in to comment.