diff --git a/employee_check_list/__init__.py b/employee_check_list/__init__.py new file mode 100644 index 000000000..8a2a8ef9b --- /dev/null +++ b/employee_check_list/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Niyas Raphy () +# +# 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/employee_check_list/__manifest__.py b/employee_check_list/__manifest__.py new file mode 100644 index 000000000..6eb624cb2 --- /dev/null +++ b/employee_check_list/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Niyas Raphy () +# +# 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': 'Employee Checklist', + 'version': '11.0.1.0.0', + 'summary': """Manages Employee's Entry & Exit Process""", + 'description': """This module is 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.cybrosys.com", + 'depends': ['base', 'employee_documents_expiry'], + 'data': [ + 'views/employee_form_inherit_view.xml', + 'views/checklist_view.xml', + 'views/settings_view.xml', + ], + 'demo': [], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} + diff --git a/employee_check_list/__manifest__.py~ b/employee_check_list/__manifest__.py~ new file mode 100644 index 000000000..4934f8f44 --- /dev/null +++ b/employee_check_list/__manifest__.py~ @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Nilmar Shereef() +# 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 . +# +############################################################################## +{ + 'name': 'Employee Checklist', + 'version': '10.0.1.0.0', + 'summary': """Manages Employee's Entry & Exit Process""", + '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', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'employee_documents_expiry'], + 'data': [ + 'security/ir.model.access.csv', + 'views/employee_form_inherit_view.xml', + 'views/checklist_view.xml', + 'views/settings_view.xml', + ], + 'demo': [], + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/employee_check_list/models/__init__.py b/employee_check_list/models/__init__.py new file mode 100644 index 000000000..f7bcba3a0 --- /dev/null +++ b/employee_check_list/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Niyas Raphy () +# +# 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/employee_check_list/models/employee_master_inherit.py b/employee_check_list/models/employee_master_inherit.py new file mode 100644 index 000000000..98a3d9707 --- /dev/null +++ b/employee_check_list/models/employee_master_inherit.py @@ -0,0 +1,86 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Niyas Raphy () +# +# 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/employee_check_list/models/settings.py b/employee_check_list/models/settings.py new file mode 100644 index 000000000..c901338ad --- /dev/null +++ b/employee_check_list/models/settings.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Niyas Raphy () +# +# 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 HRSettings(models.TransientModel): + _inherit = 'res.config.settings' + + enable_checklist = fields.Boolean(string='Enable Checklist Progress in Kanban?', default=False) + + @api.model + def get_values(self): + res = super(HRSettings, self).get_values() + config = self.env['ir.config_parameter'].sudo() + enable_checklist = config.get_param('employee_check_list.enable_checklist', default=False) + res.update( + enable_checklist=enable_checklist + ) + return res + + @api.multi + def set_values(self): + super(HRSettings, self).set_values() + self.env['ir.config_parameter'].sudo().set_param('employee_check_list.enable_checklist', + self.enable_checklist) + emp_obj = self.env['hr.employee'].search([]) + for rec in emp_obj: + rec.write({'check_list_enable': self.enable_checklist}) + + diff --git a/employee_check_list/static/description/banner.jpg b/employee_check_list/static/description/banner.jpg new file mode 100644 index 000000000..185536156 Binary files /dev/null and b/employee_check_list/static/description/banner.jpg differ diff --git a/employee_check_list/static/description/cybro_logo.png b/employee_check_list/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/employee_check_list/static/description/cybro_logo.png differ diff --git a/employee_check_list/static/description/entry_checklist.png b/employee_check_list/static/description/entry_checklist.png new file mode 100644 index 000000000..9a492f258 Binary files /dev/null and b/employee_check_list/static/description/entry_checklist.png differ diff --git a/employee_check_list/static/description/exit_checklist.png b/employee_check_list/static/description/exit_checklist.png new file mode 100644 index 000000000..ea95aae3c Binary files /dev/null and b/employee_check_list/static/description/exit_checklist.png differ diff --git a/employee_check_list/static/description/form_view.png b/employee_check_list/static/description/form_view.png new file mode 100644 index 000000000..dddd63a01 Binary files /dev/null and b/employee_check_list/static/description/form_view.png differ diff --git a/employee_check_list/static/description/icon.png b/employee_check_list/static/description/icon.png new file mode 100644 index 000000000..0f20b8400 Binary files /dev/null and b/employee_check_list/static/description/icon.png differ diff --git a/employee_check_list/static/description/index.html b/employee_check_list/static/description/index.html new file mode 100644 index 000000000..baecedc30 --- /dev/null +++ b/employee_check_list/static/description/index.html @@ -0,0 +1,141 @@ +
+
+

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

+

+
+
+
+ +
+
+
+
+ +
+

Need Any Help?

+ +
+ diff --git a/employee_check_list/static/description/index.html~ b/employee_check_list/static/description/index.html~ new file mode 100644 index 000000000..bb6cf0ca6 --- /dev/null +++ b/employee_check_list/static/description/index.html~ @@ -0,0 +1,140 @@ +
+
+

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

+

+
+
+
+ +
+
+
+
+ +
+

Need Any Help?

+ +
diff --git a/employee_check_list/static/description/kanban_view.png b/employee_check_list/static/description/kanban_view.png new file mode 100644 index 000000000..a8fc2bc2b Binary files /dev/null and b/employee_check_list/static/description/kanban_view.png differ diff --git a/employee_check_list/static/description/settings.png b/employee_check_list/static/description/settings.png new file mode 100644 index 000000000..c7101fa0e Binary files /dev/null and b/employee_check_list/static/description/settings.png differ diff --git a/employee_check_list/static/description/tree_view.png b/employee_check_list/static/description/tree_view.png new file mode 100644 index 000000000..26cd0c7af Binary files /dev/null and b/employee_check_list/static/description/tree_view.png differ diff --git a/employee_check_list/views/checklist_view.xml b/employee_check_list/views/checklist_view.xml new file mode 100644 index 000000000..022103714 --- /dev/null +++ b/employee_check_list/views/checklist_view.xml @@ -0,0 +1,38 @@ + + + + + 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/employee_check_list/views/employee_form_inherit_view.xml b/employee_check_list/views/employee_form_inherit_view.xml new file mode 100644 index 000000000..35a72ffe1 --- /dev/null +++ b/employee_check_list/views/employee_form_inherit_view.xml @@ -0,0 +1,64 @@ + + + + + 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/employee_check_list/views/settings_view.xml b/employee_check_list/views/settings_view.xml new file mode 100644 index 000000000..c8c71460c --- /dev/null +++ b/employee_check_list/views/settings_view.xml @@ -0,0 +1,30 @@ + + + + + + HR Settings + res.config.settings + + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    \ No newline at end of file