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..30061abbca0b --- /dev/null +++ b/addons/fleet/migrations/8.0.0.1/openupgrade_analysis_work.txt @@ -0,0 +1,21 @@ +---Fields in module 'fleet'--- + +fleet / fleet.vehicle / message_last_post (datetime) : NEW +# 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 +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 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'] + )