[FIX] hr_holidays: display float for leaves remaining / leaves taken in holiday type name get

This commit is contained in:
Thibault Delavallée 2014-06-12 17:50:19 +02:00
parent 4a508885ac
commit 4e0559ef97
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class hr_holidays_status(osv.osv):
for record in self.browse(cr, uid, ids, context=context):
name = record.name
if not record.limit:
name = name + (' (%d/%d)' % (record.leaves_taken or 0.0, record.max_leaves or 0.0))
name = name + (' (%g/%g)' % (record.leaves_taken or 0.0, record.max_leaves or 0.0))
res.append((record.id, name))
return res