diff --git a/oh_employee_check_list/README.md b/oh_employee_check_list/README.md new file mode 100644 index 000000000..b543570fc --- /dev/null +++ b/oh_employee_check_list/README.md @@ -0,0 +1,22 @@ +OH Employee Checklist +--------------------- +Supporting Addon for Open HRMS, Manages Employee's Entry & Exit Process + +Overview +-------- +A well functioning human resource department will lay down a number procedure and process before an employee during joining/resigning time. It may be submission/Return of a certificate or attending a conference etc. +A person has to undergo all these checklist items before being admitted/resigned. The module simplifies the process by providing you a checklist to mark the proceedings. It will also display the PercentPie of the checklist items completed. + +Connect with experts +-------------------- + +If you have any question/queries/additional works on OpenHRMS or this module, You can drop an email directly to Cybrosys. + +Contacts +-------- +info - info@cybrosys.com +Nilmar Shereef - shereef@cybrosys.in + +Website: +https://www.openhrms.com +https://www.cybrosys.com diff --git a/oh_employee_check_list/__init__.py b/oh_employee_check_list/__init__.py new file mode 100644 index 000000000..16dcf27c6 --- /dev/null +++ b/oh_employee_check_list/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +################################################################################### +# A part of OpenHRMS Project +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Nilmar Shereef () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +from . import models + diff --git a/oh_employee_check_list/__manifest__.py b/oh_employee_check_list/__manifest__.py new file mode 100644 index 000000000..7e4ebc818 --- /dev/null +++ b/oh_employee_check_list/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +################################################################################### +# A part of OpenHRMS Project +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Nilmar Shereef () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +{ + 'name': 'OHRMS Employee Checklist', + 'version': '10.0.1.0.0', + 'summary': """Manages Employee's Entry & Exit Process""", + 'description': """This module is a part of OH project, used to remembering the employee's entry and exit progress.""", + 'category': 'Generic Modules/Human Resources', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': "https://www.openhrms.com", + 'depends': ['base', 'oh_employee_documents_expiry'], + 'data': [ + 'security/ir.model.access.csv', + 'views/employee_form_inherit_view.xml', + 'views/settings_view.xml', + 'views/checklist_view.xml', + ], + 'demo': [], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/oh_employee_check_list/doc/RELEASE_NOTES.md b/oh_employee_check_list/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..7608da48e --- /dev/null +++ b/oh_employee_check_list/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module 'oh_employee_check_list' + +#### 30.03.2018 +#### Version 10.0.1.0.0 +##### ADD +- Initial commit for OpenHrms Project diff --git a/oh_employee_check_list/models/__init__.py b/oh_employee_check_list/models/__init__.py new file mode 100644 index 000000000..2c68740da --- /dev/null +++ b/oh_employee_check_list/models/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +################################################################################### +# A part of OpenHRMS Project +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Nilmar Shereef () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +from . import employee_master_inherit +from . import settings + + diff --git a/oh_employee_check_list/models/employee_master_inherit.py b/oh_employee_check_list/models/employee_master_inherit.py new file mode 100644 index 000000000..88d0f0cd0 --- /dev/null +++ b/oh_employee_check_list/models/employee_master_inherit.py @@ -0,0 +1,86 @@ +# -*- coding: utf-8 -*- +################################################################################### +# A part of OpenHRMS Project +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Nilmar Shereef () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +from odoo import models, fields, api + + +class EmployeeMasterInherit(models.Model): + _inherit = 'hr.employee' + + @api.depends('exit_checklist') + def exit_progress(self): + for each in self: + total_len = self.env['employee.checklist'].search_count([('document_type', '=', 'exit')]) + entry_len = len(each.exit_checklist) + if total_len != 0: + each.exit_progress = (entry_len * 100) / total_len + + @api.depends('entry_checklist') + def entry_progress(self): + for each in self: + total_len = self.env['employee.checklist'].search_count([('document_type', '=', 'entry')]) + entry_len = len(each.entry_checklist) + if total_len != 0: + each.entry_progress = (entry_len*100) / total_len + + entry_checklist = fields.Many2many('employee.checklist', 'entry_obj', 'check_hr_rel', 'hr_check_rel', + string='Entry Process', + domain=[('document_type', '=', 'entry')]) + exit_checklist = fields.Many2many('employee.checklist', 'exit_obj', 'exit_hr_rel', 'hr_exit_rel', + string='Exit Process', + domain=[('document_type', '=', 'exit')]) + entry_progress = fields.Float(compute=entry_progress, string='Entry Progress', store=True, default=0.0) + exit_progress = fields.Float(compute=exit_progress, string='Exit Progress', store=True, default=0.0) + maximum_rate = fields.Integer(default=100) + check_list_enable = fields.Boolean(invisible=True, copy=False) + + +class EmployeeDocumentInherit(models.Model): + _inherit = 'hr.employee.document' + + @api.model + def create(self, vals): + result = super(EmployeeDocumentInherit, self).create(vals) + if result.document_name.document_type == 'entry': + result.employee_ref.write({'entry_checklist': [(4, result.document_name.id)]}) + if result.document_name.document_type == 'exit': + result.employee_ref.write({'exit_checklist': [(4, result.document_name.id)]}) + return result + + @api.multi + def unlink(self): + for result in self: + if result.document_name.document_type == 'entry': + result.employee_ref.write({'entry_checklist': [(5, result.document_name.id)]}) + if result.document_name.document_type == 'exit': + result.employee_ref.write({'exit_checklist': [(5, result.document_name.id)]}) + res = super(EmployeeDocumentInherit, self).unlink() + return res + + +class EmployeeChecklistInherit(models.Model): + _inherit = 'employee.checklist' + + entry_obj = fields.Many2many('hr.employee', 'entry_checklist', 'hr_check_rel', 'check_hr_rel', + invisible=1) + exit_obj = fields.Many2many('hr.employee', 'exit_checklist', 'hr_exit_rel', 'exit_hr_rel', + invisible=1) diff --git a/oh_employee_check_list/models/settings.py b/oh_employee_check_list/models/settings.py new file mode 100644 index 000000000..308fca549 --- /dev/null +++ b/oh_employee_check_list/models/settings.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +################################################################################### +# A part of OpenHRMS Project +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Nilmar Shereef () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +from odoo import models, fields, api + + +class MenuThemes(models.Model): + _name = 'hr.settings' + _inherit = 'res.config.settings' + + enable_checklist = fields.Boolean(string='Enable Checklist Progress in Kanban?') + + @api.multi + def set_enable_checklist(self): + ir_values = self.env['ir.values'] + enable_checklist = self.enable_checklist + ir_values.set_default('hr.settings', 'enable_checklist', enable_checklist) + emp_obj = self.env['hr.employee'].sudo().search([]) + for each in emp_obj: + each.write({'check_list_enable': enable_checklist}) + diff --git a/oh_employee_check_list/security/ir.model.access.csv b/oh_employee_check_list/security/ir.model.access.csv new file mode 100644 index 000000000..05f0cf020 --- /dev/null +++ b/oh_employee_check_list/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink +access_hr.settings_manager,hr.settings.manager,model_hr_settings,hr.group_hr_manager,1,1,1,1 diff --git a/oh_employee_check_list/static/description/HRMS-BUTTON.png b/oh_employee_check_list/static/description/HRMS-BUTTON.png new file mode 100644 index 000000000..0f1b65bea Binary files /dev/null and b/oh_employee_check_list/static/description/HRMS-BUTTON.png differ diff --git a/oh_employee_check_list/static/description/banner.jpg b/oh_employee_check_list/static/description/banner.jpg new file mode 100644 index 000000000..d55e63353 Binary files /dev/null and b/oh_employee_check_list/static/description/banner.jpg differ diff --git a/oh_employee_check_list/static/description/cybro-service.png b/oh_employee_check_list/static/description/cybro-service.png new file mode 100644 index 000000000..0a648278c Binary files /dev/null and b/oh_employee_check_list/static/description/cybro-service.png differ diff --git a/oh_employee_check_list/static/description/cybro_logo.png b/oh_employee_check_list/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/oh_employee_check_list/static/description/cybro_logo.png differ diff --git a/oh_employee_check_list/static/description/icon.png b/oh_employee_check_list/static/description/icon.png new file mode 100644 index 000000000..0885ca68e Binary files /dev/null and b/oh_employee_check_list/static/description/icon.png differ diff --git a/oh_employee_check_list/static/description/index.html b/oh_employee_check_list/static/description/index.html new file mode 100644 index 000000000..0f808430e --- /dev/null +++ b/oh_employee_check_list/static/description/index.html @@ -0,0 +1,166 @@ +
+
+

