Skip to content

Commit

Permalink
[FIX] loyalty_limit: In rename fields it is only necessary to pass "env"
Browse files Browse the repository at this point in the history
  • Loading branch information
pilarvargas-tecnativa committed Jul 9, 2024
1 parent 296a384 commit 5f21357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loyalty_limit/migrations/16.0.1.0.0/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def migrate(env, version):
openupgrade.rename_tables(
env.cr, [("coupon_rule_salesmen_limit", "loyalty_salesmen_limit")]
)
openupgrade.rename_fields(env.cr, _field_renames)
openupgrade.rename_fields(env, _field_renames)
# Create the 'program_id' field if it does not exist in the 'loyalty_salesmen_limit'
# table and fill the 'program_id' field with values from 'loyalty_rule.program_id'
# where 'loyalty_rule.id' is equal to old field 'loyalty_salesmen_limit.rule_id'
Expand Down

0 comments on commit 5f21357

Please sign in to comment.