Skip to content

Commit

Permalink
[FIX] product_packaging_level: adjust rename hook to keep data
Browse files Browse the repository at this point in the history
  • Loading branch information
trisdoan committed Jan 22, 2025
1 parent c67fbc0 commit dc35fb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions product_packaging_level/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def pre_init_hook(cr):
# Former version of the module is present
models = [("product.packaging.type", "product.packaging.level")]
openupgrade.rename_models(env.cr, models)
tables = [("product_packaging_type", "product_packaging_level")]
openupgrade.rename_tables(env.cr, tables)

Check warning on line 15 in product_packaging_level/hooks.py

View check run for this annotation

Codecov / codecov/patch

product_packaging_level/hooks.py#L14-L15

Added lines #L14 - L15 were not covered by tests
fields = [
(
"product.packaging",
Expand Down

0 comments on commit dc35fb4

Please sign in to comment.