From e13b46f1ace6ad0a11644fdd7e5f9fecc8166a83 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sun, 26 May 2019 02:17:54 +0200 Subject: [PATCH] [FIX] account_payment_order: cr > env --- account_payment_order/migrations/9.0.1.0.0/pre-migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e83a53b5d..d60147bf0 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',