-
-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2475 from Tecnativa/13.0-mass_mailing_crm
[13.0][ADD] mass_mailing_crm: Migration scripts
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
addons/mass_mailing_crm/migrations/13.0.1.0/openupgrade_analysis_work.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
---Models in module 'mass_mailing_crm'--- | ||
---Fields in module 'mass_mailing_crm'--- | ||
---XML records in module 'mass_mailing_crm'--- | ||
NEW ir.ui.view: mass_mailing_crm.mailing_mailing_view_form | ||
DEL ir.ui.view: mass_mailing_crm.mail_mass_mailing_view_form | ||
# DONE: pre-migration: rename XML-IDs for completion |
14 changes: 14 additions & 0 deletions
14
addons/mass_mailing_crm/migrations/13.0.1.0/pre-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright 2020 Tecnativa - Pedro M. Baeza | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
from openupgradelib import openupgrade | ||
|
||
|
||
_xmlid_renames = [ | ||
('mass_mailing_crm.mail_mass_mailing_view_form', | ||
'mass_mailing_crm.mailing_mailing_view_form'), | ||
] | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.rename_xmlids(env.cr, _xmlid_renames) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters