mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[FIX] account_statement_import: add model rename in migration
This commit is contained in:
committed by
Alexis de Lattre
parent
16bacb83c3
commit
56bed7eca0
@@ -0,0 +1,23 @@
|
||||
# Copyright 2022 ForgeFlow S.L. <https://www.forgeflow.com>
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
from openupgradelib import openupgrade
|
||||
|
||||
_model_renames = [
|
||||
(
|
||||
"account.bank.statement.import",
|
||||
"account.statement.import",
|
||||
),
|
||||
]
|
||||
|
||||
_table_renames = [
|
||||
(
|
||||
"account_bank_statement_import",
|
||||
"account_statement_import",
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(env, version):
|
||||
openupgrade.rename_models(env.cr, _model_renames)
|
||||
openupgrade.rename_tables(env.cr, _table_renames)
|
||||
Reference in New Issue
Block a user