Skip to content

Commit

Permalink
Merge pull request OCA#423 from OCA/10.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/server-tools (10.0)
  • Loading branch information
bt-admin authored Jan 30, 2019
2 parents 5285528 + 0824ef1 commit 679d76c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions base_exception/migrations/10.0.2.0.0/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
@openupgrade.migrate(use_env=True)
def migrate(env, version):
cr = env.cr
openupgrade.rename_tables(cr, [('sale_exception', 'exception_rule')])
openupgrade.rename_models(cr, [('sale.exception', 'exception.rule')])
if openupgrade.table_exists('sale_exception'):
openupgrade.rename_tables(cr, [('sale_exception', 'exception_rule')])
openupgrade.rename_models(cr, [('sale.exception', 'exception.rule')])

0 comments on commit 679d76c

Please sign in to comment.