oca-financial/odoo-bringout-oca-account-closing-account_cutoff_base/account_cutoff_base/migrations/16.0.1.0.0/pre-migration.py
Ernad Husremovic 048bcf5ec7 Move 28 account modules from oca-technical to existing oca-financial submodule
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 17:49:03 +02:00

21 lines
621 B
Python

# Copyright 2023 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
if not openupgrade.column_exists(env.cr, "account_cutoff", "move_ref"):
openupgrade.rename_fields(
env,
[
(
"account.cutoff",
"account_cutoff",
"move_label",
"move_ref",
),
],
)