15 changed files with 472 additions and 0 deletions
@ -0,0 +1,26 @@ |
|||
Employee Documents |
|||
------------------ |
|||
Supporting Addon for HR, Manages Employee Related Documents |
|||
|
|||
Overview |
|||
-------- |
|||
Each and every detail associated with an employee is useful for any organization for better Human resource management. |
|||
So the employee documents with such necessary information must be saved and used accordingly. |
|||
'Employee Documents' is a useful tool that can help you to store and manage the employee related |
|||
documents like certificates, appraisal reports, passport, license etc. |
|||
The application also allows you to set an alert message on reaching the expiration/any other |
|||
related dates of a document (like an expiration of passport) |
|||
|
|||
Connect with experts |
|||
-------------------- |
|||
|
|||
If you have any question/queries/additional works on this module, You can drop an email directly to Cybrosys. |
|||
|
|||
Contacts |
|||
-------- |
|||
|
|||
info - info@cybrosys.com |
|||
Cybrosys Odoo - odoo@cybrosys.com |
|||
Nilmar Shereef - shereef@cybrosys.in |
|||
Jesni Banu - jesni@cybrosys.in |
|||
|
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |
|||
# Author: Nilmar Shereef(<https://www.cybrosys.com>) |
|||
# you can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# It is forbidden to publish, distribute, sublicense, or sell copies |
|||
# of the Software or modified copies of the Software. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
import models |
@ -0,0 +1,45 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |
|||
# Author: Nilmar Shereef(<https://www.cybrosys.com>) |
|||
# you can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# It is forbidden to publish, distribute, sublicense, or sell copies |
|||
# of the Software or modified copies of the Software. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
{ |
|||
'name': 'Employee Documents', |
|||
'version': '10.0.1.0', |
|||
'summary': """Manages Employee's Entry & Exit Documents""", |
|||
'description': """This module is used to remembering the employee's entry and exit progress.""", |
|||
'category': 'Human Resources', |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': "https://www.cybrosys.com", |
|||
'depends': ['base', 'hr'], |
|||
'data': [ |
|||
'security/ir.model.access.csv', |
|||
'views/employee_check_list_view.xml', |
|||
'views/employee_document_view.xml', |
|||
], |
|||
'demo': ['data/data.xml'], |
|||
'images': ['static/description/banner.jpg'], |
|||
'license': 'AGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': False, |
|||
} |
@ -0,0 +1,23 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<record id="entry_document1" model="employee.checklist"> |
|||
<field name="name">Education Certificate</field> |
|||
<field name="document_type">entry</field> |
|||
</record> |
|||
<record id="entry_document2" model="employee.checklist"> |
|||
<field name="name">Salary Certificate</field> |
|||
<field name="document_type">entry</field> |
|||
</record> |
|||
<record id="entry_document3" model="employee.checklist"> |
|||
<field name="name">Experience Certificate</field> |
|||
<field name="document_type">entry</field> |
|||
</record> |
|||
<record id="exit_document1" model="employee.checklist"> |
|||
<field name="name">Experience Certificate</field> |
|||
<field name="document_type">exit</field> |
|||
</record> |
|||
<record id="exit_document2" model="employee.checklist"> |
|||
<field name="name">Salary Certificate</field> |
|||
<field name="document_type">exit</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,24 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |
|||
# Author: Nilmar Shereef(<https://www.cybrosys.com>) |
|||
# you can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# It is forbidden to publish, distribute, sublicense, or sell copies |
|||
# of the Software or modified copies of the Software. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
import employee_documents |
|||
import employee_entry_exit_check_list |
@ -0,0 +1,95 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |
|||
# Author: Nilmar Shereef(<http://www.cybrosys.com>) |
|||
# you can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# It is forbidden to publish, distribute, sublicense, or sell copies |
|||
# of the Software or modified copies of the Software. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
from datetime import datetime, timedelta |
|||
from odoo import models, fields, api, _ |
|||
|
|||
|
|||
class HrEmployeeDocument(models.Model): |
|||
_name = 'hr.employee.document' |
|||
_description = 'HR Employee Documents' |
|||
|
|||
def mail_reminder(self): |
|||
now = datetime.now() + timedelta(days=1) |
|||
date_now = now.date() |
|||
match = self.search([]) |
|||
for i in match: |
|||
if i.expiry_date: |
|||
exp_date = fields.Date.from_string(i.expiry_date) - timedelta(days=7) |
|||
if date_now >= exp_date: |
|||
mail_content = " Hello " + i.employee_ref.name + ",<br>Your Document " + i.name + "is going to expire on " + \ |
|||
str(i.expiry_date) + ". Please renew it before expiry date" |
|||
main_content = { |
|||
'subject': _('Document-%s Expired On %s') % (i.name, i.expiry_date), |
|||
'author_id': self.env.user.partner_id.id, |
|||
'body_html': mail_content, |
|||
'email_to': i.employee_ref.work_email, |
|||
} |
|||
self.env['mail.mail'].create(main_content).send() |
|||
|
|||
name = fields.Char(string='Document Number', required=True, copy=False) |
|||
document_name = fields.Many2one('employee.checklist', string='Document', required=True) |
|||
description = fields.Text(string='Description', copy=False) |
|||
expiry_date = fields.Date(string='Expiry Date', copy=False) |
|||
employee_ref = fields.Many2one('hr.employee', invisible=1, copy=False) |
|||
doc_attachment_id = fields.Many2many('ir.attachment', 'doc_attach_rel', 'doc_id', 'attach_id3', string="Attachment", |
|||
help='You can attach the copy of your document', copy=False) |
|||
issue_date = fields.Date(string='Issue Date', default=fields.datetime.now(), copy=False) |
|||
|
|||
|
|||
class HrEmployee(models.Model): |
|||
_inherit = 'hr.employee' |
|||
|
|||
@api.multi |
|||
def _document_count(self): |
|||
for each in self: |
|||
document_ids = self.env['hr.employee.document'].search([('employee_ref', '=', each.id)]) |
|||
each.document_count = len(document_ids) |
|||
|
|||
@api.multi |
|||
def document_view(self): |
|||
self.ensure_one() |
|||
domain = [ |
|||
('employee_ref', '=', self.id)] |
|||
return { |
|||
'name': _('Documents'), |
|||
'domain': domain, |
|||
'res_model': 'hr.employee.document', |
|||
'type': 'ir.actions.act_window', |
|||
'view_id': False, |
|||
'view_mode': 'tree,form', |
|||
'view_type': 'form', |
|||
'help': _('''<p class="oe_view_nocontent_create"> |
|||
Click to Create for New Documents |
|||
</p>'''), |
|||
'limit': 80, |
|||
'context': "{'default_employee_ref': '%s'}" % self.id |
|||
} |
|||
|
|||
document_count = fields.Integer(compute='_document_count', string='# Documents') |
|||
|
|||
|
|||
class HrEmployeeAttachment(models.Model): |
|||
_inherit = 'ir.attachment' |
|||
|
|||
doc_attach_rel = fields.Many2many('hr.employee.document', 'doc_attachment_id', 'attach_id3', 'doc_id', |
|||
string="Attachment", invisible=1) |
@ -0,0 +1,34 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |
|||
# Author: Nilmar Shereef(<https://www.cybrosys.com>) |
|||
# you can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# It is forbidden to publish, distribute, sublicense, or sell copies |
|||
# of the Software or modified copies of the Software. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
from odoo import models, fields |
|||
|
|||
|
|||
class EmployeeEntryDocuments(models.Model): |
|||
_name = 'employee.checklist' |
|||
_inherit = ['mail.thread', 'ir.needaction_mixin'] |
|||
_description = "Employee Documents" |
|||
|
|||
name = fields.Char(string='Document Name', copy=False, required=1) |
|||
document_type = fields.Selection([('entry', 'Entry Documents'), |
|||
('exit', 'Exit Documents'), |
|||
('other', 'Other')], string='Checklist Type', required=1) |
|
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 76 KiB |
@ -0,0 +1,97 @@ |
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<h2 class="oe_slogan">Employee Documents</h2> |
|||
<h3 class="oe_slogan">Manages Employee Related Documents</h3> |
|||
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a> </h4> |
|||
</div> |
|||
<div class="oe_row oe_spaced" style="padding-left:65px;"> |
|||
<h4>Features:</h4> |
|||
<div> |
|||
<span style="color:green;"> ☑ </span> Managing Documents of Employees.<br/> |
|||
<span style="color:green;"> ☑ </span> Expiry Date for Documents.<br/> |
|||
<span style="color:green;"> ☑ </span> Mail Notification Based on Expiry Date.<br/> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_picture"> |
|||
<h3 class="oe_slogan">Overview</h3> |
|||
<p class="oe_mt32" style="text-align: center;"> |
|||
Each and every detail associated with an employee is useful for any organization for better Human resource management. |
|||
So the employee documents with such necessary information must be saved and used accordingly. |
|||
'Employee Documents' is a useful tool that can help you to store and manage the employee related |
|||
documents like certificates, appraisal reports, passport, license etc. |
|||
The application also allows you to set an alert message on reaching the expiration/any other |
|||
related dates of a document (like an expiration of passport) |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div style="text-align: center"> |
|||
<p> |
|||
<h4>Documents Super Button</h4> |
|||
<p> |
|||
</div> |
|||
<div style="text-align: center"> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img style="border:10px solid white;height: 400px;" src="employee_form.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<h3 class="oe_slogan">Documents Form</h3> |
|||
<div style="text-align: center"> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img style="border:10px solid white;height: 400px;" src="document_form.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<h3 class="oe_slogan">Notification Mail for Expiry Doc</h3> |
|||
<div style="text-align: center"> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img style="border:10px solid white;height: 400px;" src="email.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2> |
|||
<div class="oe_slogan" style="margin-top:10px !important;"> |
|||
<div> |
|||
<a class="btn btn-primary btn-lg mt8" |
|||
style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i |
|||
class="fa fa-envelope"></i> Email </a> <a |
|||
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" |
|||
href="https://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;border-radius: 0;" |
|||
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i |
|||
class="fa fa-check-square"></i> Request Customization </a> |
|||
</div> |
|||
<br> |
|||
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block"> |
|||
<div> |
|||
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td> |
|||
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td> |
|||
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td> |
|||
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td> |
|||
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
|
|||
|
@ -0,0 +1,32 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<record model='ir.ui.view' id='employee_check_list_form_view'> |
|||
<field name="name">employee.checklist.form</field> |
|||
<field name="model">employee.checklist</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Checklist"> |
|||
<sheet> |
|||
<group> |
|||
<field name="name"/> |
|||
<field name="document_type"/> |
|||
</group> |
|||
</sheet> |
|||
<div class="oe_chatter"> |
|||
<field name="message_follower_ids" widget="mail_followers"/> |
|||
<field name="message_ids" widget="mail_thread"/> |
|||
</div> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model='ir.ui.view' id='employee_check_list_tree_view'> |
|||
<field name="name">employee.checklist.tree</field> |
|||
<field name="model">employee.checklist</field> |
|||
<field name="arch" type="xml"> |
|||
<tree> |
|||
<field name="name"/> |
|||
<field name="document_type"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,66 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<record model="ir.cron" id="employee_data_reminder"> |
|||
<field name="name">HR Employee Data Expiration</field> |
|||
<field name="interval_number">1</field> |
|||
<field name="interval_type">days</field> |
|||
<field name="numbercall">-1</field> |
|||
<field name="doall" eval="False"/> |
|||
<field name="model" eval="'hr.employee.document'"/> |
|||
<field name="function" eval="'mail_reminder'"/> |
|||
<field name="args" eval="'()'" /> |
|||
</record> |
|||
|
|||
<record model='ir.ui.view' id='employee_document_form_view'> |
|||
<field name="name">hr.employee.document.form</field> |
|||
<field name="model">hr.employee.document</field> |
|||
<field name="arch" type="xml"> |
|||
<form> |
|||
<sheet> |
|||
<group> |
|||
<group> |
|||
<field name="name"/> |
|||
<field name="document_name"/> |
|||
<field name="doc_attachment_id" widget="many2many_binary" class="oe_inline"/> |
|||
<field name="employee_ref" invisible="1"/> |
|||
</group> |
|||
<group> |
|||
<field name="issue_date"/> |
|||
<field name="expiry_date"/> |
|||
</group> |
|||
</group> |
|||
<notebook> |
|||
<page string="Description"> |
|||
<field name="description"/> |
|||
</page> |
|||
</notebook> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model='ir.ui.view' id='employee_document_tree_view'> |
|||
<field name="name">hr.employee.document.tree</field> |
|||
<field name="model">hr.employee.document</field> |
|||
<field name="arch" type="xml"> |
|||
<tree> |
|||
<field name="name"/> |
|||
<field name="issue_date"/> |
|||
<field name="expiry_date"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.ui.view" id="hr_employee_document_inherit_form_view"> |
|||
<field name="name">hr.employee.form.view</field> |
|||
<field name="model">hr.employee</field> |
|||
<field name="inherit_id" ref="hr.view_employee_form"/> |
|||
<field name="arch" type="xml"> |
|||
<div class="oe_button_box" position="inside"> |
|||
<button class="oe_stat_button" name="document_view" type="object" icon="fa-list-ol"> |
|||
<field string="Documents" name="document_count" widget="statinfo"/> |
|||
</button> |
|||
</div> |
|||
</field> |
|||
</record> |
|||
</odoo> |
Loading…
Reference in new issue