[FIX]: Fix months count in yearly salary details

bzr revid: atp@tinyerp.com-20140425073719-7nlk18wuoxx3s39o
This commit is contained in:
Atul Patel (OpenERP) 2014-04-25 13:07:19 +05:30
parent be912b1d46
commit 1fadb254d5
1 changed files with 4 additions and 4 deletions

View File

@ -3,9 +3,9 @@
<data>
<template id="report_hr_yearly_salary">
<t t-call="report.html_container">
<t t-call="report.external_layout">
<t t-foreach="get_employee(data['form'])" t-as="employee">
<t t-call="report.internal_layout">
<div class="page">
<t t-foreach="get_employee(data['form'])" t-as="employee">
<h2><span t-field="employee.company_id"/></h2>
<p> From
<u><span t-esc="formatLang(data['form']['date_from'], date=True)"/></u>
@ -72,12 +72,12 @@
</td>
</tr>
</table>
<span t-esc="get_employee_detail(data['form'], employee)"/>
<table class="table table-condensed">
<thead>
<tr>
<th>Title</th>
<t t-foreach="get_periods(data['form'])[0]" t-as="months">
<span t-esc="get_employee_detail(data['form'], employee)"/>
<th>
<t t-if="months">
<span t-esc="months"/>
@ -112,9 +112,9 @@
</tr>
</tr>
</table>
</t>
</div>
</t>
</t>
</t>
</template>
</data>