Browse Source
Merge pull request #1091 from akretion/10-base_exception-mig
[10.0][IMP] base_exception: OpenUpgrade Script
pull/1441/head
Pedro M. Baeza
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
12 additions and
0 deletions
-
base_exception/migrations/10.0.1.0.0/pre-migration.py
|
|
@ -0,0 +1,12 @@ |
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
# © 2017 Akretion, Mourad EL HADJ MIMOUNE |
|
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|
|
|
|
|
|
|
from openupgradelib import openupgrade |
|
|
|
|
|
|
|
|
|
|
|
@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')]) |