diff --git a/hr_custody/README.rst b/hr_custody/README.rst deleted file mode 100644 index fd4259572..000000000 --- a/hr_custody/README.rst +++ /dev/null @@ -1,47 +0,0 @@ -Open HRMS Custody Management -============================ - -Functionality to give and track the assets of a company to employees. - - Creates a new menu item Custody Management under Employees - - Can create custody contract with an employee - - Can take the report of custody - -Depends -======= -[hr, mail, hr_employee_updation] addon Odoo - -Tech -==== -* [Python] - Models -* [XML] - Odoo views - -Installation -============ -- www.odoo.com/documentation/11.0/setup/install.html -- Install our custom addon - -License -======= -GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) -(http://www.gnu.org/licenses/agpl.html) - -Bug Tracker -=========== -Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. - -Credits -======= -* Cybrosys Techno Solutions - -Author ------- - -Developers: Avinash Nk - Jesni Banu - -Maintainer ----------- - -This module is maintained by Cybrosys Technologies. - -For support and more information, please visit https://www.cybrosys.com. diff --git a/hr_custody/__init__.py b/hr_custody/__init__.py deleted file mode 100644 index 07a62f397..000000000 --- a/hr_custody/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of OpenHRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Authors: Avinash Nk, Jesni Banu () -# -# 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 -from . import reports diff --git a/hr_custody/__manifest__.py b/hr_custody/__manifest__.py deleted file mode 100644 index f82195089..000000000 --- a/hr_custody/__manifest__.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Authors: Avinash Nk, Jesni Banu () -# -# 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': 'Open HRMS Custody', - 'version': '11.0.1.0.0', - 'summary': """Manage the company properties when it is in the custody of an employee""", - 'description': 'Manage the company properties when it is in the custody of an employee', - 'category': 'Human Resources', - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'maintainer': 'Cybrosys Techno Solutions', - 'website': "https://www.openhrms.com", - 'depends': ['hr', 'mail', 'hr_employee_updation'], - 'data': [ - 'security/ir.model.access.csv', - 'security/custody_security.xml', - 'views/wizard_reason_view.xml', - 'views/custody_view.xml', - 'views/hr_custody_notification.xml', - 'views/hr_employee_view.xml', - 'views/notification_mail.xml', - 'reports/custody_report.xml' - ], - 'images': ['static/description/banner.jpg'], - 'license': 'AGPL-3', - 'demo': [], - 'installable': True, - 'auto_install': False, - 'application': False, -} diff --git a/hr_custody/doc/RELEASE_NOTES.md b/hr_custody/doc/RELEASE_NOTES.md deleted file mode 100644 index 8be83fa0a..000000000 --- a/hr_custody/doc/RELEASE_NOTES.md +++ /dev/null @@ -1,6 +0,0 @@ -## Module hr_custody - -#### 21.04.2018 -#### Version 11.0.1.0.0 -##### ADD -- Initial commit for Open Hrms Project diff --git a/hr_custody/models/__init__.py b/hr_custody/models/__init__.py deleted file mode 100644 index a731b46df..000000000 --- a/hr_custody/models/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Authors: Avinash Nk, Jesni Banu () -# -# 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 custody -from . import hr_employee -from . import wizard_reason diff --git a/hr_custody/models/custody.py b/hr_custody/models/custody.py deleted file mode 100644 index 1db3184ff..000000000 --- a/hr_custody/models/custody.py +++ /dev/null @@ -1,208 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Authors: Avinash Nk, Jesni Banu () -# -# 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 datetime import datetime, timedelta -from odoo import models, fields, api, _ -from odoo.exceptions import Warning, UserError -from odoo.tools import image_resize_images - - -class HrCustody(models.Model): - """ - Hr custody contract creation model. - """ - _name = 'hr.custody' - _description = 'Hr Custody Management' - _inherit = ['mail.thread', 'mail.activity.mixin'] - - def mail_reminder(self): - now = datetime.now() + timedelta(days=1) - date_now = now.date() - match = self.search([('state', '=', 'approved')]) - for i in match: - if i.return_date: - exp_date = fields.Date.from_string(i.return_date) - if exp_date <= date_now: - base_url = self.env['ir.config_parameter'].get_param('web.base.url') - url = base_url + _('/web#id=%s&view_type=form&model=hr.custody&menu_id=') % i.id - mail_content = _('Hi %s,
As per the %s you took %s on %s for the reason of %s. S0 here we ' - 'remind you that you have to return that on or before %s. Otherwise, you can ' - 'renew the reference number(%s) by extending the return date through following ' - 'link.
') % \ - (i.employee.name, i.name, i.custody_name.name, i.date_request, i.purpose, - date_now, i.name, url, i.name) - main_content = { - 'subject': _('REMINDER On %s') % i.name, - 'author_id': self.env.user.partner_id.id, - 'body_html': mail_content, - 'email_to': i.employee.work_email, - } - mail_id = self.env['mail.mail'].create(main_content) - mail_id.mail_message_id.body = mail_content - mail_id.send() - if i.employee.user_id: - mail_id.mail_message_id.write({'needaction_partner_ids': [(4, i.employee.user_id.partner_id.id)]}) - mail_id.mail_message_id.write({'partner_ids': [(4, i.employee.user_id.partner_id.id)]}) - - @api.model - def create(self, vals): - vals['name'] = self.env['ir.sequence'].next_by_code('hr.custody') - return super(HrCustody, self).create(vals) - - @api.multi - def sent(self): - self.state = 'to_approve' - - @api.multi - def send_mail(self): - template = self.env.ref('hr_custody.custody_email_notification_template') - self.env['mail.template'].browse(template.id).send_mail(self.id) - self.mail_send = True - - @api.multi - def set_to_draft(self): - self.state = 'draft' - - @api.multi - def renew_approve(self): - for custody in self.env['hr.custody'].search([('custody_name', '=', self.custody_name.id)]): - if custody.state == "approved": - raise UserError(_("Custody is not available now")) - self.return_date = self.renew_date - self.renew_date = '' - self.state = 'approved' - - @api.multi - def renew_refuse(self): - for custody in self.env['hr.custody'].search([('custody_name', '=', self.custody_name.id)]): - if custody.state == "approved": - raise UserError(_("Custody is not available now")) - self.renew_date = '' - self.state = 'approved' - - @api.multi - def approve(self): - for custody in self.env['hr.custody'].search([('custody_name', '=', self.custody_name.id)]): - if custody.state == "approved": - raise UserError(_("Custody is not available now")) - self.state = 'approved' - - @api.multi - def set_to_return(self): - self.state = 'returned' - self.return_date = fields.datetime.now() - - # return date validation - @api.constrains('return_date') - def validate_return_date(self): - if self.return_date < self.date_request: - raise Warning('Please Give Valid Return Date') - - name = fields.Char(string='Code', copy=False) - company_id = fields.Many2one('res.company', 'Company', readonly=True, - default=lambda self: self.env.user.company_id) - rejected_reason = fields.Text(string='Rejected Reason', copy=False, readonly=1) - renew_rejected_reason = fields.Text(string='Renew Rejected Reason', copy=False, readonly=1) - date_request = fields.Date(string='Requested Date', required=True, track_visibility='always', readonly=True, - states={'draft': [('readonly', False)]}) - employee = fields.Many2one('hr.employee', string='Employee', required=True, readonly=True, - states={'draft': [('readonly', False)]}) - purpose = fields.Char(string='Reason', track_visibility='always', required=True, readonly=True, - states={'draft': [('readonly', False)]}) - custody_name = fields.Many2one('custody.property', string='Property', required=True, readonly=True, - states={'draft': [('readonly', False)]}) - return_date = fields.Date(string='Return Date', required=True, track_visibility='always', readonly=True, - states={'draft': [('readonly', False)]}) - renew_date = fields.Date(string='Renewal Return Date', track_visibility='always', readonly=True, copy=False) - notes = fields.Html(string='Notes') - renew_return_date = fields.Boolean(default=False, copy=False) - renew_reject = fields.Boolean(default=False, copy=False) - state = fields.Selection([('draft', 'Draft'), ('to_approve', 'Waiting For Approval'), ('approved', 'Approved'), - ('returned', 'Returned'), ('rejected', 'Refused')], string='Status', default='draft', - track_visibility='always') - mail_send = fields.Boolean(string="Mail Send") - - -class HrPropertyName(models.Model): - """ - Hr property creation model. - """ - _name = 'custody.property' - _description = 'Property Name' - - name = fields.Char(string='Property Name', required=True) - image = fields.Binary( - "Image", attachment=True, - help="This field holds the image used for this provider, limited to 1024x1024px") - image_medium = fields.Binary( - "Medium-sized image", attachment=True, - help="Medium-sized image of this provider. It is automatically " - "resized as a 128x128px image, with aspect ratio preserved. " - "Use this field in form views or some kanban views.") - image_small = fields.Binary( - "Small-sized image", attachment=True, - help="Small-sized image of this provider. It is automatically " - "resized as a 64x64px image, with aspect ratio preserved. " - "Use this field anywhere a small image is required.") - desc = fields.Html(string='Description') - company_id = fields.Many2one('res.company', 'Company', - default=lambda self: self.env.user.company_id) - - @api.model - def create(self, vals): - image_resize_images(vals) - return super(HrPropertyName, self).create(vals) - - @api.multi - def write(self, vals): - image_resize_images(vals) - return super(HrPropertyName, self).write(vals) - - -class HrReturnDate(models.TransientModel): - """Hr custody contract renewal wizard""" - _name = 'wizard.return.date' - _description = 'Hr Custody Name' - - returned_date = fields.Date(string='Renewal Date', required=1) - - # renewal date validation - @api.constrains('returned_date') - def validate_return_date(self): - context = self._context - custody_obj = self.env['hr.custody'].search([('id', '=', context.get('custody_id'))]) - if self.returned_date <= custody_obj.date_request: - raise Warning('Please Give Valid Renewal Date') - - @api.multi - def proceed(self): - context = self._context - custody_obj = self.env['hr.custody'].search([('id', '=', context.get('custody_id'))]) - custody_obj.write({'renew_return_date': True, - 'renew_date': self.returned_date, - 'state': 'to_approve'}) diff --git a/hr_custody/models/hr_employee.py b/hr_custody/models/hr_employee.py deleted file mode 100644 index b4e12ff24..000000000 --- a/hr_custody/models/hr_employee.py +++ /dev/null @@ -1,118 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Authors: Avinash Nk, Jesni Banu () -# -# 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 HrCustody(models.Model): - _inherit = 'hr.employee' - - custody_count = fields.Integer(compute='_custody_count', string='# Custody') - equipment_count = fields.Integer(compute='_equipment_count', string='# Equipments') - - # count of all custody contracts - @api.multi - def _custody_count(self): - for each in self: - custody_ids = self.env['hr.custody'].search([('employee', '=', each.id)]) - each.custody_count = len(custody_ids) - - # count of all custody contracts that are in approved state - @api.multi - def _equipment_count(self): - for each in self: - equipment_obj = self.env['hr.custody'].search([('employee', '=', each.id), ('state', '=', 'approved')]) - equipment_ids = [] - for each1 in equipment_obj: - if each1.custody_name.id not in equipment_ids: - equipment_ids.append(each1.custody_name.id) - each.equipment_count = len(equipment_ids) - - # smart button action for returning the view of all custody contracts related to the current employee - @api.multi - def custody_view(self): - for each1 in self: - custody_obj = self.env['hr.custody'].search([('employee', '=', each1.id)]) - custody_ids = [] - for each in custody_obj: - custody_ids.append(each.id) - view_id = self.env.ref('hr_custody.hr_custody_form_view').id - if custody_ids: - if len(custody_ids) <= 1: - value = { - 'view_type': 'form', - 'view_mode': 'form', - 'res_model': 'hr.custody', - 'view_id': view_id, - 'type': 'ir.actions.act_window', - 'name': _('Custody'), - 'res_id': custody_ids and custody_ids[0] - } - else: - value = { - 'domain': str([('id', 'in', custody_ids)]), - 'view_type': 'form', - 'view_mode': 'tree,form', - 'res_model': 'hr.custody', - 'view_id': False, - 'type': 'ir.actions.act_window', - 'name': _('Custody'), - 'res_id': custody_ids - } - - return value - - # smart button action for returning the view of all custody contracts that are in approved state, - # related to the current employee - @api.multi - def equipment_view(self): - for each1 in self: - equipment_obj = self.env['hr.custody'].search([('employee', '=', each1.id), ('state', '=', 'approved')]) - equipment_ids = [] - for each in equipment_obj: - if each.custody_name.id not in equipment_ids: - equipment_ids.append(each.custody_name.id) - view_id = self.env.ref('hr_custody.custody_custody_form_view').id - if equipment_ids: - if len(equipment_ids) <= 1: - value = { - 'view_type': 'form', - 'view_mode': 'form', - 'res_model': 'custody.property', - 'view_id': view_id, - 'type': 'ir.actions.act_window', - 'name': _('Equipments'), - 'res_id': equipment_ids and equipment_ids[0] - } - else: - value = { - 'domain': str([('id', 'in', equipment_ids)]), - 'view_type': 'form', - 'view_mode': 'tree,form', - 'res_model': 'custody.property', - 'view_id': False, - 'type': 'ir.actions.act_window', - 'name': _('Equipments'), - 'res_id': equipment_ids - } - - return value diff --git a/hr_custody/models/wizard_reason.py b/hr_custody/models/wizard_reason.py deleted file mode 100644 index 823da4098..000000000 --- a/hr_custody/models/wizard_reason.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Authors: Avinash Nk, Jesni Banu () -# -# 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 WizardReason(models.TransientModel): - """ - Hr custody contract refuse wizard. - """ - _name = 'wizard.reason' - - @api.multi - def send_reason(self): - context = self._context - reject_obj = self.env[context.get('model_id')].search([('id', '=', context.get('reject_id'))]) - if 'renew' in context.keys(): - reject_obj.write({'state': 'approved', - 'renew_reject': True, - 'renew_rejected_reason': self.reason}) - else: - if context.get('model_id') == 'hr.holidays': - reject_obj.write({'rejected_reason': self.reason}) - reject_obj.action_refuse() - else: - reject_obj.write({'state': 'rejected', - 'rejected_reason': self.reason}) - - reason = fields.Text(string="Reason") diff --git a/hr_custody/reports/__init__.py b/hr_custody/reports/__init__.py deleted file mode 100644 index 411232396..000000000 --- a/hr_custody/reports/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Authors: Avinash Nk, Jesni Banu () -# -# 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 custody_report diff --git a/hr_custody/reports/custody_report.py b/hr_custody/reports/custody_report.py deleted file mode 100644 index d590deb96..000000000 --- a/hr_custody/reports/custody_report.py +++ /dev/null @@ -1,84 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Authors: Avinash Nk, Jesni Banu () -# -# 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, tools - - -class CustodyHistory(models.Model): - _name = "report.custody" - _description = "Custody Analysis" - _auto = False - - name = fields.Char(string='Code') - date_request = fields.Date(string='Requested Date') - employee = fields.Many2one('hr.employee', string='Employee') - purpose = fields.Char(string='Reason') - custody_name = fields.Many2one('custody.property', string='Custody Name') - return_date = fields.Date(string='Return Date') - renew_date = fields.Date(string='Renewal Return Date') - renew_return_date = fields.Boolean(string='Renewal Return Date') - state = fields.Selection([('draft', 'Draft'), ('to_approve', 'Waiting For Approval'), ('approved', 'Approved'), - ('returned', 'Returned'), ('rejected', 'Refused')], string='Status') - - _order = 'name desc' - - def _select(self): - select_str = """ - SELECT - (select 1 ) AS nbr, - t.id as id, - t.name as name, - t.date_request as date_request, - t.employee as employee, - t.purpose as purpose, - t.custody_name as custody_name, - t.return_date as return_date, - t.renew_date as renew_date, - t.renew_return_date as renew_return_date, - t.state as state - """ - return select_str - - def _group_by(self): - group_by_str = """ - GROUP BY - t.id, - name, - date_request, - employee, - purpose, - custody_name, - return_date, - renew_date, - renew_return_date, - state - """ - return group_by_str - - def init(self): - tools.sql.drop_view_if_exists(self._cr, 'report_custody') - self._cr.execute(""" - CREATE view report_custody as - %s - FROM hr_custody t - %s - """ % (self._select(), self._group_by())) diff --git a/hr_custody/reports/custody_report.xml b/hr_custody/reports/custody_report.xml deleted file mode 100644 index 402d92e7c..000000000 --- a/hr_custody/reports/custody_report.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - report.custody.pivot - report.custody - - - - - - - - - Custody Analysis - report.custody - form - pivot - {'group_by_no_leaf':1,'group_by':[]} - This report allows you to analyse all Custody Requests. - - - - - \ No newline at end of file diff --git a/hr_custody/security/custody_security.xml b/hr_custody/security/custody_security.xml deleted file mode 100644 index 311521f17..000000000 --- a/hr_custody/security/custody_security.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - Custody Multi Company - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - - - Custody Request Multi Company - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - diff --git a/hr_custody/security/ir.model.access.csv b/hr_custody/security/ir.model.access.csv deleted file mode 100644 index 2c8043f12..000000000 --- a/hr_custody/security/ir.model.access.csv +++ /dev/null @@ -1,13 +0,0 @@ -"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -"access_hr_custody_hr","hr.custody.hr","model_hr_custody","hr.group_hr_manager",1,1,1,1 -"access_hr_custody_hr_manager","hr.custody.user","model_hr_custody","hr.group_hr_user",1,1,1,1 -"access_hr_custody_hr_employee","hr.custody.employee","model_hr_custody","base.group_user",1,1,1,0 -"access_hr_custody_hr1","hr.custody.hr1","model_custody_property","hr.group_hr_manager",1,1,1,1 -"access_hr_custody_hr_manager1","hr.custody.user1","model_custody_property","hr.group_hr_user",1,1,1,1 -"access_hr_custody_hr_employee1","hr.custody.employee1","model_custody_property","base.group_user",1,1,1,0 -"access_hr_custody_hr2","hr.custody.hr2","model_wizard_return_date","hr.group_hr_manager",1,1,1,1 -"access_hr_custody_hr3","hr.custody.hr3","model_report_custody","hr.group_hr_manager",1,1,1,1 -"access_hr_custody_hr_manager2","hr.custody.user2","model_wizard_return_date","hr.group_hr_user",1,1,1,1 -"access_hr_custody_hr_manager3","hr.custody.user3","model_report_custody","hr.group_hr_user",1,1,1,1 -"access_hr_custody_hr_employee2","hr.custody.employee2","model_wizard_return_date","base.group_user",1,1,1,0 - diff --git a/hr_custody/static/description/HRMS-BUTTON.png b/hr_custody/static/description/HRMS-BUTTON.png deleted file mode 100644 index 0f1b65bea..000000000 Binary files a/hr_custody/static/description/HRMS-BUTTON.png and /dev/null differ diff --git a/hr_custody/static/description/banner.jpg b/hr_custody/static/description/banner.jpg deleted file mode 100644 index 6469f976b..000000000 Binary files a/hr_custody/static/description/banner.jpg and /dev/null differ diff --git a/hr_custody/static/description/custody_property.png b/hr_custody/static/description/custody_property.png deleted file mode 100644 index 09cdde7f3..000000000 Binary files a/hr_custody/static/description/custody_property.png and /dev/null differ diff --git a/hr_custody/static/description/custody_request.png b/hr_custody/static/description/custody_request.png deleted file mode 100644 index 1d82e0420..000000000 Binary files a/hr_custody/static/description/custody_request.png and /dev/null differ diff --git a/hr_custody/static/description/cybro-service.png b/hr_custody/static/description/cybro-service.png deleted file mode 100644 index 252929a86..000000000 Binary files a/hr_custody/static/description/cybro-service.png and /dev/null differ diff --git a/hr_custody/static/description/cybro_logo.png b/hr_custody/static/description/cybro_logo.png deleted file mode 100644 index bb309114c..000000000 Binary files a/hr_custody/static/description/cybro_logo.png and /dev/null differ diff --git a/hr_custody/static/description/icon.png b/hr_custody/static/description/icon.png deleted file mode 100644 index 8c486ecc1..000000000 Binary files a/hr_custody/static/description/icon.png and /dev/null differ diff --git a/hr_custody/static/description/index.html b/hr_custody/static/description/index.html deleted file mode 100644 index cd8e56b92..000000000 --- a/hr_custody/static/description/index.html +++ /dev/null @@ -1,119 +0,0 @@ - -
-
-

Open HRMS

-

Most advanced open source HR management software

-
-
-
-
-
-
- - - -
-
-
-
- - -
-
-

Open HRMS Custody Management

-

Manages Custody Handling Process

-

Cybrosys Technologies

-
-
-

Features:

-
- Managing custody handling process.
- Option to renewal.
- Option to take reports.
-
-
-
- -
-
-
-

Overview

-

- Blues over resource tracking? No more worries. - OHRMS Custody Management system constitutes the ultimate - solution for a transparent custody of company resources. -

-
-
-
- -
-
-

Custody Request

-
-

- ☛ Create a Custody Request.
- ☛ Send for Approval.
-

-
- -
-
-
-
- -
-
-

Property

-
-

- ☛ Create a Property of Company.
-

-

- -
-
-
-
- - -
-
-

Our Odoo Services

-
-
-
- - - -
-
-
- -
-

Need Any Help?

- -
- diff --git a/hr_custody/views/custody_view.xml b/hr_custody/views/custody_view.xml deleted file mode 100644 index 9a95fe075..000000000 --- a/hr_custody/views/custody_view.xml +++ /dev/null @@ -1,222 +0,0 @@ - - - - - Custody Code - hr.custody - CR - - - - - - wizard.return.date.form - wizard.return.date - -
- - - - - -
-
-
-
-
- - - custody.property.form - custody.property - -
- - -
-

-
- - - - - - - - - - - -
-
-
-
- - - Custody Request - wizard.return.date - form - form - - new - - - - hr.custody.form - hr.custody - -
-
-
- -

- -

- - - - - - - - - - - - - - - - - - - - - - - -
-
- - -
-
-
-
- - - hr.custody.tree - hr.custody - - - - - - - - - - - - - - - hr_property_tree_view.tree - custody.property - - - - - - - - - hr.custody.search - hr.custody - - - - - - - - - - - - - - - - - - - - - Custody - hr.custody - form - tree,form - - -

- Click to Create a New Record. -

-
-
- - - Property - custody.property - form - tree,form - -

- Click to Create a New Record. -

-
-
- - - - - - -
-
\ No newline at end of file diff --git a/hr_custody/views/hr_custody_notification.xml b/hr_custody/views/hr_custody_notification.xml deleted file mode 100644 index b6746d8fb..000000000 --- a/hr_custody/views/hr_custody_notification.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - HR Custody Return Notification - 1 - days - -1 - - - code - model.mail_reminder() - - - diff --git a/hr_custody/views/hr_employee_view.xml b/hr_custody/views/hr_employee_view.xml deleted file mode 100644 index 148f55ac1..000000000 --- a/hr_custody/views/hr_employee_view.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - hr.employee.form.inherit.view - hr.employee - - -
- - -
-
-
-
-
\ No newline at end of file diff --git a/hr_custody/views/notification_mail.xml b/hr_custody/views/notification_mail.xml deleted file mode 100644 index 189af3fa8..000000000 --- a/hr_custody/views/notification_mail.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - Custody e-mail template - ${object.company_id and object.company_id.email or ''} - Notification to return company asset-${object.custody_name.name} - ${object.email|safe} - ${object.lang} - - - - Dear ${(object.employee.name)},

- You are in possession of the company asset - "${(object.custody_name.name)}" - since ${(object.return_date)}.

- Please kindly return the property as soon as possible.

- Regards,

- ${(object.company_id.name)}]]> -
-
-
-
\ No newline at end of file diff --git a/hr_custody/views/wizard_reason_view.xml b/hr_custody/views/wizard_reason_view.xml deleted file mode 100644 index 64e79a125..000000000 --- a/hr_custody/views/wizard_reason_view.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - wizard.reason.form - wizard.reason - -
- - - -
-
-
-
-
- - - Update Reason - wizard.reason - form - form - - new - -
-
\ No newline at end of file diff --git a/hr_employee_transfer/README.rst b/hr_employee_transfer/README.rst deleted file mode 100644 index df1c26e7b..000000000 --- a/hr_employee_transfer/README.rst +++ /dev/null @@ -1,39 +0,0 @@ -Open HRMS Employee Transfer v11 -=============================== - -Employee transfer between branches. - -Depends -======= -[hr] addon Odoo - -Tech -==== -* [Python] - Models -* [XML] - Odoo views - -Installation -============ -- www.odoo.com/documentation/11.0/setup/install.html -- Install our custom addon - - -Bug Tracker -=========== -Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. - -Credits -======= -* Cybrosys Techno Solutions - -Author ------- - -Developer: Sreejith P @ cybrosys, sreejith@cybrosys.in - -Maintainer ----------- - -This module is maintained by Cybrosys Technologies. - -For support and more information, please visit https://www.cybrosys.com. diff --git a/hr_employee_transfer/__init__.py b/hr_employee_transfer/__init__.py deleted file mode 100644 index a0fdc10fe..000000000 --- a/hr_employee_transfer/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -from . import models diff --git a/hr_employee_transfer/__manifest__.py b/hr_employee_transfer/__manifest__.py deleted file mode 100644 index b5e8413cd..000000000 --- a/hr_employee_transfer/__manifest__.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Sreejith P () -# -# 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': 'Open HRMS Branch Transfer', - 'version': '11.0.1.0.0', - 'summary': 'Employee transfer between branches', - 'category': 'Generic Modules/Human Resources', - 'author': 'Cybrosys Techno solutions', - 'maintainer': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': 'https://www.openhrms.com', - 'depends': ['base', - 'hr_employee_updation' - ], - 'data': [ - 'views/employee_transfer.xml', - 'security/ir.model.access.csv', - 'security/branch_security.xml', - ], - 'images': ['static/description/banner.jpg'], - 'installable': True, - 'application': True, - 'auto_install': False, - 'license': 'AGPL-3', -} diff --git a/hr_employee_transfer/docs/RELEASE_NOTES.md b/hr_employee_transfer/docs/RELEASE_NOTES.md deleted file mode 100644 index 6d0031a92..000000000 --- a/hr_employee_transfer/docs/RELEASE_NOTES.md +++ /dev/null @@ -1,6 +0,0 @@ -## Module hr_employee_transfer - -#### 21.04.2018 -#### Version 11.0.1.0.0 -##### ADD -- Initial commit for OpenHrms Project diff --git a/hr_employee_transfer/models/__init__.py b/hr_employee_transfer/models/__init__.py deleted file mode 100644 index 3adb57604..000000000 --- a/hr_employee_transfer/models/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# -*- coding: utf-8 -*- -from . import employee_transfer -from . import hr_contract -from . import res_company diff --git a/hr_employee_transfer/models/employee_transfer.py b/hr_employee_transfer/models/employee_transfer.py deleted file mode 100644 index 5772a3907..000000000 --- a/hr_employee_transfer/models/employee_transfer.py +++ /dev/null @@ -1,106 +0,0 @@ -# -*- coding: utf-8 -*- -from datetime import date -from odoo import models, fields, api, _ -from odoo.tools import DEFAULT_SERVER_DATE_FORMAT -from odoo.exceptions import Warning - - -class EmployeeTransfer(models.Model): - _name = 'employee.transfer' - _description = 'Employee Transfer' - _order = "id desc" - - def _default_employee(self): - emp_ids = self.env['hr.employee'].search([('user_id', '=', self.env.uid)]) - return emp_ids and emp_ids[0] or False - - name = fields.Char(string='Name', help='Give a name to the Transfer', copy=False, default="/", readonly=True) - employee_id = fields.Many2one('hr.employee', string='Employee', required=True, - help='Select the employee you are going to transfer') - date = fields.Date(string='Date', default=fields.Date.today()) - branch = fields.Many2one('transfer.company', string='Transfer Branch', requried=True, copy=False, - help='The Branch/Company which the employee is transferred') - state = fields.Selection( - [('draft', 'New'), ('cancel', 'Cancelled'), ('transfer', 'Transferred'), ('done', 'Done')], - string='Status', readonly=True, copy=False, default='draft', - help=" * The 'Draft' status is used when a transfer is created and unconfirmed Transfer.\n" - " * The 'Transferred' status is used when the user confirm the transfer. It stays in the open status till the other branch/company receive the employee.\n" - " * The 'Done' status is set automatically when the employee is Joined/Received.\n" - " * The 'Cancelled' status is used when user cancel Transfer." - ) - sequence_number = fields.Integer(string='Sequence Number', help='A unique sequence number for the Transfer', - default=1, copy=False) - company_id = fields.Many2one('res.company', string='Company', required=True, - related='employee_id.company_id', store=True) - note = fields.Text(string='Internal Notes') - responsible = fields.Many2one('hr.employee', string='Responsible', default=_default_employee, readonly=True) - - @api.one - def transfer(self): - obj_emp = self.env['hr.employee'].browse(self.employee_id.id) - emp = {} - if not self.branch: - raise Warning(_( - 'You should select the transfer branch/company.')) - for this in self: - emp = { - 'name': self.employee_id.name, - 'company_id': self.branch.company_id, - - } - new_emp = self.env['hr.employee'].create(emp) - if obj_emp.address_home_id: - obj_emp.address_home_id.active = False - for obj_contract in self.env['hr.contract'].search([('employee_id', '=', self.employee_id.id)]): - if obj_contract.date_end: - continue - if not obj_contract.date_end: - obj_contract.write({'date_end': date.today().strftime(DEFAULT_SERVER_DATE_FORMAT)}) - self.wage = obj_contract.wage - self.state = 'transfer' - self.employee_id = new_emp - obj_emp.write({'active': False}) - - @api.multi - def receive_employee(self): - for this in self: - if this._context is None: - context = {} - partner = {} - for i in this: - partner = { - 'name': i.employee_id.name, - 'company_id': i.branch.company_id, - } - partner_created = self.env['res.partner'].create(partner) - self.env['hr.employee'].browse(this.employee_id.id).write({'address_home_id': partner_created.id}) - return { - 'name': _('Contract'), - 'view_type': 'form', - 'view_mode': 'form', - 'res_model': 'hr.contract', - 'type': 'ir.actions.act_window', - 'target': 'current', - 'context': {'default_employee_id': this.employee_id.id, - 'default_date_start': this.date, - 'default_emp_transfer': this.id, - }, - } - - @api.one - def cancel_transfer(self): - obj_emp = self.env['hr.employee'].browse(self.employee_id.id) - emp = { - 'name': self.employee_id.name, - 'company_id': self.company_id.id, - } - obj_emp.write(emp) - for obj_contract in self.env['hr.contract'].search([('employee_id', '=', self.employee_id.id)]): - obj_contract.unlink() - self.state = 'cancel' - - @api.model - def create(self, vals): - vals['name'] = "Transfer Of " + self.env['hr.employee'].browse(vals['employee_id']).name - res = super(EmployeeTransfer, self).create(vals) - return res diff --git a/hr_employee_transfer/models/hr_contract.py b/hr_employee_transfer/models/hr_contract.py deleted file mode 100644 index 87fc8a0d2..000000000 --- a/hr_employee_transfer/models/hr_contract.py +++ /dev/null @@ -1,16 +0,0 @@ -from odoo import models, fields, api - - -class HrContract(models.Model): - _inherit = 'hr.contract' - - company_id = fields.Many2one('res.company', 'Company', default=lambda self: self.env.user.company_id) - from_transfer = fields.Boolean(string='Transferred', default=False) - emp_transfer = fields.Many2one('employee.transfer', string='Transferred Employee') - - @api.model - def create(self, vals): - res = super(HrContract, self).create(vals) - if res.emp_transfer: - self.env['employee.transfer'].browse(res.emp_transfer.id).write({'state': 'done'}) - return res diff --git a/hr_employee_transfer/models/hr_employee.py b/hr_employee_transfer/models/hr_employee.py deleted file mode 100644 index 42df9efdd..000000000 --- a/hr_employee_transfer/models/hr_employee.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from odoo import models, fields, api - - -class HrContract(models.Model): - _inherit = 'hr.employee' - - transfer_detail = fields.One2many('transfer.detail', 'employee_id', string='Transfer Details') - - -class TransferDetails(models.Model): - - _name = 'transfer.detail' - _description = 'Transfer Details' - - employee_id = fields.Many2one('hr.employee', string='Employee') - date = fields.Date(string='Date', copy=False) - company_id = fields.Many2one('res.company', string='Company') - pre_company = fields.Many2one('res.company', string='Previous Company') diff --git a/hr_employee_transfer/models/res_company.py b/hr_employee_transfer/models/res_company.py deleted file mode 100644 index 77c228a24..000000000 --- a/hr_employee_transfer/models/res_company.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -from odoo import models, fields, api - - -class EmployeeTransfer(models.Model): - _name = 'transfer.company' - _description = 'Transfer Company' - _order = "id desc" - - name = fields.Char(string='Name', copy=False, ondelete='cascade') - company_id = fields.Integer(string='Company', help='Company name same as res.company', copy=False) - - -class ResCompany(models.Model): - _inherit = 'res.company' - - def init(self): - obj_company = self.env['res.company'].search([]) - - for company in obj_company: - obj_branch = self.env['transfer.company'].search([('company_id', '=', company.id)]) - com = {} - if not obj_branch: - com = { - 'name': company.name, - 'company_id': company.id, - } - obj = self.env['transfer.company'].create(com) - - @api.model - def create(self, res): - result = super(ResCompany, self).create(res) - com = {} - com = { - 'name': result.name, - 'company_id': result.id, - - } - self.env['transfer.company'].create(com) - return result diff --git a/hr_employee_transfer/security/branch_security.xml b/hr_employee_transfer/security/branch_security.xml deleted file mode 100644 index f22cc5870..000000000 --- a/hr_employee_transfer/security/branch_security.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Employee Rule - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - - - Contract Rules - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - - diff --git a/hr_employee_transfer/security/ir.model.access.csv b/hr_employee_transfer/security/ir.model.access.csv deleted file mode 100644 index beea229f4..000000000 --- a/hr_employee_transfer/security/ir.model.access.csv +++ /dev/null @@ -1,5 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_employee_transfer,employee.transfer,model_employee_transfer,hr.group_hr_user,1,1,0,0 -access_employee_transfer_manager,employee.transfer.manager,model_employee_transfer,hr.group_hr_manager,1,1,1,0 -access_employee_transfer_company,employee.company.manager,base.model_res_company,hr.group_hr_manager,1,1,1,0 -access_transfer_company,transfer.company.manager,model_transfer_company,hr.group_hr_manager,1,1,1,0 diff --git a/hr_employee_transfer/static/description/HRMS-BUTTON.png b/hr_employee_transfer/static/description/HRMS-BUTTON.png deleted file mode 100644 index 0f1b65bea..000000000 Binary files a/hr_employee_transfer/static/description/HRMS-BUTTON.png and /dev/null differ diff --git a/hr_employee_transfer/static/description/banner.jpg b/hr_employee_transfer/static/description/banner.jpg deleted file mode 100644 index 1859d8b14..000000000 Binary files a/hr_employee_transfer/static/description/banner.jpg and /dev/null differ diff --git a/hr_employee_transfer/static/description/create_a_transfer.png b/hr_employee_transfer/static/description/create_a_transfer.png deleted file mode 100644 index ed7e55916..000000000 Binary files a/hr_employee_transfer/static/description/create_a_transfer.png and /dev/null differ diff --git a/hr_employee_transfer/static/description/create_contract.png b/hr_employee_transfer/static/description/create_contract.png deleted file mode 100644 index 84717bcd2..000000000 Binary files a/hr_employee_transfer/static/description/create_contract.png and /dev/null differ diff --git a/hr_employee_transfer/static/description/cybro-service.png b/hr_employee_transfer/static/description/cybro-service.png deleted file mode 100644 index 252929a86..000000000 Binary files a/hr_employee_transfer/static/description/cybro-service.png and /dev/null differ diff --git a/hr_employee_transfer/static/description/cybro_logo.png b/hr_employee_transfer/static/description/cybro_logo.png deleted file mode 100644 index bb309114c..000000000 Binary files a/hr_employee_transfer/static/description/cybro_logo.png and /dev/null differ diff --git a/hr_employee_transfer/static/description/icon.png b/hr_employee_transfer/static/description/icon.png deleted file mode 100644 index 7fec29119..000000000 Binary files a/hr_employee_transfer/static/description/icon.png and /dev/null differ diff --git a/hr_employee_transfer/static/description/index.html b/hr_employee_transfer/static/description/index.html deleted file mode 100644 index 2b1e73c71..000000000 --- a/hr_employee_transfer/static/description/index.html +++ /dev/null @@ -1,111 +0,0 @@ - -
-
-

