Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions addons/fleet/migrations/8.0.0.1/openupgrade_analysis_work.txt
Original file line number Diff line number Diff line change
@@ -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
33 changes: 33 additions & 0 deletions addons/fleet/migrations/8.0.0.1/post_migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2014 Akretion
# (<http://www.akretion.com>).
#
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################

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']
)