OpenHRMS

+

Most advanced open source HR management software

+
+
+ +
+
+
+
+ + + + +
+
+
+
+ +
+
+

OHRMS Employee Exit/Entry Checklist

+

Manages Employees Entry & Exit Process

+

Cybrosys Technologies

+
+
+

Features:

+
+ Managing entry/exit process.
+ Automatic process on document attachments.
+ Option to enable Gauge widget for employee kanban.
+ Entry/Exit Percentpie in employee form view.
+ Entry Progressbar in employee tree view.
+
+
+
+ +
+
+
+

Overview

+

+A well functioning human resource department will lay down a number procedure and process before an employee during joining/resigning time. It may be submission/Return of a certificate or attending a conference etc. +A person has to undergo all these checklist items before being admitted/resigned. The module simplifies the process by providing you a checklist to mark the proceedings. It will also display the PercentPie of the checklist items completed. + +

+
+
+
+ +
+
+
+

+

Entry/Exit Checklist

+

+

+ + +
+
+ +
+
+
+

+

Employee From View With PercentPie

+

+
+
+
+ +
+
+
+
+ +
+
+
+

+

Employee Tree View With Progressbar

+

+
+
+
+ +
+
+
+
+ +
+
+
+

+

Employee Kanban View with Gauge

+

+
+
+
+ +
+
+
+
+ +
+
+
+

