Browse Source

[FIX] rename migration floder according to the new version

pull/1410/head
Mourad EL HADJ MIMOUNE 6 years ago
committed by David Beal
parent
commit
7d2f7d6644
  1. 12
      base_exception/migrations/10.0.2.0.0/pre-migration.py

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