[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) <sig@openerp.com>
This commit is contained in:
Goffin Simon
2020-11-17 15:29:21 +00:00
parent bb42687206
commit 7a8786f697
+2 -2
View File
@@ -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)
"""