|
@ -8,6 +8,6 @@ from openupgradelib import openupgrade |
|
|
@openupgrade.migrate(use_env=True) |
|
|
@openupgrade.migrate(use_env=True) |
|
|
def migrate(env, version): |
|
|
def migrate(env, version): |
|
|
cr = env.cr |
|
|
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_tables(cr, [('sale_exception', 'exception_rule')]) |
|
|
openupgrade.rename_models(cr, [('sale.exception', 'exception.rule')]) |
|
|
openupgrade.rename_models(cr, [('sale.exception', 'exception.rule')]) |