Pierre Verkest
4 years ago
12 changed files with 74 additions and 71 deletions
-
8base_comment_template/README.rst
-
6base_comment_template/__manifest__.py
-
2base_comment_template/i18n/base_comment_template.pot
-
13base_comment_template/migrations/12.0.2.0.0/pre-migration.py
-
23base_comment_template/models/comment.py
-
6base_comment_template/models/res_partner.py
-
2base_comment_template/readme/CONTRIBUTORS.rst
-
1base_comment_template/readme/DESCRIPTION.rst
-
4base_comment_template/security/security.xml
-
18base_comment_template/tests/test_base_comment_template.py
-
25base_comment_template/views/comment_view.xml
-
5base_comment_template/views/res_partner.xml
@ -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)]}) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue