Browse Source
Merge pull request #1046 from Eficent/9.0-mig-mass_editing
[9.0][ADD] Migration scripts for mass_editing
pull/1054/head
Stefan Rijnhart (Opener)
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
39 additions and
0 deletions
-
mass_editing/migrations/9.0.1.0.0/openupgrade_analysis.txt
-
mass_editing/migrations/9.0.1.0.0/openupgrade_analysis_work.txt
-
mass_editing/migrations/9.0.1.0.0/pre-migration.py
|
|
@ -0,0 +1,8 @@ |
|
|
|
---Fields in module 'mass_editing'--- |
|
|
|
mass_editing / mass.object / model_ids (many2many) : DEL relation: ir.model |
|
|
|
mass_editing / mass.object / model_list (char) : NEW |
|
|
|
mass_editing / mass.object / ref_ir_act_window (many2one) : DEL relation: ir.actions.act_window |
|
|
|
mass_editing / mass.object / ref_ir_act_window_id (many2one): NEW relation: ir.actions.act_window |
|
|
|
mass_editing / mass.object / ref_ir_value (many2one) : DEL relation: ir.values |
|
|
|
mass_editing / mass.object / ref_ir_value_id (many2one) : NEW relation: ir.values |
|
|
|
---XML records in module 'mass_editing'--- |
|
|
@ -0,0 +1,14 @@ |
|
|
|
---Fields in module 'mass_editing'--- |
|
|
|
mass_editing / mass.object / model_ids (many2many) : DEL relation: ir.model |
|
|
|
mass_editing / mass.object / model_list (char) : NEW |
|
|
|
# NOTHING TO DO |
|
|
|
|
|
|
|
mass_editing / mass.object / ref_ir_act_window (many2one) : DEL relation: ir.actions.act_window |
|
|
|
mass_editing / mass.object / ref_ir_act_window_id (many2one): NEW relation: ir.actions.act_window |
|
|
|
# Done: pre-migration: Renamed fields. |
|
|
|
|
|
|
|
mass_editing / mass.object / ref_ir_value (many2one) : DEL relation: ir.values |
|
|
|
mass_editing / mass.object / ref_ir_value_id (many2one) : NEW relation: ir.values |
|
|
|
# Done: pre-migration: Renamed fields. |
|
|
|
|
|
|
|
---XML records in module 'mass_editing'--- |
|
|
@ -0,0 +1,17 @@ |
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
# Copyright 2017 Eficent <http://www.eficent.com> |
|
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
|
|
|
|
|
from openupgradelib import openupgrade |
|
|
|
|
|
|
|
|
|
|
|
_field_renames = [ |
|
|
|
('mass.object', 'mass_object', 'ref_ir_act_window', |
|
|
|
'ref_ir_act_window_id'), |
|
|
|
('mass.object', 'mass_object', 'ref_ir_value', 'ref_ir_value_id'), |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
@openupgrade.migrate(use_env=True) |
|
|
|
def migrate(env, version): |
|
|
|
openupgrade.rename_fields(env, _field_renames) |