Skip to content

Commit

Permalink
[MIG] fieldservice_skill: Add migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
brian10048 committed Oct 15, 2020
1 parent 9b56182 commit cc3ab5d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions fieldservice_skill/migrations/13.0.1.0.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (C) 2020 Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openupgradelib import openupgrade

_model_renames = [
("hr.skills", "hr.skill"),
]


@openupgrade.migrate()
def migrate(env, version):
openupgrade.rename_models(env.cr, _model_renames)

0 comments on commit cc3ab5d

Please sign in to comment.