Skip to content

Commit

Permalink
fixup! [ADD] base migration
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Jan 13, 2025
1 parent 0d5d77a commit 64b5bb0
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 3 deletions.
3 changes: 2 additions & 1 deletion openupgrade_scripts/scripts/base/18.0.1.3/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def _convert_company_dependent(
Model = env[model_name]
Field = (
env["ir.model.fields"]._get(model_name, field_name)
if not old_field_id else env["ir.model.fields"].browse(old_field_id)
if not old_field_id
else env["ir.model.fields"].browse(old_field_id)
)
value_expression = value_expression or (
"value_%s"
Expand Down
2 changes: 0 additions & 2 deletions openupgrade_scripts/scripts/base/18.0.1.3/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

from openupgradelib import openupgrade

from odoo import tools

from odoo.addons.openupgrade_scripts.apriori import merged_modules, renamed_modules

_renamed_xmlids = [
Expand Down
Loading

0 comments on commit 64b5bb0

Please # to comment.