[FIX] l10n_be_hr_payroll: Round the car value to 2 decimals in name_get

This commit is contained in:
Yannick Tivisse
2017-12-19 10:51:22 +01:00
parent 0b85adc691
commit 3694b02604
@@ -146,7 +146,7 @@ class FleetVehicleModel(models.Model):
for res_item in res:
model = self.browse(res_item[0])
if model.default_total_depreciated_cost != 0.0:
new_res.append((res_item[0], res_item[1] + u" \u2022 " + str(model.default_total_depreciated_cost)))
new_res.append((res_item[0], res_item[1] + u" \u2022 " + str(round(model.default_total_depreciated_cost, 2))))
else:
new_res.append(res_item)
return new_res