-
-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
openupgrade_scripts/scripts/fleet/17.0.0.1/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,20 @@ | ||
# Copyright 2024 Tecnativa - Víctor Martínez | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.logged_query( | ||
env.cr, | ||
""" | ||
ALTER TABLE fleet_vehicle_model_brand | ||
ADD COLUMN IF NOT EXISTS active BOOLEAN | ||
""", | ||
) | ||
openupgrade.logged_query( | ||
env.cr, | ||
"""UPDATE fleet_vehicle_model_brand | ||
SET active = True | ||
""", | ||
) |
33 changes: 33 additions & 0 deletions
33
openupgrade_scripts/scripts/fleet/17.0.0.1/upgrade_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,33 @@ | ||
---Models in module 'fleet'--- | ||
---Fields in module 'fleet'--- | ||
fleet / fleet.vehicle / activity_user_id (many2one) : not related anymore | ||
fleet / fleet.vehicle / activity_user_id (many2one) : now a function | ||
fleet / fleet.vehicle / image_1024 (binary) : NEW attachment: True, isrelated: related, stored | ||
fleet / fleet.vehicle / image_128 (binary) : is now stored | ||
fleet / fleet.vehicle / image_1920 (binary) : NEW attachment: True | ||
fleet / fleet.vehicle / image_256 (binary) : NEW attachment: True, isrelated: related, stored | ||
fleet / fleet.vehicle / image_512 (binary) : NEW attachment: True, isrelated: related, stored | ||
fleet / fleet.vehicle / message_main_attachment_id (many2one): DEL relation: ir.attachment | ||
fleet / fleet.vehicle / order_date (date) : NEW | ||
fleet / fleet.vehicle / vehicle_properties (properties): NEW hasdefault: compute | ||
# NOTHING TO DO | ||
fleet / fleet.vehicle.log.contract / activity_user_id (many2one) : not related anymore | ||
fleet / fleet.vehicle.log.contract / activity_user_id (many2one) : now a function | ||
fleet / fleet.vehicle.log.contract / message_main_attachment_id (many2one): DEL relation: ir.attachment | ||
fleet / fleet.vehicle.log.services / activity_user_id (many2one) : not related anymore | ||
fleet / fleet.vehicle.log.services / activity_user_id (many2one) : now a function | ||
fleet / fleet.vehicle.log.services / message_main_attachment_id (many2one): DEL relation: ir.attachment | ||
# NOTHING TO DO | ||
fleet / fleet.vehicle.model / image_1024 (binary) : NEW attachment: True, isrelated: related, stored | ||
fleet / fleet.vehicle.model / image_128 (binary) : is now stored | ||
fleet / fleet.vehicle.model / image_1920 (binary) : NEW attachment: True | ||
fleet / fleet.vehicle.model / image_256 (binary) : NEW attachment: True, isrelated: related, stored | ||
fleet / fleet.vehicle.model / image_512 (binary) : NEW attachment: True, isrelated: related, stored | ||
fleet / fleet.vehicle.model / vehicle_properties_definition (properties_definition): NEW | ||
# NOTHING TO DO | ||
fleet / fleet.vehicle.model.brand / active (boolean) : NEW hasdefault: default | ||
# DONE: Create the column and set the default value in pre-migration | ||
---XML records in module 'fleet'--- | ||
NEW fleet.service.type: fleet.type_contract_leasing (noupdate) | ||
NEW fleet.service.type: fleet.type_contract_omnium (noupdate) | ||
NEW ir.ui.view: fleet.fleet_vechicle_costs_report_view_form |