[FIX] l10n_be_hr_payroll: Round the car value to 2 decimals in name_get
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user