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 @@
-
-
-
- ☑ 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.
-
- 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.
-
- 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 @@
-
-
- ☑ 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.
-
- Badges are rewards of good work. Give them to people you believe deserve it.
-
-
-
-
-
-
-
-
-
-
\ 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 @@
-
-
- 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.
-
-
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 @@
-
-
★ 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
-
-
-
-
-
-
-
-
-
- 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 @@
-
-
- ☑ 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.
-
-
-
-
-
-
\ 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': _('''
- ☑ 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)
-