[IMP] payslip report template

This commit is contained in:
Lukas Ziegler 2022-01-18 15:28:54 +01:00
parent d7e84da29d
commit 9bc333cf4d

View File

@ -8,8 +8,8 @@
<h2 position="before"> <h2 position="before">
<div class="oe_structure row"> <div class="oe_structure row">
<div class="col-xs-8"/> <div class="col-8"/>
<div class="col-xs-4"> <div class="col-4">
<div t-field="o.employee_id.address_home_id" <div t-field="o.employee_id.address_home_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/>
</div> </div>
@ -20,7 +20,7 @@
<br/> <br/>
<br/> <br/>
<h2>Pay Slip <span t-field="o.date_from" t-field-options='{"format": "MMMM Y"}'/></h2> <h2>Pay Slip <span t-field="o.date_from" t-field-options='{"format": "MMMM Y"}'/></h2>
<div>Today date: <span t-esc="context_timestamp(datetime.datetime.now()).strftime('%d. %m. %Y')"/></div> <div>Today date: <span t-esc="context_timestamp(datetime.datetime.now()).strftime('%d.%m.%Y')"/></div>
<br/> <br/>
<br/> <br/>
</h2> </h2>
@ -79,8 +79,8 @@
<td class="text-right" <td class="text-right"
style="padding-top: 20px; padding-bottom: 20px; border: 0px;"> style="padding-top: 20px; padding-bottom: 20px; border: 0px;">
<b> <b>
<span t-esc="line.total" <span t-field="line.total"
t-esc-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/> t-field-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>
</b> </b>
</td> </td>
</tr> </tr>
@ -107,8 +107,8 @@
</td> </td>
<td style="border: 0px;" <td style="border: 0px;"
class="text-right"> class="text-right">
<span t-esc="line.total" <span t-field="line.total"
t-esc-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/> t-field-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>
</td> </td>
</tr> </tr>