You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

104 lines
3.8 KiB

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_contract_document">
<t t-call="report.external_layout">
<div class="page">
<div class="oe_structure"/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
<h2>
<span >Contract # </span>
<span t-field="doc.name"/>
</h2>
<h3><div t-field="doc.employee_id" /></h3>
<h4 t-if="doc.job_id"><div t-field="doc.job_id"/></h4>
<br/><br/>
<div class="row">
<div t-if="doc.department_id" class="col-xs-3">
<h4>Department:</h4>
<h5><div t-field="doc.department_id"/></h5>
</div>
<div class="col-xs-3">
<h4>Contract Type:</h4>
<h5><div t-field="doc.type_id"/></h5>
</div>
<div class="col-xs-3">
<h4>Salary:</h4>
<h5><div t-field="doc.wage"/></h5>
</div>
<div class="col-xs-3">
<h4>Contract Duration:</h4>
<h5><div><span t-field="doc.date_start"/>-
<span t-field="doc.date_end"/>
</div></h5>
</div>
</div>
<br/><br/><br/>
<table class="table">
<tbody>
<tr t-if="doc.working_hours">
<th>Working Schedule</th>
<td><span t-field="doc.working_hours"/></td>
</tr>
<tr t-if="doc.schedule_pay">
<th>Scheduled Pay</th>
<td><span t-field="doc.schedule_pay"/></td>
</tr>
<tr t-if="doc.trial_date_start">
<th>Trial Period Duration</th>
<td><span t-field="doc.trial_date_start"/>-
<span t-field="doc.trial_date_end"/></td>
</tr>
<tr>
<th>Salary Structure</th>
<td><span t-field="doc.struct_id"/></td>
</tr>
<tr t-if="doc.employee_id.medic_exam">
<th>Medical Exam</th>
<td><span t-field="doc.employee_id.medic_exam"/></td>
</tr>
<tr t-if="doc.employee_id.vehicle">
<th>Company Vehicle</th>
<td><span t-field="doc.employee_id.vehicle"/></td>
</tr>
<tr t-if="doc.employee_id.vehicle_distance">
<th>Home-Work Dist.</th>
<td><span t-field="doc.employee_id.vehicle_distance"/></td>
</tr>
<tr t-if="doc.visa_no">
<th>Visa No</th>
<td><span t-field="doc.visa_no"/></td>
</tr>
<tr t-if="doc.permit_no">
<th>Work Permit No</th>
<td><span t-field="doc.permit_no"/></td>
</tr>
<tr t-if="doc.visa_expire">
<th>Visa Expire Date</th>
<td><span t-field="doc.visa_expire"/></td>
</tr>
</tbody>
</table>
<t t-if="doc.state in ['close']">
<h2><center>-----Expired----</center></h2>
</t>
<div class="oe_structure"/>
</div>
</t>
</template>
<template id="report_contract">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="employee_contract_report.report_contract_document" />
</t>
</t>
</template>
</data>
</openerp>