From 7d2f7d6644a4f760783759a88587a25c313a32c8 Mon Sep 17 00:00:00 2001 From: Mourad EL HADJ MIMOUNE Date: Tue, 27 Nov 2018 15:09:23 +0100 Subject: [PATCH] [FIX] rename migration floder according to the new version --- .../migrations/10.0.2.0.0/pre-migration.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 base_exception/migrations/10.0.2.0.0/pre-migration.py 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 new file mode 100644 index 000000000..35600697f --- /dev/null +++ b/base_exception/migrations/10.0.2.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')])