From ee2e78d3487d12f18cd90ad2735e9fc5dd03eb69 Mon Sep 17 00:00:00 2001 From: Florent THOMAS Date: Wed, 30 Jan 2019 15:24:53 +0100 Subject: [PATCH] [FIX] base_exception: Bad syntax (#1493) --- base_exception/migrations/10.0.2.0.0/pre-migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_exception/migrations/10.0.2.0.0/pre-migration.py b/base_exception/migrations/10.0.2.0.0/pre-migration.py index 18b10bc00..49d013f4a 100644 --- a/base_exception/migrations/10.0.2.0.0/pre-migration.py +++ b/base_exception/migrations/10.0.2.0.0/pre-migration.py @@ -8,6 +8,6 @@ from openupgradelib import openupgrade @openupgrade.migrate(use_env=True) def migrate(env, version): cr = env.cr - if openupgrade.table_exists('sale_exception'): + if openupgrade.table_exists(cr, 'sale_exception'): openupgrade.rename_tables(cr, [('sale_exception', 'exception_rule')]) openupgrade.rename_models(cr, [('sale.exception', 'exception.rule')])