Open HRMS

-

Most advanced open source HR management software

-
-
-
-
-
-
- - - -
-
-
-
-
-
-

Branch Transfer

-

Employee transfer between branches

-

Cybrosys Technologies

-
-
-

Features:

-
- Transfer Employee between branches.
-
-
-
- -
-
-
-

Overview

-

- Transferring employees between company is a basic thing in a organization. Now Odoo lacks a provision for employee transfer. This module gives a basic structure for employee transfer
- Make sure that you are multi company is enabled. -

-
-
-
- -
-
-

Employee Transfer

-
-

- ☛ Create a Employee Transfer.
- ☛ Select the Transfer Company.
- ☛ Click on the sent button.
-

-
- -
-
-
-
- -
-
-

Contract

-
-

- ☛ Create new contract.
-

-

- -
-
-
-
- -
-
-

Our Odoo Services

- - -
- -
- - - -
-

Need Any Help?

- -
diff --git a/hr_employee_transfer/views/employee_transfer.xml b/hr_employee_transfer/views/employee_transfer.xml deleted file mode 100644 index a255eb507..000000000 --- a/hr_employee_transfer/views/employee_transfer.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - Employee Transfer - employee.transfer - -
-
-
- -
-

- -

-
- - - - - - - - - - - - - - - - -
-
-
-
- - Employee Transfer Tree - employee.transfer - - - - - - - - - - - - - - - Employee Transfer - ir.actions.act_window - employee.transfer - form - tree,form - - [] - -

