From 5f21357afd30539d564ee0c5dba441cb73621d71 Mon Sep 17 00:00:00 2001 From: pilarvargas-tecnativa Date: Tue, 9 Jul 2024 16:40:34 +0200 Subject: [PATCH] [FIX] loyalty_limit: In rename fields it is only necessary to pass "env" --- loyalty_limit/migrations/16.0.1.0.0/pre-migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'