mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] base_comment_template: Refactor code and convert to Many2Many
This commit is contained in:
12
base_comment_template/migrations/13.0.2.0.0/pre-migration.py
Normal file
12
base_comment_template/migrations/13.0.2.0.0/pre-migration.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# Copyright 2021 Tecnativa - Víctor Martínez
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
from openupgradelib import openupgrade # pylint: disable=W7936
|
||||
|
||||
field_renames = [
|
||||
("base.comment.template", "base_comment_template", "priority", "sequence"),
|
||||
]
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(env, version):
|
||||
openupgrade.rename_fields(env, field_renames)
|
||||
Reference in New Issue
Block a user