Skip to content

Commit

Permalink
Merge pull request #218 from Tecnativa/16.0-fix-loyalty_limit
Browse files Browse the repository at this point in the history
[16.0][FIX] loyalty_limit: In rename fields it is only necessary to pass "env"
  • Loading branch information
pedrobaeza authored Jul 9, 2024
2 parents 296a384 + 5f21357 commit 47431e1
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 47431e1

Please sign in to comment.