[IMP] base_comment_template: Refactor code and convert to Many2Many

This commit is contained in:
Víctor Martínez
2021-04-22 18:04:48 +02:00
parent 1d8e552b70
commit 19b7692ee8
10 changed files with 168 additions and 278 deletions

View 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)