11 changed files with 215 additions and 0 deletions
@ -0,0 +1,26 @@ |
|||
============================ |
|||
Employee Contracts Report v9 |
|||
============================ |
|||
|
|||
This module allow user to print PDF report on contract form. |
|||
|
|||
Installation |
|||
============ |
|||
|
|||
Just select it from available modules to install it, there is no need to extra installations. |
|||
|
|||
Configuration |
|||
============= |
|||
|
|||
Nothing to configure. |
|||
|
|||
Features |
|||
======== |
|||
* Contracts Form/List View: Employee Contract button |
|||
|
|||
Credits |
|||
======= |
|||
Developer: Aswani pc @ cybrosys |
|||
Guidance: Nilmar Shereef @ cybrosys, shereef@cybrosys.in |
|||
|
|||
|
@ -0,0 +1,2 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
@ -0,0 +1,20 @@ |
|||
# -*- coding: utf-8 -*- |
|||
{ |
|||
'name': "Employee Contracts Report", |
|||
'summary': """Contract Report""", |
|||
'description': """This Module Gives PDF Report on Contract Form.""", |
|||
'category': 'Human Resources', |
|||
'version': '0.1', |
|||
'author': "Cybrosys Techno Solutions", |
|||
'company': "Cybrosys Techno Solutions", |
|||
'website': "http://www.cybrosys.com", |
|||
'depends': ['base', 'hr', 'hr_contract', 'hr_payroll', 'report'], |
|||
'data': [ |
|||
'views/contract_report.xml', |
|||
'views/report_contract.xml', |
|||
], |
|||
'images': ['static/description/banner.jpg'], |
|||
'license': 'AGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
} |
After Width: | Height: | Size: 139 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 8.6 KiB |
@ -0,0 +1,50 @@ |
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<h2 class="oe_slogan">Employee Contracts Report</h2> |
|||
<h4 class="oe_slogan">Cybrosys Technologies , www.cybrosys.com</h4> |
|||
<div class="oe_span12" style="text-align:center;"> |
|||
<p>This module allow to print PDF report on contract form.</p> |
|||
<p>It supports multiple selection of contract records.</p> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_span12 oe_row oe_spaced"> |
|||
<ul><li>The Employee Contract Report gives PDF report of contract details of employee:</li></ul> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img src="contract_report_9_1.png"> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark "> |
|||
<div class="oe_span12 oe_row oe_spaced"> |
|||
<ul><li>Employee Contract button on Employee Contract form/list view</li></ul> |
|||
<div class="oe_demo oe_screenshot" style="height:800px;display: block;max-width: 84%;margin: 16px 8%;"> |
|||
<img src="contract_report_9_2.png"> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2> |
|||
<div class="oe_slogan" style="margin-top:10px !important;"> |
|||
<a class="btn btn-primary btn-lg mt8" |
|||
style="color: #FFFFFF !important;" href="http://www.cybrosys.com"><i |
|||
class="fa fa-envelope"></i> Email </a> <a |
|||
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;" |
|||
href="http://www.cybrosys.com/contact/"><i |
|||
class="fa fa-phone"></i> Contact Us </a> <a |
|||
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;" |
|||
href="http://www.cybrosys.com/odoo-customization-and-installation/"><i |
|||
class="fa fa-check-square"></i> Request Customization </a> |
|||
</div> |
|||
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block"> |
|||
</section> |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
@ -0,0 +1,13 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<report |
|||
id="report_employee_contract" |
|||
string="Employee Contract" |
|||
model="hr.contract" |
|||
report_type="qweb-pdf" |
|||
file="employee_contract_report.report_contract" |
|||
name="employee_contract_report.report_contract" |
|||
/> |
|||
</data> |
|||
</openerp> |
@ -0,0 +1,104 @@ |
|||
<?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> |
Loading…
Reference in new issue