[FIX]: Fix months count in yearly salary details
bzr revid: atp@tinyerp.com-20140425073719-7nlk18wuoxx3s39o
This commit is contained in:
parent
be912b1d46
commit
1fadb254d5
|
@ -3,9 +3,9 @@
|
||||||
<data>
|
<data>
|
||||||
<template id="report_hr_yearly_salary">
|
<template id="report_hr_yearly_salary">
|
||||||
<t t-call="report.html_container">
|
<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">
|
<div class="page">
|
||||||
<t t-foreach="get_employee(data['form'])" t-as="employee">
|
|
||||||
<h2><span t-field="employee.company_id"/></h2>
|
<h2><span t-field="employee.company_id"/></h2>
|
||||||
<p> From
|
<p> From
|
||||||
<u><span t-esc="formatLang(data['form']['date_from'], date=True)"/></u>
|
<u><span t-esc="formatLang(data['form']['date_from'], date=True)"/></u>
|
||||||
|
@ -72,12 +72,12 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<span t-esc="get_employee_detail(data['form'], employee)"/>
|
|
||||||
<table class="table table-condensed">
|
<table class="table table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Title</th>
|
<th>Title</th>
|
||||||
<t t-foreach="get_periods(data['form'])[0]" t-as="months">
|
<t t-foreach="get_periods(data['form'])[0]" t-as="months">
|
||||||
|
<span t-esc="get_employee_detail(data['form'], employee)"/>
|
||||||
<th>
|
<th>
|
||||||
<t t-if="months">
|
<t t-if="months">
|
||||||
<span t-esc="months"/>
|
<span t-esc="months"/>
|
||||||
|
@ -112,9 +112,9 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</t>
|
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
|
</t>
|
||||||
</t>
|
</t>
|
||||||
</template>
|
</template>
|
||||||
</data>
|
</data>
|
||||||
|
|
Loading…
Reference in New Issue