diff --git a/loyalty_limit/migrations/16.0.1.0.0/pre-migration.py b/loyalty_limit/migrations/16.0.1.0.0/pre-migration.py index 1ee7cf2c8..42a81f774 100644 --- a/loyalty_limit/migrations/16.0.1.0.0/pre-migration.py +++ b/loyalty_limit/migrations/16.0.1.0.0/pre-migration.py @@ -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'