Browse Source

[FIX] base_exception: Bad syntax (#1493)

pull/1498/head
Florent THOMAS 6 years ago
committed by Pedro M. Baeza
parent
commit
ee2e78d348
  1. 2
      base_exception/migrations/10.0.2.0.0/pre-migration.py

2
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')])
Loading…
Cancel
Save