From 7a8786f69751cdd854a8b00df4f8ae8a39c5a22d Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 17 Nov 2020 09:53:29 +0000 Subject: [PATCH] [FIX] fleet: Impossible to upgrade fleet With PostgreSQL version 9.6, it was impossible to install the module fleet A traceback was raised saying: could not determine which collation to use for view column "cost_type" closes odoo/odoo#61850 X-original-commit: d652dbb9655d98b4121ac685e6444bbf7e303292 Signed-off-by: Simon Goffin (sig) --- addons/fleet/report/fleet_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/fleet/report/fleet_report.py b/addons/fleet/report/fleet_report.py index ddd3605ca39..0b02c05e5df 100644 --- a/addons/fleet/report/fleet_report.py +++ b/addons/fleet/report/fleet_report.py @@ -111,7 +111,7 @@ SELECT fuel_type, date_start, COST, - cost_type + 'service' as cost_type FROM service_costs sc UNION ALL ( @@ -124,7 +124,7 @@ UNION ALL ( fuel_type, date_start, COST, - cost_type + 'contract' as cost_type FROM contract_costs cc) """