- Click to create a new Transfer. -

- Use this menu to browse previous transfer. To record new - transfer, you may use the create button. -

-
-
- - -
diff --git a/hr_employee_updation/README.md b/hr_employee_updation/README.md deleted file mode 100644 index 93877f956..000000000 --- a/hr_employee_updation/README.md +++ /dev/null @@ -1,17 +0,0 @@ -Open HRMS Employee Info ------------------------ -Supporting Addon for Open HRMS, Added Advanced Fields On Employee Master. - -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 -Jesni Banu - jesni@cybrosys.in - -Website: -https://www.openhrms.com -https://www.cybrosys.com diff --git a/hr_employee_updation/__init__.py b/hr_employee_updation/__init__.py deleted file mode 100644 index 9c6d6e056..000000000 --- a/hr_employee_updation/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Jesni Banu () -# -# 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/hr_employee_updation/__manifest__.py b/hr_employee_updation/__manifest__.py deleted file mode 100644 index 6c166b80e..000000000 --- a/hr_employee_updation/__manifest__.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Jesni Banu () -# -# 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': 'Open HRMS Employee Info', - 'version': '11.0.2.0.0', - 'summary': """Adding Advanced Fields In Employee Master""", - 'description': 'This module helps you to add more information in employee records.', - 'category': 'Generic Modules/Human Resources', - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': "https://www.openhrms.com", - 'depends': ['base', 'hr', 'mail', 'hr_gamification'], - 'data': [ - 'security/ir.model.access.csv', - 'views/hr_employee_view.xml', - 'views/hr_notification.xml', - ], - 'demo': [], - 'images': ['static/description/banner.jpg'], - 'license': 'AGPL-3', - 'installable': True, - 'auto_install': False, - 'application': False, -} diff --git a/hr_employee_updation/doc/RELEASE_NOTES.md b/hr_employee_updation/doc/RELEASE_NOTES.md deleted file mode 100644 index eb5bffcd7..000000000 --- a/hr_employee_updation/doc/RELEASE_NOTES.md +++ /dev/null @@ -1,11 +0,0 @@ -## Module - -#### 19.05.2018 -#### Version 11.0.2.0.0 -##### FIX -- Bug fixed (key error: employee_ref) - -#### 10.04.2018 -#### Version 11.0.1.0.0 -##### ADD -- Initial commit for Open HRMS Project diff --git a/hr_employee_updation/models/__init__.py b/hr_employee_updation/models/__init__.py deleted file mode 100644 index 7e7089a66..000000000 --- a/hr_employee_updation/models/__init__.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Jesni Banu () -# -# 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 hr_employee - - - - diff --git a/hr_employee_updation/models/hr_employee.py b/hr_employee_updation/models/hr_employee.py deleted file mode 100644 index b28b6524b..000000000 --- a/hr_employee_updation/models/hr_employee.py +++ /dev/null @@ -1,112 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Jesni Banu () -# -# 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 datetime import datetime, timedelta -from odoo import models, fields, _ - -GENDER_SELECTION = [('male', 'Male'), - ('female', 'Female'), - ('other', 'Other')] - - -class HrEmployeeContractName(models.Model): - """This class is to add emergency contact table""" - - _name = 'hr.emergency.contact' - _description = 'HR Emergency Contact' - - number = fields.Char(string='Number', help='Contact Number') - relation = fields.Char(string='Contact', help='Relation with employee') - employee_obj = fields.Many2one('hr.employee', invisible=1) - - -class HrEmployeeFamilyInfo(models.Model): - """Table for keep employee family information""" - - _name = 'hr.employee.family' - _description = 'HR Employee Family' - - member_name = fields.Char(string='Name', related='employee_ref.name', store=True) - employee_ref = fields.Many2one(string="Is Employee", - help='If family member currently is an employee of same company, ' - 'then please tick this field', - comodel_name='hr.employee') - employee_id = fields.Many2one(string="Employee", help='Select corresponding Employee', comodel_name='hr.employee', - invisible=1) - relation = fields.Selection([('father', 'Father'), - ('mother', 'Mother'), - ('daughter', 'Daughter'), - ('son', 'Son'), - ('wife', 'Wife')], string='Relationship', help='Relation with employee') - member_contact = fields.Char(string='Contact No', related='employee_ref.personal_mobile', store=True) - - -class HrEmployee(models.Model): - _inherit = 'hr.employee' - - def mail_reminder(self): - """Sending expiry date notification for ID and Passport""" - - now = datetime.now() + timedelta(days=1) - date_now = now.date() - match = self.search([]) - for i in match: - if i.id_expiry_date: - exp_date = fields.Date.from_string(i.id_expiry_date) - timedelta(days=14) - if date_now >= exp_date: - mail_content = " Hello " + i.name + ",
Your ID " + i.identification_id + "is going to expire on " + \ - str(i.id_expiry_date) + ". Please renew it before expiry date" - main_content = { - 'subject': _('ID-%s Expired On %s') % (i.identification_id, i.id_expiry_date), - 'author_id': self.env.user.partner_id.id, - 'body_html': mail_content, - 'email_to': i.work_email, - } - self.env['mail.mail'].sudo().create(main_content).send() - match1 = self.search([]) - for i in match1: - if i.passport_expiry_date: - exp_date1 = fields.Date.from_string(i.passport_expiry_date) - timedelta(days=180) - if date_now >= exp_date1: - mail_content = " Hello " + i.name + ",
Your Passport " + i.passport_id + "is going to expire on " + \ - str(i.passport_expiry_date) + ". Please renew it before expiry date" - main_content = { - 'subject': _('Passport-%s Expired On %s') % (i.passport_id, i.passport_expiry_date), - 'author_id': self.env.user.partner_id.id, - 'body_html': mail_content, - 'email_to': i.work_email, - } - self.env['mail.mail'].sudo().create(main_content).send() - personal_mobile = fields.Char(string='Mobile', related='address_home_id.mobile', store=True) - emergency_contact = fields.One2many('hr.emergency.contact', 'employee_obj', string='Emergency Contact') - joining_date = fields.Date(string='Joining Date') - id_expiry_date = fields.Date(string='Expiry Date', help='Expiry date of Identification ID') - passport_expiry_date = fields.Date(string='Expiry Date', help='Expiry date of Passport ID') - id_attachment_id = fields.Many2many('ir.attachment', 'id_attachment_rel', 'id_ref', 'attach_ref', - string="Attachment", help='You can attach the copy of your Id') - passport_attachment_id = fields.Many2many('ir.attachment', 'passport_attachment_rel', 'passport_ref', 'attach_ref1', - string="Attachment", - help='You can attach the copy of Passport') - fam_ids = fields.One2many('hr.employee.family', 'employee_id', string='Family', help='Family Information') - - - diff --git a/hr_employee_updation/security/ir.model.access.csv b/hr_employee_updation/security/ir.model.access.csv deleted file mode 100644 index c17dd7d95..000000000 --- a/hr_employee_updation/security/ir.model.access.csv +++ /dev/null @@ -1,7 +0,0 @@ -"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -"access_hr_employee_family_employee","hr.employee.family_employee","model_hr_employee_family","base.group_user",1,0,0,0 -"access_hr_employee_family_manager","hr.employee.family_manager","model_hr_employee_family","hr.group_hr_manager",1,1,1,1 -"access_hr_employee_family_user","hr.employee.family_user","model_hr_employee_family","hr.group_hr_user",1,1,1,1 -"access_hr_employee_emergency_contact","hr.emergency.contact","model_hr_emergency_contact","base.group_user",1,0,0,0 -"access_hr_employee_emergency_contact_manager","hr.emergency.contact","model_hr_emergency_contact","hr.group_hr_manager",1,1,1,1 -"access_hr_employee_emergency_contact_user","hr.emergency.contact","model_hr_emergency_contact","hr.group_hr_user",1,1,1,1 \ No newline at end of file diff --git a/hr_employee_updation/static/description/HRMS-BUTTON.png b/hr_employee_updation/static/description/HRMS-BUTTON.png deleted file mode 100644 index 0f1b65bea..000000000 Binary files a/hr_employee_updation/static/description/HRMS-BUTTON.png and /dev/null differ diff --git a/hr_employee_updation/static/description/banner.jpg b/hr_employee_updation/static/description/banner.jpg deleted file mode 100644 index 663c0a0a9..000000000 Binary files a/hr_employee_updation/static/description/banner.jpg and /dev/null differ diff --git a/hr_employee_updation/static/description/cybro-service.png b/hr_employee_updation/static/description/cybro-service.png deleted file mode 100644 index 252929a86..000000000 Binary files a/hr_employee_updation/static/description/cybro-service.png and /dev/null differ diff --git a/hr_employee_updation/static/description/cybro_logo.png b/hr_employee_updation/static/description/cybro_logo.png deleted file mode 100644 index bb309114c..000000000 Binary files a/hr_employee_updation/static/description/cybro_logo.png and /dev/null differ diff --git a/hr_employee_updation/static/description/emergency_contact.png b/hr_employee_updation/static/description/emergency_contact.png deleted file mode 100644 index 2fd7ba18e..000000000 Binary files a/hr_employee_updation/static/description/emergency_contact.png and /dev/null differ diff --git a/hr_employee_updation/static/description/family_info.png b/hr_employee_updation/static/description/family_info.png deleted file mode 100644 index b3d3fbb65..000000000 Binary files a/hr_employee_updation/static/description/family_info.png and /dev/null differ diff --git a/hr_employee_updation/static/description/icon.png b/hr_employee_updation/static/description/icon.png deleted file mode 100644 index cc02f7a68..000000000 Binary files a/hr_employee_updation/static/description/icon.png and /dev/null differ diff --git a/hr_employee_updation/static/description/index.html b/hr_employee_updation/static/description/index.html deleted file mode 100644 index 8f83ff6c1..000000000 --- a/hr_employee_updation/static/description/index.html +++ /dev/null @@ -1,135 +0,0 @@ -
-
-

