[ADD]: Add the view file of the QWEB report
bzr revid: rsi@tinyerp.com-20140421095314-mq4o9qhi2efl5jai
This commit is contained in:
parent
a491127ab9
commit
7d72983357
|
@ -0,0 +1,75 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<template id="employee_salary_bymonth">
|
||||
<t t-call="report.html_container">
|
||||
<t t-call="report.internal_layout">
|
||||
<hr/>
|
||||
<div class="page">
|
||||
<h4 class="text-center" style="font-famaly:Helvetica;font-weight:bold;">Yearly Salary Details</h4>
|
||||
<div class="text-center">
|
||||
<h5 style="font-famaly:Helvetica;">From <u><span t-esc="formatLang(data['form']['start_date'], date=True)"/></u> To <u><span t-esc="formatLang(data['form']['end_date'], date=True)"/></u> of <u><span t-esc="data['form']['category_id'][1]"/></u> Category</h5>
|
||||
</div>
|
||||
<table class="table">
|
||||
<tr style="border-top:black solid 2px;border-bottom:black solid 2px;font-family:Helvetica;font-size:12;margin:0">
|
||||
<th class="text-left">Name</th>
|
||||
<t t-foreach="get_periods(data['form'])" t-as="m">
|
||||
<th class="text-right" t-esc="m[0]"/>
|
||||
<th class="text-right" t-esc="m[1]"/>
|
||||
<th class="text-right" t-esc="m[2]"/>
|
||||
<th class="text-right" t-esc="m[3]"/>
|
||||
<th class="text-right" t-esc="m[4]"/>
|
||||
<th class="text-right" t-esc="m[5]"/>
|
||||
<th class="text-right" t-esc="m[6]"/>
|
||||
<th class="text-right" t-esc="m[7]"/>
|
||||
<th class="text-right" t-esc="m[8]"/>
|
||||
<th class="text-right" t-esc="m[9]"/>
|
||||
<th class="text-right" t-esc="m[10]"/>
|
||||
<th class="text-right" t-esc="m[11]"/>
|
||||
</t>
|
||||
<th class="text-right">Total</th>
|
||||
</tr>
|
||||
<t t-foreach="get_employee(data['form'])" t-as="e">
|
||||
<tr style="font-family:Helvetica;font-size:9;margin:0">
|
||||
<td class="text-left" t-esc="e[0]"></td>
|
||||
<td class="text-right" t-esc="e[1]"></td>
|
||||
<td class="text-right" t-esc="e[2]"></td>
|
||||
<td class="text-right" t-esc="e[3]"></td>
|
||||
<td class="text-right" t-esc="e[4]"></td>
|
||||
<td class="text-right" t-esc="e[5]"></td>
|
||||
<td class="text-right" t-esc="e[6]"></td>
|
||||
<td class="text-right" t-esc="e[7]"></td>
|
||||
<td class="text-right" t-esc="e[8]"></td>
|
||||
<td class="text-right" t-esc="e[9]"></td>
|
||||
<td class="text-right" t-esc="e[10]"></td>
|
||||
<td class="text-right" t-esc="e[11]"></td>
|
||||
<td class="text-right" t-esc="e[12]"></td>
|
||||
<th class="text-right" t-esc="formatLang(e[13],currency_obj= company.currency_id)"></th>
|
||||
</tr>
|
||||
</t>
|
||||
<tr style="border-top:black solid 2px;font-family:Helvetica;font-size:12;margin:0">
|
||||
<t t-foreach="get_months_tol()" t-as="t">
|
||||
<th class="text-left"><font face="Helvetica" size="5.0"><t t-esc="t[0]"></t></font></th>
|
||||
<th class="text-right" t-esc="formatLang(t[1],currency_obj= company.currency_id)"></th>
|
||||
<th class="text-right" t-esc="formatLang(t[2],currency_obj= company.currency_id)"></th>
|
||||
<th class="text-right" t-esc="formatLang(t[3],currency_obj= company.currency_id)"></th>
|
||||
<th class="text-right" t-esc="formatLang(t[4],currency_obj= company.currency_id)"></th>
|
||||
<th class="text-right" t-esc="formatLang(t[5],currency_obj= company.currency_id)"></th>
|
||||
<th class="text-right" t-esc="formatLang(t[6],currency_obj= company.currency_id)"></th>
|
||||
<th class="text-right" t-esc="formatLang(t[7],currency_obj= company.currency_id)"></th>
|
||||
<th class="text-right" t-esc="formatLang(t[8],currency_obj= company.currency_id)"></th>
|
||||
<th class="text-right" t-esc="formatLang(t[9],currency_obj= company.currency_id)"></th>
|
||||
<th class="text-right" t-esc="formatLang(t[10],currency_obj= company.currency_id)"></th>
|
||||
<th class="text-right" t-esc="formatLang(t[11],currency_obj= company.currency_id)"></th>
|
||||
<th class="text-right" t-esc="formatLang(t[12],currency_obj= company.currency_id)"></th>
|
||||
|
||||
</t>
|
||||
<th class="text-right small" t-esc="formatLang(get_total(),currency_obj= company.currency_id)"></th>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
</data>
|
||||
</openerp>
|
Loading…
Reference in New Issue