[IMP] base_comment_template: black, isort, prettier

This commit is contained in:
Pierre Verkest
2021-01-07 22:37:54 +01:00
committed by Jesús Alan Ramos Rodríguez
parent 7f1701cc45
commit fa2a677411
12 changed files with 74 additions and 71 deletions

View File

@@ -1,13 +0,0 @@
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
cr = env.cr
table = 'res_partner'
old_column = 'comment_template_id'
new_column = 'property_comment_template_id'
if openupgrade.column_exists(cr, table, old_column):
openupgrade.rename_columns(cr, {table: [(old_column, new_column)]})