Skip to content

Commit

Permalink
[ADD] patch Odoo to allow migration signature (env, version)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Jan 20, 2025
1 parent 1f84d5c commit b8c1ed5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions openupgradelib/openupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ def __exit__(self, exc_type, exc_value, traceback):
else:
import release

try:
from odoo.modules.migration import VALID_MIGRATE_PARAMS

# allow (env, version) signatures in migration methods
if ("env", "version") not in VALID_MIGRATE_PARAMS:
VALID_MIGRATE_PARAMS.append(("env", "version"))
except ImportError: # pylint: disable=except-pass
pass

Many2many = False
One2many = False
one2many = False
Expand Down

0 comments on commit b8c1ed5

Please sign in to comment.