diff --git a/account_payment_order/migrations/9.0.1.0.0/pre-migration.py b/account_payment_order/migrations/9.0.1.0.0/pre-migration.py index e83a53b5d976..d60147bf0d2c 100644 --- a/account_payment_order/migrations/9.0.1.0.0/pre-migration.py +++ b/account_payment_order/migrations/9.0.1.0.0/pre-migration.py @@ -157,7 +157,7 @@ def populate_computed_fields(env): faster. """ cr = env.cr - openupgrade.add_fields(cr, [ + openupgrade.add_fields(env, [ ('company_currency_id', 'account.payment.order', 'account_payment_order', 'many2one', False, 'account_payment_order'), ('company_currency_id', 'account.payment.line', 'account_payment_line',