[IMP] hr_attendance: made lines visible even if employee is absent for whole week

bzr revid: cha@tinyerp.com-20121030064707-m12g44n2i9q8eun0
This commit is contained in:
Ajay Chauhan (OpenERP) 2012-10-30 12:17:07 +05:30
parent 3894874ebb
commit 4f555e059f
2 changed files with 2 additions and 3 deletions

View File

@ -109,8 +109,7 @@ class report_custom(report_rml):
week_repr.append('<worked>%sh%02d</worked>' % to_hour(reduce(lambda x,y:x+y, week_wh.values(), 0)))
week_repr.append('</total>')
week_repr.append('</week>')
if len(week_repr) > 21: # 21 = minimal length of week_repr
week_xml.append('\n'.join(week_repr))
week_xml.append('\n'.join(week_repr))
monday, n_monday = n_monday, n_monday + one_week
user_xml.append(user_repr % '\n'.join(week_xml))

View File

@ -68,7 +68,7 @@
<td>Fri</td>
<td>Sat</td>
<td>Sun</td>
<td>Tot</td>
<td>Total</td>
</tr>
<xsl:for-each select="week">
<tr></tr>