summaryrefslogtreecommitdiff
path: root/addons/fleet/fleet.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2014-10-01 19:18:14 +0200
committerChristophe Simonis <chs@odoo.com>2014-10-01 19:18:14 +0200
commit709c9868de7c4ac4985ed4e0055ae3e3e49742ad (patch)
treee90227a947bddf47b3043fcbe8b99529a22aa7dd /addons/fleet/fleet.py
parent85f26244a71a0b9a7faa283d6d24fdde6bae899a (diff)
parente8831932464814ed5f9e3a0af33f98891a466417 (diff)
[MERGE] forward port of branch 8.0 up to e883193
Diffstat (limited to 'addons/fleet/fleet.py')
-rw-r--r--addons/fleet/fleet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/fleet/fleet.py b/addons/fleet/fleet.py
index 9770207057a..6f62d114c0d 100644
--- a/addons/fleet/fleet.py
+++ b/addons/fleet/fleet.py
@@ -751,7 +751,7 @@ class fleet_vehicle_log_contract(osv.Model):
def on_change_indic_cost(self, cr, uid, ids, cost_ids, context=None):
totalsum = 0.0
for element in cost_ids:
- if element and len(element) == 3 and element[2]:
+ if element and len(element) == 3 and isinstance(element[2], dict):
totalsum += element[2].get('amount', 0.0)
return {
'value': {