+

Configuration

+

+
+
+
+ +
+
+
+
+ +
+
+

Our Odoo Services

+
+
+
+ + + +
+
+
+ +
+

Need Any Help?

+ +
diff --git a/oh_employee_check_list/static/description/oh_employee_form.png b/oh_employee_check_list/static/description/oh_employee_form.png new file mode 100644 index 000000000..d2e9b8e6e Binary files /dev/null and b/oh_employee_check_list/static/description/oh_employee_form.png differ diff --git a/oh_employee_check_list/static/description/oh_entry_checklist.png b/oh_employee_check_list/static/description/oh_entry_checklist.png new file mode 100644 index 000000000..63f49d419 Binary files /dev/null and b/oh_employee_check_list/static/description/oh_entry_checklist.png differ diff --git a/oh_employee_check_list/static/description/oh_exit_chceklist.png b/oh_employee_check_list/static/description/oh_exit_chceklist.png new file mode 100644 index 000000000..c971cacc9 Binary files /dev/null and b/oh_employee_check_list/static/description/oh_exit_chceklist.png differ diff --git a/oh_employee_check_list/static/description/oh_kanban_Settings.png b/oh_employee_check_list/static/description/oh_kanban_Settings.png new file mode 100644 index 000000000..4eb07c0e1 Binary files /dev/null and b/oh_employee_check_list/static/description/oh_kanban_Settings.png differ diff --git a/oh_employee_check_list/static/description/oh_kanban_view.png b/oh_employee_check_list/static/description/oh_kanban_view.png new file mode 100644 index 000000000..55db3068c Binary files /dev/null and b/oh_employee_check_list/static/description/oh_kanban_view.png differ diff --git a/oh_employee_check_list/static/description/oh_tree_view.png b/oh_employee_check_list/static/description/oh_tree_view.png new file mode 100644 index 000000000..4910100e7 Binary files /dev/null and b/oh_employee_check_list/static/description/oh_tree_view.png differ diff --git a/oh_employee_check_list/views/checklist_view.xml b/oh_employee_check_list/views/checklist_view.xml new file mode 100644 index 000000000..42e0b1111 --- /dev/null +++ b/oh_employee_check_list/views/checklist_view.xml @@ -0,0 +1,37 @@ + + + + Entry Checklist + ir.actions.act_window + employee.checklist + form + tree,form + [('document_type', '=', 'entry')] + {"default_document_type":'entry'} + +

+ Click to create a New Entry Checklist +

+
+
+ + + Exit Checklist + ir.actions.act_window + employee.checklist + form + tree,form + [('document_type', '=', 'exit')] + {"default_document_type":'exit'} + +

+ Click to create a New Exit Checklist +

+
+
+ + + +
\ No newline at end of file diff --git a/oh_employee_check_list/views/employee_form_inherit_view.xml b/oh_employee_check_list/views/employee_form_inherit_view.xml new file mode 100644 index 000000000..45df184e2 --- /dev/null +++ b/oh_employee_check_list/views/employee_form_inherit_view.xml @@ -0,0 +1,62 @@ + + + + hr.employee.form.view + hr.employee + + + +
+ + +
+
+ + + + + + + + + + + + + +
+
+ + + hr.employee.tree.view + hr.employee + + + + + + + + + + hr.employee.kanban.view + hr.employee + + + + + + + + + +
  • + + Entry Progress + +
  • +
    +
    +
    +
    \ No newline at end of file diff --git a/oh_employee_check_list/views/settings_view.xml b/oh_employee_check_list/views/settings_view.xml new file mode 100644 index 000000000..c1417aecf --- /dev/null +++ b/oh_employee_check_list/views/settings_view.xml @@ -0,0 +1,37 @@ + + + + + hr.settings.form + hr.settings + +
    +
    +
    + + + + + +
    +
    + + + Hr Settings + hr.settings + form + inline + + + + + +
    +
    \ No newline at end of file