From 7533bb1d48e181c00c0b618339beafccbbb885e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Valyi?= Date: Mon, 2 Jun 2014 11:19:50 -0300 Subject: [PATCH 1/2] fleet nothing to do for xml_ids; todo message_last_post --- .../8.0.0.1/openupgrade_analysis_work.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 addons/fleet/migrations/8.0.0.1/openupgrade_analysis_work.txt diff --git a/addons/fleet/migrations/8.0.0.1/openupgrade_analysis_work.txt b/addons/fleet/migrations/8.0.0.1/openupgrade_analysis_work.txt new file mode 100644 index 000000000000..82170bc86d02 --- /dev/null +++ b/addons/fleet/migrations/8.0.0.1/openupgrade_analysis_work.txt @@ -0,0 +1,19 @@ +---Fields in module 'fleet'--- +fleet / fleet.vehicle / message_last_post (datetime) : NEW +#TODO with Sandy +---XML records in module 'fleet'--- +DEL ir.actions.act_window: fleet.action_fleet_vehicle_costs_graph +DEL ir.actions.act_window: fleet.action_fleet_vehicle_kanban +DEL ir.actions.act_window: fleet.action_fleet_vehicle_log_contract_graph +DEL ir.actions.act_window: fleet.action_fleet_vehicle_log_fuel_graph +DEL ir.actions.act_window: fleet.action_fleet_vehicle_log_services_graph +DEL ir.actions.act_window: fleet.open_board_fleet +DEL ir.ui.menu: fleet.menu_fleet_dashboard +NEW ir.ui.view: fleet.fleet_vehicle_cost_tree +NEW ir.ui.view: fleet.fleet_vehicle_costs_report +NEW ir.ui.view: fleet.fleet_vehicle_log_fuel_search +NEW ir.ui.view: fleet.fleet_vehicle_log_services_search +NEW ir.ui.view: fleet.fleet_vehicle_odometer_search +DEL ir.ui.view: fleet.board_fleet_form +DEL ir.ui.view: fleet.fleet_vehicle_costs_tree +### NOTHING TO DO From 57362963aa1f7915efadca85893a9132b637d81d Mon Sep 17 00:00:00 2001 From: Arthur Vuillard Date: Wed, 4 Jun 2014 01:26:46 +0200 Subject: [PATCH 2/2] update field message_last_post on fleet.vehicule on post_migration --- .../8.0.0.1/openupgrade_analysis_work.txt | 4 ++- .../migrations/8.0.0.1/post_migration.py | 33 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 addons/fleet/migrations/8.0.0.1/post_migration.py diff --git a/addons/fleet/migrations/8.0.0.1/openupgrade_analysis_work.txt b/addons/fleet/migrations/8.0.0.1/openupgrade_analysis_work.txt index 82170bc86d02..30061abbca0b 100644 --- a/addons/fleet/migrations/8.0.0.1/openupgrade_analysis_work.txt +++ b/addons/fleet/migrations/8.0.0.1/openupgrade_analysis_work.txt @@ -1,6 +1,8 @@ ---Fields in module 'fleet'--- + fleet / fleet.vehicle / message_last_post (datetime) : NEW -#TODO with Sandy +# initialized in post migration script + ---XML records in module 'fleet'--- DEL ir.actions.act_window: fleet.action_fleet_vehicle_costs_graph DEL ir.actions.act_window: fleet.action_fleet_vehicle_kanban diff --git a/addons/fleet/migrations/8.0.0.1/post_migration.py b/addons/fleet/migrations/8.0.0.1/post_migration.py new file mode 100644 index 000000000000..eb1ac8494147 --- /dev/null +++ b/addons/fleet/migrations/8.0.0.1/post_migration.py @@ -0,0 +1,33 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2014 Akretion +# (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +from openerp import pooler, SUPERUSER_ID +from openerp.openupgrade import openupgrade, openupgrade_80 + + +@openupgrade.migrate() +def migrate(cr, version): + pool = pooler.get_pool(cr.dbname) + uid = SUPERUSER_ID + openupgrade_80.set_message_last_post( + cr, uid, pool, ['fleet.vehicule'] + )