Open HRMS

-

Most advanced open source HR management software

-
-
- -
-
-
-
- - - - -
-
-
-
- -
-
-

Open HRMS Employee Info

-

Added Advance Fields On Employee Master

-

Cybrosys Technologies

-
-
-

Features:

-
- Added family information.
- Added joining date and contact info.
- Added passport and id expiry date and attachments.
- Added expiry notification for passport and id documents.
-
-
-
- -
-
-
-

Overview

-

- This module added some advanced features on Employee master. - Such as family info, joining date, passport and Id expiry date. - This module also sends expiry notification for passport and id to corresponding employees. -

-
-
-
- -
-
-

Identification ID & Passport ID

-
-
- -
-
-
-
- -
-
-

Emergency Contact Number

-
-
- -
-
-
-
- -
-
-

Family Information

-
-
- -
-
-
-
- -
-
-

Joining Date

-
-
- -
-
-
-
- -
-
-

Our Odoo Services

-
-
-
- - - -
-
-
- -
-

Need Any Help?

- -
- - diff --git a/hr_employee_updation/static/description/joining_date.png b/hr_employee_updation/static/description/joining_date.png deleted file mode 100644 index e1575e52f..000000000 Binary files a/hr_employee_updation/static/description/joining_date.png and /dev/null differ diff --git a/hr_employee_updation/static/description/personal_info.png b/hr_employee_updation/static/description/personal_info.png deleted file mode 100644 index 3c9901c4b..000000000 Binary files a/hr_employee_updation/static/description/personal_info.png and /dev/null differ diff --git a/hr_employee_updation/views/hr_employee_view.xml b/hr_employee_updation/views/hr_employee_view.xml deleted file mode 100644 index 6e347a137..000000000 --- a/hr_employee_updation/views/hr_employee_view.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - hr.employee.form.view - hr.employee - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - hr.employee.view.form.inherit - hr.employee - - - - -
- -
- -
-
-
-
-
-
\ No newline at end of file diff --git a/hr_employee_updation/views/hr_notification.xml b/hr_employee_updation/views/hr_notification.xml deleted file mode 100644 index 3dbfa7def..000000000 --- a/hr_employee_updation/views/hr_notification.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - HR Employee Data Expiration - 1 - days - -1 - - - code - model.mail_reminder() - - - diff --git a/hr_multi_company/README.md b/hr_multi_company/README.md deleted file mode 100644 index 92115909a..000000000 --- a/hr_multi_company/README.md +++ /dev/null @@ -1,17 +0,0 @@ -OHRMS Multi Company ---------------------- -Supporting Addon for Open HRMS, Added Advance Fields On Employee Master - -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 -Jesni Banu - jesni@cybrosys.in - -Website: -https://www.openhrms.com -https://www.cybrosys.com diff --git a/hr_multi_company/__init__.py b/hr_multi_company/__init__.py deleted file mode 100644 index 9c6d6e056..000000000 --- a/hr_multi_company/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Jesni Banu () -# -# 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/hr_multi_company/__manifest__.py b/hr_multi_company/__manifest__.py deleted file mode 100644 index e0fa12908..000000000 --- a/hr_multi_company/__manifest__.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Jesni Banu () -# -# 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': 'Open HRMS Multi-Company', - 'version': '11.0.1.0.0', - 'summary': """Enables Multi-Company""", - 'description': 'This module enables multi company features', - 'category': 'Generic Modules/Human Resources', - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': "https://www.openhrms.com", - 'depends': ['base', 'hr_contract', 'hr_payroll', 'hr_expense', 'hr_attendance', 'hr_employee_transfer'], - 'data': [ - 'views/hr_company_view.xml', - 'views/multi_company_view.xml', - ], - 'demo': [], - 'images': ['static/description/banner.jpg'], - 'license': 'AGPL-3', - 'installable': True, - 'auto_install': False, - 'application': False, -} diff --git a/hr_multi_company/doc/RELEASE_NOTES.md b/hr_multi_company/doc/RELEASE_NOTES.md deleted file mode 100644 index 7ee93a11c..000000000 --- a/hr_multi_company/doc/RELEASE_NOTES.md +++ /dev/null @@ -1,6 +0,0 @@ -## Module - -#### 30.03.2018 -#### Version 11.0.1.0.0 -##### ADD -- Initial commit for Open HRMS Project diff --git a/hr_multi_company/models/__init__.py b/hr_multi_company/models/__init__.py deleted file mode 100644 index 0e2cb3558..000000000 --- a/hr_multi_company/models/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Jesni Banu () -# -# 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 hr_multi_company - diff --git a/hr_multi_company/models/__pycache__/__init__.cpython-35.pyc b/hr_multi_company/models/__pycache__/__init__.cpython-35.pyc deleted file mode 100644 index 3339b2195..000000000 Binary files a/hr_multi_company/models/__pycache__/__init__.cpython-35.pyc and /dev/null differ diff --git a/hr_multi_company/models/__pycache__/hr_multi_company.cpython-35.pyc b/hr_multi_company/models/__pycache__/hr_multi_company.cpython-35.pyc deleted file mode 100644 index e14217c1f..000000000 Binary files a/hr_multi_company/models/__pycache__/hr_multi_company.cpython-35.pyc and /dev/null differ diff --git a/hr_multi_company/models/hr_multi_company.py b/hr_multi_company/models/hr_multi_company.py deleted file mode 100644 index 2f30de346..000000000 --- a/hr_multi_company/models/hr_multi_company.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Jesni Banu () -# -# 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 - - -class HrAttendanceMultiCompany(models.Model): - _inherit = 'hr.attendance' - - company_id = fields.Many2one('res.company', 'Company', copy=False, readonly=True, - default=lambda self: self.env.user.company_id) - - -class HrLeaveMultiCompany(models.Model): - _inherit = 'hr.holidays' - - company_id = fields.Many2one('res.company', 'Company', copy=False, readonly=True, - default=lambda self: self.env.user.company_id) - - -class HrPayslipMultiCompany(models.Model): - _inherit = 'hr.payslip.run' - - company_id = fields.Many2one('res.company', 'Company', copy=False, readonly=True, - default=lambda self: self.env.user.company_id) - - -class HrSalaryCategoryMultiCompany(models.Model): - _inherit = 'hr.salary.rule.category' - - company_id = fields.Many2one('res.company', 'Company', copy=False, readonly=True, - default=lambda self: self.env.user.company_id) diff --git a/hr_multi_company/static/description/HRMS-BUTTON.png b/hr_multi_company/static/description/HRMS-BUTTON.png deleted file mode 100644 index 0f1b65bea..000000000 Binary files a/hr_multi_company/static/description/HRMS-BUTTON.png and /dev/null differ diff --git a/hr_multi_company/static/description/banner.jpg b/hr_multi_company/static/description/banner.jpg deleted file mode 100644 index 08b67a194..000000000 Binary files a/hr_multi_company/static/description/banner.jpg and /dev/null differ diff --git a/hr_multi_company/static/description/cybro-service.png b/hr_multi_company/static/description/cybro-service.png deleted file mode 100644 index 252929a86..000000000 Binary files a/hr_multi_company/static/description/cybro-service.png and /dev/null differ diff --git a/hr_multi_company/static/description/cybro_logo.png b/hr_multi_company/static/description/cybro_logo.png deleted file mode 100644 index bb309114c..000000000 Binary files a/hr_multi_company/static/description/cybro_logo.png and /dev/null differ diff --git a/hr_multi_company/static/description/icon.png b/hr_multi_company/static/description/icon.png deleted file mode 100644 index 1dbe70d04..000000000 Binary files a/hr_multi_company/static/description/icon.png and /dev/null differ diff --git a/hr_multi_company/static/description/index.html b/hr_multi_company/static/description/index.html deleted file mode 100644 index ac29ef9b3..000000000 --- a/hr_multi_company/static/description/index.html +++ /dev/null @@ -1,108 +0,0 @@ -
-
-

