Newer
Older
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<template id="report_timesheet_document">
<t t-call="web.external_layout">
<div class="page">
<h2>

Benjamin - Le Filament
committed
Feuille de Temps <t t-if="o.state == 'draft'"> - Brouillon</t>

Benjamin - Le Filament
committed
<h3>

Benjamin - Le Filament
committed
</h3>
<div id="informations" class="row mt32 mb32">
<div class="col-auto mw-100 mb-2" name="employee">
<strong>Employé</strong>
<p class="m-0" t-field="o.employee_id.name" />
<div class="col-auto mw-100 mb-2">

Benjamin - Le Filament
committed
<strong>Soumis le</strong>
<p class="m-0" t-field="o.submit_date" />
</div>
<div class="col-auto mw-100 mb-2" name="date_end">

Benjamin - Le Filament
committed
<strong>Validé le</strong>
<p class="m-0" t-field="o.validation_date" />

Benjamin - Le Filament
committed
</div>
<div class="col-auto mw-100 mb-2" name="date_end">
<strong>Total</strong>
<p
class="m-0"
t-field="o.total_hour"
t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"
/>
<table
class="table table-sm o_main_table"
name="invoice_line_table"
>
<thead>
<tr>
<th class="text-left"><span>Date</span></th>
<th class="text-left"><span>Code activité UR</span></th>
<th class="text-left"><span>Contact</span></th>
<th class="text-left"><span>Description</span></th>
<th class="text-left"><span
>Dispositif Financier</span></th>
<th class="text-left"><span>Durée</span></th>
</tr>
</thead>
<tbody class="invoice_tbody">
<t
t-foreach="o.timesheet_line_ids.sorted('date')"
t-as="line"
>
<td><span t-field="line.date" /></td>
<td><span t-field="line.project_id" /></td>
<td><span t-field="line.partner_id" /></td>
<td><span t-field="line.name" /></td>
<td><span
t-field="line.ur_financial_system_id"
/></td>
<td class="text-right"><span
t-field="line.unit_amount"
t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"
/></td>
<tr>
<td />
<td />
<td />

Benjamin - Le Filament
committed
<td />
<td class="text-right"><strong>Total</strong></td>
<td class="text-right"><strong
t-esc="o.total_hour"
t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"
/></td>
<div
t-if="o.state == 'draft'"
>Cette feuille de temps a été éditée en brouillon.</div>

Benjamin - Le Filament
committed
<div t-else="">
<table style="float: right;">
<tr>
<td
style="width: 300px; border-bottom: 1px solid #495057; text-align: center;"
>

Benjamin - Le Filament
committed
Visa salarié
</td>
<td
style="width: 300px; border-bottom: 1px solid #495057; text-align: center;"
>

Benjamin - Le Filament
committed
Visa direction
</td>
</tr>
<tr>
<td><br /><br /><br /></td>
<td><br /><br /><br /></td>

Benjamin - Le Filament
committed
</tr>
</table>
</div>
</div>
</t>
</template>

Benjamin - Le Filament
committed
<template id="report_timesheet_sheet">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="cgscop_timesheet.report_timesheet_document" />
</t>
</t>
</template>

Benjamin - Le Filament
committed
<!-- Paper format -->
<record id="cgscop_paperformat_a4_landscape" model="report.paperformat">
<field name="name">A4 Paysage</field>
<field name="default" eval="True" />

Benjamin - Le Filament
committed
<field name="format">A4</field>
<field name="orientation">Landscape</field>
<field name="margin_top">35</field>
<field name="margin_bottom">20</field>

Benjamin - Le Filament
committed
<field name="margin_left">10</field>
<field name="margin_right">10</field>
<field name="header_line" eval="False" />
<field name="header_spacing">30</field>

Benjamin - Le Filament
committed
<field name="dpi">90</field>
</record>
<record id="cgscop_timesheet_sheet_report" model="ir.actions.report">
<field name="name">CG Scop - Feuille de Temps</field>
<field name="model">cgscop.timesheet.sheet</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">cgscop_timesheet.report_timesheet_sheet</field>
<field name="report_file">cgscop_timesheet.report_timesheet_sheet</field>
<field name="paperformat_id" ref="cgscop_paperformat_a4_landscape" />