Open HRMS

-

Most advanced open source HR management software

-
-
- -
-
-
-
- - - - -
-
-
-
- -
-
-

Open HRMS Multi Company

-

Managing Multi Company In HR Processes

-

Cybrosys Technologies

-
-
-

Features:

-
- Managing multi company.
-
-
-
- -
-
-
-

Overview

-

- This module enables hr multi company, hence hr manager can easily handle - multi company process separately. We can activate multi company feature in general settings as usual. - This will automatically add company field in every hr related records. -

-
-
-
- -
-
-

Multi Company In Leaves

-
-
- -
-
-
-
- -
-
-

Multi Company In Attendance

-
-
- -
-
-
-
- -
-
-

Our Odoo Services

-
-
-
- - - -
-
-
- -
-

Need Any Help?

- -
diff --git a/hr_multi_company/static/description/multi_company.png b/hr_multi_company/static/description/multi_company.png deleted file mode 100644 index 34ad6464b..000000000 Binary files a/hr_multi_company/static/description/multi_company.png and /dev/null differ diff --git a/hr_multi_company/static/description/oh_attendance.png b/hr_multi_company/static/description/oh_attendance.png deleted file mode 100644 index ef8539c53..000000000 Binary files a/hr_multi_company/static/description/oh_attendance.png and /dev/null differ diff --git a/hr_multi_company/views/hr_company_view.xml b/hr_multi_company/views/hr_company_view.xml deleted file mode 100644 index b4dde2cfe..000000000 --- a/hr_multi_company/views/hr_company_view.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - hr.holidays.form.view1 - hr.holidays - - - - - - - - - - hr.contract.form.view1 - hr.contract - - - - - - - - - - hr.attendance.form.view1 - hr.attendance - - - - - - - - - - hr.payslip.run.form.view1 - hr.payslip.run - - - - - - - - - - hr.salary.rule.category.form.view1 - hr.salary.rule.category - - - - - - - - \ No newline at end of file diff --git a/hr_multi_company/views/multi_company_view.xml b/hr_multi_company/views/multi_company_view.xml deleted file mode 100644 index cd819e0e0..000000000 --- a/hr_multi_company/views/multi_company_view.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - Department Create, Write, Unlink - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - - - Salary rules of my Company - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - - - Salary structures of my Company - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - - - Payslips batches of my Company - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - - - Payslips of my Company - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - - - Salary Category of my Company - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - - - Payslips Contribution of my Company - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - - - Attendance of my Company - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - - - Holidays of my Company - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - - - Expense of my Company - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - \ No newline at end of file diff --git a/oh_appraisal/README.rst b/oh_appraisal/README.rst deleted file mode 100644 index f8bf6c7ca..000000000 --- a/oh_appraisal/README.rst +++ /dev/null @@ -1,43 +0,0 @@ -OHRMS Employee Appraisal v11 -============================ - -Roll out appraisal plans and get the best of your workforce - -Depends -======= -[hr] addon Odoo - -Tech -==== -* [Python] - Models -* [XML] - Odoo views - -Installation -============ -- www.odoo.com/documentation/10.0/setup/install.html -- Install our custom addon - -License -======= -GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) -(http://www.gnu.org/licenses/agpl.html) - -Bug Tracker -=========== -Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. - -Credits -======= -* Cybrosys Techno Solutions - -Author ------- - -Developer: Saritha Sahadevan, saritha@cybrosys.in - -Maintainer ----------- - -This module is maintained by Cybrosys Technologies. - -For support and more information, please visit https://www.cybrosys.com. diff --git a/oh_appraisal/__init__.py b/oh_appraisal/__init__.py deleted file mode 100644 index 8ca69c8b3..000000000 --- a/oh_appraisal/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Saritha Sahadevan () -# -# 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_appraisal/__manifest__.py b/oh_appraisal/__manifest__.py deleted file mode 100644 index a1df9af10..000000000 --- a/oh_appraisal/__manifest__.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Saritha Sahadevan () -# -# 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': "Open HRMS Employee Appraisal", - 'version': '11.0.1.0.0', - 'summary': """Roll out appraisal plans and get the best of your workforce""", - 'description': """Roll out appraisal plans and get the best of your workforce""", - 'category': 'Human Resources', - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'maintainer': 'Cybrosys Techno Solutions', - 'website': "https://www.openhrms.com", - 'depends': ['base', 'hr', 'survey'], - 'data': [ - 'security/ir.model.access.csv', - 'security/hr_appraisal_security.xml', - 'views/hr_appraisal_survey_views.xml', - 'views/hr_appraisal_form_view.xml', - 'data/hr_appraisal_stages.xml' - ], - 'images': ["static/description/banner.jpg"], - 'license': "AGPL-3", - 'installable': True, - 'application': False, -} diff --git a/oh_appraisal/data/hr_appraisal_stages.xml b/oh_appraisal/data/hr_appraisal_stages.xml deleted file mode 100644 index c5a986e30..000000000 --- a/oh_appraisal/data/hr_appraisal_stages.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - To Start - 1 - - - - Sent Mail - 2 - - - - Done - 3 - - - - Cancel - 4 - - - diff --git a/oh_appraisal/doc/RELEASE_NOTES.md b/oh_appraisal/doc/RELEASE_NOTES.md deleted file mode 100644 index 3c1057c63..000000000 --- a/oh_appraisal/doc/RELEASE_NOTES.md +++ /dev/null @@ -1,6 +0,0 @@ -## Module - -#### 21.04.2018 -#### Version 11.0.1.0.0 -##### ADD -- Initial commit for Open HRMS Project diff --git a/oh_appraisal/models/__init__.py b/oh_appraisal/models/__init__.py deleted file mode 100644 index 314070ca5..000000000 --- a/oh_appraisal/models/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Saritha Sahadevan () -# -# 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 hr_appraisal_survey, hr_appraisal_form diff --git a/oh_appraisal/models/hr_appraisal_form.py b/oh_appraisal/models/hr_appraisal_form.py deleted file mode 100644 index 3ba80ab45..000000000 --- a/oh_appraisal/models/hr_appraisal_form.py +++ /dev/null @@ -1,193 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Saritha Sahadevan () -# -# 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, SUPERUSER_ID - - -class HrAppraisalForm(models.Model): - _name = 'hr.appraisal' - _inherit = 'mail.thread' - _rec_name = 'emp_id' - _description = 'Appraisal' - - @api.model - def _read_group_stage_ids(self, categories, domain, order): - """ Read all the stages and display it in the kanban view, even if it is empty.""" - category_ids = categories._search([], order=order, access_rights_uid=SUPERUSER_ID) - return categories.browse(category_ids) - - def _default_stage_id(self): - """Setting default stage""" - rec = self.env['hr.appraisal.stages'].search([], limit=1, order='sequence ASC') - return rec.id if rec else None - - emp_id = fields.Many2one('hr.employee', string="Employee", required=True) - appraisal_deadline = fields.Date(string="Appraisal Deadline", required=True) - final_interview = fields.Date(string="Final Interview", help="After sending survey link,you can" - " schedule final interview date") - company_id = fields.Many2one('res.company', string='Company', default=lambda self: self.env.user.company_id) - hr_manager = fields.Boolean(string="Manager", default=False) - hr_emp = fields.Boolean(string="Employee", default=False) - hr_colloborator = fields.Boolean(string="Collaborators", default=False) - hr_colleague = fields.Boolean(string="Colleague", default=False) - hr_manager_id = fields.Many2many('hr.employee', 'manager_appraisal_rel', string="Select Appraisal Reviewer") - hr_colleague_id = fields.Many2many('hr.employee', 'colleagues_appraisal_rel', - string="Select Appraisal Reviewer") - hr_colloborator_id = fields.Many2many('hr.employee', 'colloborators_appraisal_rel', - string="Select Appraisal Reviewer") - manager_survey_id = fields.Many2one('survey.survey', string="Select Opinion Form") - emp_survey_id = fields.Many2one('survey.survey', string="Select Appraisal Form") - colloborator_survey_id = fields.Many2one('survey.survey', string="Select Opinion Form") - colleague_survey_id = fields.Many2one('survey.survey', string="Select Opinion Form") - response_id = fields.Many2one('survey.user_input', "Response", ondelete="set null", oldname="response") - final_evaluation = fields.Text(string="Final Evaluation") - app_period_from = fields.Date("From", required=True, readonly=True, default=fields.Datetime.now()) - tot_comp_survey = fields.Integer(string="Count Answers", compute="_compute_completed_survey") - tot_sent_survey = fields.Integer(string="Count Sent Questions") - created_by = fields.Many2one('res.users', string="Created By", default=lambda self: self.env.uid) - state = fields.Many2one('hr.appraisal.stages', string='Stage', track_visibility='onchange', index=True, - default=lambda self: self._default_stage_id(), - group_expand='_read_group_stage_ids') - # for coloring the kanban box - color = fields.Integer(string="Color Index") - check_sent = fields.Boolean(string="Check Sent Mail", default=False, copy=False) - check_draft = fields.Boolean(string="Check Draft", default=True, copy=False) - check_cancel = fields.Boolean(string="Check Cancel", default=False, copy=False) - check_done = fields.Boolean(string="Check Done", default=False, copy=False) - - @api.multi - def action_done(self): - rec = self.env['hr.appraisal.stages'].search([('sequence', '=', 3)]) - self.state = rec.id - self.check_done = True - self.check_draft = False - - @api.multi - def action_set_draft(self): - rec = self.env['hr.appraisal.stages'].search([('sequence', '=', 1)]) - self.state = rec.id - self.check_draft = True - self.check_sent = False - - @api.multi - def action_cancel(self): - rec = self.env['hr.appraisal.stages'].search([('sequence', '=', 4)]) - self.state = rec.id - self.check_cancel = True - self.check_draft = False - - @api.multi - def fetch_appraisal_reviewer(self): - appraisal_reviewers = [] - if self.hr_manager and self.hr_manager_id and self.manager_survey_id: - appraisal_reviewers.append((self.hr_manager_id, self.manager_survey_id)) - if self.hr_emp and self.emp_survey_id: - appraisal_reviewers.append((self.emp_id, self.emp_survey_id)) - if self.hr_colloborator and self.hr_colloborator_id and self.colloborator_survey_id: - appraisal_reviewers.append((self.hr_colloborator_id, self.colloborator_survey_id)) - if self.hr_colleague and self.hr_colleague_id and self.colleague_survey_id: - appraisal_reviewers.append((self.hr_colleague_id, self.colleague_survey_id)) - return appraisal_reviewers - - @api.multi - def action_start_appraisal(self): - """ This function will start the appraisal by sending emails to the corresponding employees - specified in the appraisal""" - send_count = 0 - appraisal_reviewers_list = self.fetch_appraisal_reviewer() - for appraisal_reviewers, survey_id in appraisal_reviewers_list: - for reviewers in appraisal_reviewers: - url = survey_id.public_url - response = self.env['survey.user_input'].create( - {'survey_id': survey_id.id, 'partner_id': reviewers.user_id.partner_id.id, - 'appraisal_id': self.ids[0], 'deadline': self.appraisal_deadline, 'email': reviewers.user_id.email}) - token = response.token - if token: - url = url + '/' + token - mail_content = "Dear " + reviewers.name + "," + "
Please fill out the following survey " \ - "related to " + self.emp_id.name + "
Click here to access the survey.
" + \ - str(url) + "
Post your response for the appraisal till : " + str(self.appraisal_deadline) - values = {'model': 'hr.appraisal', - 'res_id': self.ids[0], - 'subject': survey_id.title, - 'body_html': mail_content, - 'parent_id': None, - 'email_from': self.env.user.email or None, - 'auto_delete': True, - } - values['email_to'] = reviewers.work_email - result = self.env['mail.mail'].create(values)._send() - if result is True: - send_count += 1 - self.write({'tot_sent_survey': send_count}) - rec = self.env['hr.appraisal.stages'].search([('sequence', '=', 2)]) - self.state = rec.id - self.check_sent = True - self.check_draft = False - - if self.hr_emp and self.emp_survey_id: - self.ensure_one() - if not self.response_id: - response = self.env['survey.user_input'].create( - {'survey_id': self.emp_survey_id.id, 'partner_id': self.emp_id.user_id.partner_id.id, - 'appraisal_id': self.ids[0], 'deadline': self.appraisal_deadline, 'email': reviewers.user_id.email}) - self.response_id = response.id - else: - response = self.response_id - return self.emp_survey_id.with_context(survey_token=response.token).action_start_survey() - - @api.multi - def action_get_answers(self): - """ This function will return all the answers posted related to this appraisal.""" - - tree_res = self.env['ir.model.data'].get_object_reference('survey', 'survey_user_input_tree') - tree_id = tree_res and tree_res[1] or False - form_res = self.env['ir.model.data'].get_object_reference('survey', 'survey_user_input_form') - form_id = form_res and form_res[1] or False - return { - 'model': 'ir.actions.act_window', - 'name': 'Answers', - 'type': 'ir.actions.act_window', - 'view_type': 'form', - 'view_mode': 'form,tree', - 'res_model': 'survey.user_input', - 'views': [(tree_id, 'tree'), (form_id, 'form')], - 'domain': [('state', '=', 'done'), ('appraisal_id', '=', self.ids[0])], - - } - - @api.one - def _compute_completed_survey(self): - - answers = self.env['survey.user_input'].search([('state', '=', 'done'), ('appraisal_id', '=', self.ids[0])]) - self.tot_comp_survey = len(answers) - - -class AppraisalStages(models.Model): - _name = 'hr.appraisal.stages' - _description = 'Appraisal Stages' - - name = fields.Char(string="Name") - sequence = fields.Integer(string="Sequence") - fold = fields.Boolean(string='Folded in Appraisal Pipeline', - help='This stage is folded in the kanban view when ' - 'there are no records in that stage to display.') diff --git a/oh_appraisal/models/hr_appraisal_survey.py b/oh_appraisal/models/hr_appraisal_survey.py deleted file mode 100644 index 7cb3b19fd..000000000 --- a/oh_appraisal/models/hr_appraisal_survey.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS Project -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Saritha Sahadevan () -# -# 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 - - -class SurveyInput(models.Model): - _inherit = 'survey.user_input' - - appraisal_id = fields.Many2one('hr.appraisal', string="Appriasal id") diff --git a/oh_appraisal/security/hr_appraisal_security.xml b/oh_appraisal/security/hr_appraisal_security.xml deleted file mode 100644 index 5f2121589..000000000 --- a/oh_appraisal/security/hr_appraisal_security.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - Hr Appraisal Multi Company - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - - - Appraisal - Helps to evaluate employees... - 3 - - - - Employee - - - - - - Manager - - - - - - - Appraisal Forms - [('created_by','=',user.id)] - - - - - - - - - - - Appraisal Forms - - - - - - - - - - - [('partner_id', '=', user.partner_id.id)] - - - diff --git a/oh_appraisal/security/ir.model.access.csv b/oh_appraisal/security/ir.model.access.csv deleted file mode 100644 index 1b64fc76c..000000000 --- a/oh_appraisal/security/ir.model.access.csv +++ /dev/null @@ -1,3 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_hr_appraisal_hr_appraisal,oh_appraisal.hr_appraisal,model_hr_appraisal,,1,1,1,1 -access_hr_appraisal_hr_appraisal1,oh_appraisal.hr_appraisal_stages,model_hr_appraisal_stages,,1,1,1,1 diff --git a/oh_appraisal/static/description/HRMS-BUTTON.png b/oh_appraisal/static/description/HRMS-BUTTON.png deleted file mode 100644 index 0f1b65bea..000000000 Binary files a/oh_appraisal/static/description/HRMS-BUTTON.png and /dev/null differ diff --git a/oh_appraisal/static/description/appraisal.png b/oh_appraisal/static/description/appraisal.png deleted file mode 100644 index 7a7f0a995..000000000 Binary files a/oh_appraisal/static/description/appraisal.png and /dev/null differ diff --git a/oh_appraisal/static/description/banner.jpg b/oh_appraisal/static/description/banner.jpg deleted file mode 100644 index 0823d44d3..000000000 Binary files a/oh_appraisal/static/description/banner.jpg and /dev/null differ diff --git a/oh_appraisal/static/description/cybro-service.png b/oh_appraisal/static/description/cybro-service.png deleted file mode 100644 index 252929a86..000000000 Binary files a/oh_appraisal/static/description/cybro-service.png and /dev/null differ diff --git a/oh_appraisal/static/description/cybro_logo.png b/oh_appraisal/static/description/cybro_logo.png deleted file mode 100644 index bb309114c..000000000 Binary files a/oh_appraisal/static/description/cybro_logo.png and /dev/null differ diff --git a/oh_appraisal/static/description/email.png b/oh_appraisal/static/description/email.png deleted file mode 100644 index ba236b416..000000000 Binary files a/oh_appraisal/static/description/email.png and /dev/null differ diff --git a/oh_appraisal/static/description/icon.png b/oh_appraisal/static/description/icon.png deleted file mode 100644 index b4f716e94..000000000 Binary files a/oh_appraisal/static/description/icon.png and /dev/null differ diff --git a/oh_appraisal/static/description/index.html b/oh_appraisal/static/description/index.html deleted file mode 100644 index 9810c7fbd..000000000 --- a/oh_appraisal/static/description/index.html +++ /dev/null @@ -1,153 +0,0 @@ -
-
-

OpenHRMS

-

Most advanced open source HR management software

-
-
- -
-
-
-
- - - -
-
- -
-
- -
-
-
-

Employee Appraisal

-

Roll out appraisal plans and get the best of your workforce.

-

Cybrosys Technologies

-
-
-

Major Features:

-
    -
  •   Create appraisal plans using interviews, questionnaires and feedback forms.
  • -
  •    Multiple appraisal methods like self-appraisal, colleague evaluation
  • -
-
-
-
- -
-
-
-

Overview

-

- Employee appraisal module is a component of Open HRMS suit, - it helps you to utilize the best of your human resource pool. - Implement appraisal strategies to keep the motivational and performance level - of your employees high. Appraisal module allows you to create Top Down or Bottom-up - evaluation plans and give timely feedbacks and complements for accomplishments. - -

-
-
-
- -
-
-

Appraisal Menu

-
-
- -
-
-
-

- Create a form for evaluating employee.Option to create Top Down or Bottom-up evaluation plans. -

-
-
-
- -
-
-

Email Notification

-
-

- Email notification is sent to the corresponding employee including the link to participate in the survey - -

-
-
-
- -
-
-
-
-
-
-

View Answers

-
-
- -
-
-
-

You can view all the answers here

- -
-
-
- -
-
-

Settings Menu

-
-

Set access rights for the employees.

-
-
-
- -
-
-
-
- -
-
-

Our Odoo Services

-
-
-
- - - -
-
-
- -
-

Need Any Help?

- -
\ No newline at end of file diff --git a/oh_appraisal/static/description/settings.png b/oh_appraisal/static/description/settings.png deleted file mode 100644 index 694ccabe1..000000000 Binary files a/oh_appraisal/static/description/settings.png and /dev/null differ diff --git a/oh_appraisal/static/description/view_answers.png b/oh_appraisal/static/description/view_answers.png deleted file mode 100644 index bed8d5e1a..000000000 Binary files a/oh_appraisal/static/description/view_answers.png and /dev/null differ diff --git a/oh_appraisal/views/hr_appraisal_form_view.xml b/oh_appraisal/views/hr_appraisal_form_view.xml deleted file mode 100644 index f207e56c9..000000000 --- a/oh_appraisal/views/hr_appraisal_form_view.xml +++ /dev/null @@ -1,181 +0,0 @@ - - - - - hr.appraisal.form - hr.appraisal - 1 - -
-
-
- -
- -
-
-
- - -
-
-
-
-
- - - hr.appraisal.tree - hr.appraisal - - - - - - - - - - - - hr.appraisal.kanban - hr.appraisal - - - - - - -
- -
-
- oe_kanban_text_red - Deadline: -
-
- Sent Questions: -
-
- Answers: -
-
- oe_kanban_text_red - Final Interview: -
-
-
-
-
-
-
-
-
- - - Appraisal - hr.appraisal - form - - kanban,tree,form - - - - - -
\ No newline at end of file diff --git a/oh_appraisal/views/hr_appraisal_survey_views.xml b/oh_appraisal/views/hr_appraisal_survey_views.xml deleted file mode 100644 index 495a3e1c4..000000000 --- a/oh_appraisal/views/hr_appraisal_survey_views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - hr_appraisal list - survey.user_input - 1 - - - - - - - - - \ No newline at end of file diff --git a/oh_employee_check_list/README.md b/oh_employee_check_list/README.md deleted file mode 100644 index a4fe568e3..000000000 --- a/oh_employee_check_list/README.md +++ /dev/null @@ -1,22 +0,0 @@ -Open HRMS 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 deleted file mode 100644 index 809f159c5..000000000 --- a/oh_employee_check_list/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS 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 deleted file mode 100644 index 140289d34..000000000 --- a/oh_employee_check_list/__manifest__.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS 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': 'Open HRMS Employee Checklist', - 'version': '11.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_check_list_view.xml', - 'views/employee_form_inherit_view.xml', - 'views/settings_view.xml', - 'views/checklist_view.xml', - ], - 'demo': ['data/data.xml'], - 'images': ['static/description/banner.jpg'], - 'license': 'AGPL-3', - 'installable': True, - 'auto_install': False, - 'application': False, -} diff --git a/oh_employee_check_list/data/data.xml b/oh_employee_check_list/data/data.xml deleted file mode 100644 index ef0581a14..000000000 --- a/oh_employee_check_list/data/data.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - Education Certificate - entry - - - Salary Certificate - entry - - - Experience Certificate - entry - - - Experience Certificate - exit - - - Salary Certificate - exit - - \ No newline at end of file diff --git a/oh_employee_check_list/doc/RELEASE_NOTES.md b/oh_employee_check_list/doc/RELEASE_NOTES.md deleted file mode 100644 index 60b7f9c0d..000000000 --- a/oh_employee_check_list/doc/RELEASE_NOTES.md +++ /dev/null @@ -1,6 +0,0 @@ -## Module 'oh_employee_check_list' - -#### 21.04.2018 -#### Version 11.0.1.0.0 -##### ADD -- Initial commit for Open HRMS Project diff --git a/oh_employee_check_list/models/__init__.py b/oh_employee_check_list/models/__init__.py deleted file mode 100644 index e221188a7..000000000 --- a/oh_employee_check_list/models/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS 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_entry_exit_check_list -from . import employee_master_inherit -from . import settings - - - - diff --git a/oh_employee_check_list/models/__pycache__/__init__.cpython-35.pyc b/oh_employee_check_list/models/__pycache__/__init__.cpython-35.pyc deleted file mode 100644 index 4f8cb8c84..000000000 Binary files a/oh_employee_check_list/models/__pycache__/__init__.cpython-35.pyc and /dev/null differ diff --git a/oh_employee_check_list/models/__pycache__/employee_entry_exit_check_list.cpython-35.pyc b/oh_employee_check_list/models/__pycache__/employee_entry_exit_check_list.cpython-35.pyc deleted file mode 100644 index 946b8b57f..000000000 Binary files a/oh_employee_check_list/models/__pycache__/employee_entry_exit_check_list.cpython-35.pyc and /dev/null differ diff --git a/oh_employee_check_list/models/__pycache__/employee_master_inherit.cpython-35.pyc b/oh_employee_check_list/models/__pycache__/employee_master_inherit.cpython-35.pyc deleted file mode 100644 index d348880d7..000000000 Binary files a/oh_employee_check_list/models/__pycache__/employee_master_inherit.cpython-35.pyc and /dev/null differ diff --git a/oh_employee_check_list/models/__pycache__/settings.cpython-35.pyc b/oh_employee_check_list/models/__pycache__/settings.cpython-35.pyc deleted file mode 100644 index 7339d090f..000000000 Binary files a/oh_employee_check_list/models/__pycache__/settings.cpython-35.pyc and /dev/null differ diff --git a/oh_employee_check_list/models/employee_entry_exit_check_list.py b/oh_employee_check_list/models/employee_entry_exit_check_list.py deleted file mode 100644 index 6775f4b03..000000000 --- a/oh_employee_check_list/models/employee_entry_exit_check_list.py +++ /dev/null @@ -1,54 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS 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 EmployeeEntryDocuments(models.Model): - _name = 'employee.checklist' - _inherit = ['mail.thread', 'mail.activity.mixin'] - _description = "Employee Documents" - - @api.multi - def name_get(self): - result = [] - for each in self: - if each.document_type == 'entry': - name = each.name + '_en' - elif each.document_type == 'exit': - name = each.name + '_ex' - elif each.document_type == 'other': - name = each.name + '_ot' - result.append((each.id, name)) - return result - - name = fields.Char(string='Name', copy=False, required=1) - document_type = fields.Selection([('entry', 'Entry Process'), - ('exit', 'Exit Process'), - ('other', 'Other')], string='Checklist Type', help='Type of Checklist', readonly=1, required=1) - - -class HrEmployeeDocumentInherit(models.Model): - _inherit = 'hr.employee.document' - - document_name = fields.Many2one('employee.checklist', string='Document', help='Type of Document', required=True) - diff --git a/oh_employee_check_list/models/employee_master_inherit.py b/oh_employee_check_list/models/employee_master_inherit.py deleted file mode 100644 index a0131ef48..000000000 --- a/oh_employee_check_list/models/employee_master_inherit.py +++ /dev/null @@ -1,87 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS 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): - """This method is used to unlink the checklist according to the documents""" - 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 deleted file mode 100644 index b32c603f4..000000000 --- a/oh_employee_check_list/models/settings.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS 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 deleted file mode 100644 index 10f0475b6..000000000 --- a/oh_employee_check_list/security/ir.model.access.csv +++ /dev/null @@ -1,4 +0,0 @@ -id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink -access_hr_employee_checklist_user,employee.checklist.user,model_employee_checklist,hr.group_hr_user,1,1,1,1 -access_hr_employee_checklist_emp,employee.checklist.emp,model_employee_checklist,base.group_user,1,0,0,0 -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 deleted file mode 100644 index 0f1b65bea..000000000 Binary files a/oh_employee_check_list/static/description/HRMS-BUTTON.png and /dev/null differ diff --git a/oh_employee_check_list/static/description/banner.jpg b/oh_employee_check_list/static/description/banner.jpg deleted file mode 100644 index d55e63353..000000000 Binary files a/oh_employee_check_list/static/description/banner.jpg and /dev/null differ diff --git a/oh_employee_check_list/static/description/cybro-service.png b/oh_employee_check_list/static/description/cybro-service.png deleted file mode 100644 index 252929a86..000000000 Binary files a/oh_employee_check_list/static/description/cybro-service.png and /dev/null differ diff --git a/oh_employee_check_list/static/description/cybro_logo.png b/oh_employee_check_list/static/description/cybro_logo.png deleted file mode 100644 index bb309114c..000000000 Binary files a/oh_employee_check_list/static/description/cybro_logo.png and /dev/null differ diff --git a/oh_employee_check_list/static/description/icon.png b/oh_employee_check_list/static/description/icon.png deleted file mode 100644 index 0885ca68e..000000000 Binary files a/oh_employee_check_list/static/description/icon.png and /dev/null differ diff --git a/oh_employee_check_list/static/description/index.html b/oh_employee_check_list/static/description/index.html deleted file mode 100644 index 9ea3f5708..000000000 --- a/oh_employee_check_list/static/description/index.html +++ /dev/null @@ -1,174 +0,0 @@ -
-
-

Open HRMS

-

Most advanced open source HR management software

-
-
- -
-
-
-
- - - - -
-
-
-
- -
-
-

Open HRMS 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 deleted file mode 100644 index d2e9b8e6e..000000000 Binary files a/oh_employee_check_list/static/description/oh_employee_form.png and /dev/null 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 deleted file mode 100644 index 63f49d419..000000000 Binary files a/oh_employee_check_list/static/description/oh_entry_checklist.png and /dev/null 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 deleted file mode 100644 index c971cacc9..000000000 Binary files a/oh_employee_check_list/static/description/oh_exit_chceklist.png and /dev/null 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 deleted file mode 100644 index 4eb07c0e1..000000000 Binary files a/oh_employee_check_list/static/description/oh_kanban_Settings.png and /dev/null 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 deleted file mode 100644 index 55db3068c..000000000 Binary files a/oh_employee_check_list/static/description/oh_kanban_view.png and /dev/null 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 deleted file mode 100644 index 4910100e7..000000000 Binary files a/oh_employee_check_list/static/description/oh_tree_view.png and /dev/null differ diff --git a/oh_employee_check_list/views/checklist_view.xml b/oh_employee_check_list/views/checklist_view.xml deleted file mode 100644 index 42e0b1111..000000000 --- a/oh_employee_check_list/views/checklist_view.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - 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_check_list_view.xml b/oh_employee_check_list/views/employee_check_list_view.xml deleted file mode 100644 index e40151bfc..000000000 --- a/oh_employee_check_list/views/employee_check_list_view.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - employee.checklist.form - employee.checklist - -
- - - - - - -
- - -
-
-
-
- - - employee.checklist.tree - employee.checklist - - - - - - - - - - hr.employee.document.form.inherit.view - hr.employee.document - - - - - - - -
\ 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 deleted file mode 100644 index 3ec84373a..000000000 --- a/oh_employee_check_list/views/employee_form_inherit_view.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - 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 deleted file mode 100644 index c1417aecf..000000000 --- a/oh_employee_check_list/views/settings_view.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - hr.settings.form - hr.settings - -
    -
    -
    - - - - - -
    -
    - - - Hr Settings - hr.settings - form - inline - - - - - -
    -
    \ No newline at end of file diff --git a/oh_employee_documents_expiry/README.md b/oh_employee_documents_expiry/README.md deleted file mode 100644 index ee8775b0a..000000000 --- a/oh_employee_documents_expiry/README.md +++ /dev/null @@ -1,26 +0,0 @@ -OH Employee Documents ---------------------- -Supporting Addon for Open HRMS, 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 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_documents_expiry/__init__.py b/oh_employee_documents_expiry/__init__.py deleted file mode 100644 index 809f159c5..000000000 --- a/oh_employee_documents_expiry/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS 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_documents_expiry/__manifest__.py b/oh_employee_documents_expiry/__manifest__.py deleted file mode 100644 index 692dc8e0c..000000000 --- a/oh_employee_documents_expiry/__manifest__.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS 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': 'Open HRMS Employee Documents', - 'version': '11.0.1.0.0', - 'summary': """Manages Employee Documents With Expiry Notifications.""", - 'description': """OH Addon: Manages Employee Related Documents with Expiry Notifications.""", - 'category': 'Generic Modules/Human Resources', - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'maintainer': 'Cybrosys Techno Solutions', - 'website': "https://www.openhrms.com", - 'depends': ['base', 'hr'], - 'data': [ - 'security/ir.model.access.csv', - 'views/employee_document_view.xml', - ], - 'images': ['static/description/banner.jpg'], - 'license': 'AGPL-3', - 'installable': True, - 'auto_install': False, - 'application': False, -} diff --git a/oh_employee_documents_expiry/docs/RELEASE_NOTES.md b/oh_employee_documents_expiry/docs/RELEASE_NOTES.md deleted file mode 100644 index 0688cc1c1..000000000 --- a/oh_employee_documents_expiry/docs/RELEASE_NOTES.md +++ /dev/null @@ -1,6 +0,0 @@ -## Module 'oh_employee_documents_expiry' - -#### 30.03.2018 -#### Version 11.0.1.0.0 -##### ADD -- Initial commit for Open HRMS Project diff --git a/oh_employee_documents_expiry/models/__init__.py b/oh_employee_documents_expiry/models/__init__.py deleted file mode 100644 index 9defd4198..000000000 --- a/oh_employee_documents_expiry/models/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS 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_documents - diff --git a/oh_employee_documents_expiry/models/__pycache__/__init__.cpython-35.pyc b/oh_employee_documents_expiry/models/__pycache__/__init__.cpython-35.pyc deleted file mode 100644 index 5ea2c0cd3..000000000 Binary files a/oh_employee_documents_expiry/models/__pycache__/__init__.cpython-35.pyc and /dev/null differ diff --git a/oh_employee_documents_expiry/models/__pycache__/employee_documents.cpython-35.pyc b/oh_employee_documents_expiry/models/__pycache__/employee_documents.cpython-35.pyc deleted file mode 100644 index 6219604f9..000000000 Binary files a/oh_employee_documents_expiry/models/__pycache__/employee_documents.cpython-35.pyc and /dev/null differ diff --git a/oh_employee_documents_expiry/models/employee_documents.py b/oh_employee_documents_expiry/models/employee_documents.py deleted file mode 100644 index 1dd7142f3..000000000 --- a/oh_employee_documents_expiry/models/employee_documents.py +++ /dev/null @@ -1,106 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# A part of Open HRMS 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 datetime import datetime, date, timedelta -from odoo import models, fields, api, _ -from odoo.exceptions import Warning - - -class HrEmployeeDocument(models.Model): - _name = 'hr.employee.document' - _description = 'HR Employee Documents' - - def mail_reminder(self): - """Sending document expiry notification to employees.""" - - 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 + ",
    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() - - @api.constrains('expiry_date') - def check_expr_date(self): - for each in self: - if each.expiry_date: - exp_date = fields.Date.from_string(each.expiry_date) - if exp_date < date.today(): - raise Warning('Your Document Is Expired.') - - name = fields.Char(string='Document Number', required=True, copy=False, help='You can give your' - 'Document number.') - 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'].sudo().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': _('''

    - Click to Create for New Documents -

    '''), - '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) diff --git a/oh_employee_documents_expiry/security/ir.model.access.csv b/oh_employee_documents_expiry/security/ir.model.access.csv deleted file mode 100644 index b2f79acfa..000000000 --- a/oh_employee_documents_expiry/security/ir.model.access.csv +++ /dev/null @@ -1,5 +0,0 @@ -id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink -"access_hr_employee_document_employee","hr.employee.document_employee","model_hr_employee_document","base.group_user",1,0,0,0 -"access_hr_employee_document_manager","hr.employee.document_manager","model_hr_employee_document","hr.group_hr_manager",1,1,1,1 -"access_hr_employee_document_user","hr.employee.document_user","model_hr_employee_document","hr.group_hr_user",1,1,1,0 - diff --git a/oh_employee_documents_expiry/static/description/HRMS-BUTTON.png b/oh_employee_documents_expiry/static/description/HRMS-BUTTON.png deleted file mode 100644 index 0f1b65bea..000000000 Binary files a/oh_employee_documents_expiry/static/description/HRMS-BUTTON.png and /dev/null differ diff --git a/oh_employee_documents_expiry/static/description/banner.jpg b/oh_employee_documents_expiry/static/description/banner.jpg deleted file mode 100644 index 02c616c31..000000000 Binary files a/oh_employee_documents_expiry/static/description/banner.jpg and /dev/null differ diff --git a/oh_employee_documents_expiry/static/description/cybro-service.png b/oh_employee_documents_expiry/static/description/cybro-service.png deleted file mode 100644 index 252929a86..000000000 Binary files a/oh_employee_documents_expiry/static/description/cybro-service.png and /dev/null differ diff --git a/oh_employee_documents_expiry/static/description/cybro_logo.png b/oh_employee_documents_expiry/static/description/cybro_logo.png deleted file mode 100644 index bb309114c..000000000 Binary files a/oh_employee_documents_expiry/static/description/cybro_logo.png and /dev/null differ diff --git a/oh_employee_documents_expiry/static/description/document_form.png b/oh_employee_documents_expiry/static/description/document_form.png deleted file mode 100644 index 5c570a339..000000000 Binary files a/oh_employee_documents_expiry/static/description/document_form.png and /dev/null differ diff --git a/oh_employee_documents_expiry/static/description/email.png b/oh_employee_documents_expiry/static/description/email.png deleted file mode 100644 index 90b70be6c..000000000 Binary files a/oh_employee_documents_expiry/static/description/email.png and /dev/null differ diff --git a/oh_employee_documents_expiry/static/description/icon.png b/oh_employee_documents_expiry/static/description/icon.png deleted file mode 100644 index 0bfe48f4d..000000000 Binary files a/oh_employee_documents_expiry/static/description/icon.png and /dev/null differ diff --git a/oh_employee_documents_expiry/static/description/index.html b/oh_employee_documents_expiry/static/description/index.html deleted file mode 100644 index d34489236..000000000 --- a/oh_employee_documents_expiry/static/description/index.html +++ /dev/null @@ -1,135 +0,0 @@ -
    -
    -

    Open HRMS

    -

    Most advanced open source HR management software

    -
    -
    - -
    -
    -
    -
    - - - - -
    -
    -
    -
    - -
    -
    -

    Open HRMS Employee Documents

    -

    Manages Employee Related Documents

    -

    Cybrosys Technologies

    -
    -
    -

    Features:

    -
    - Managing Documents of Employees.
    - Documents Types.
    - Expiry Date for Documents.
    - Validation for Expiry Date.
    - Mail Notification Based on Expiry Date.
    -
    -
    -
    - -
    -
    -
    -

    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) -

    -
    -
    -
    - -
    -
    -
    -

    -

    Documents Super Button

    -

    -

    -
    -
    - -
    -
    -
    -
    - -
    -
    -

    Documents Form

    -
    -
    - -
    -
    -
    -
    - -
    -
    -

    Notification Mail for Expiry Doc

    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -
    -

    Our Odoo Services

    -
    -
    -
    - - - -
    -
    -
    - -
    -

    Need Any Help?

    - -
    - - - diff --git a/oh_employee_documents_expiry/static/description/oh_document_form.png b/oh_employee_documents_expiry/static/description/oh_document_form.png deleted file mode 100644 index 594c65059..000000000 Binary files a/oh_employee_documents_expiry/static/description/oh_document_form.png and /dev/null differ diff --git a/oh_employee_documents_expiry/static/description/oh_employee_fom.png b/oh_employee_documents_expiry/static/description/oh_employee_fom.png deleted file mode 100644 index 53e0af5aa..000000000 Binary files a/oh_employee_documents_expiry/static/description/oh_employee_fom.png and /dev/null differ diff --git a/oh_employee_documents_expiry/views/employee_document_view.xml b/oh_employee_documents_expiry/views/employee_document_view.xml deleted file mode 100644 index b0de37e5b..000000000 --- a/oh_employee_documents_expiry/views/employee_document_view.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - Employee Document Expiration - 1 - days - -1 - - - code - model.mail_reminder() - - - - hr.employee.document.form - hr.employee.document - -
    - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - hr.employee.document.tree - hr.employee.document - - - - - - - - - - - hr.employee.form.view - hr.employee - - -
    - -
    -
    -
    -
    \ No newline at end of file