Skip to content

Commit 71f5ae9

Browse files
committed
OHRMS
Added OHRMS
1 parent 09db511 commit 71f5ae9

File tree

250 files changed

+6173
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+6173
-9
lines changed

Diff for: hr_employee_updation/README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Open HRMS Employee Info
2+
-----------------------
3+
Supporting Addon for Open HRMS, Added Advanced Fields On Employee Master.
4+
5+
Connect with experts
6+
--------------------
7+
8+
If you have any question/queries/additional works on OpenHRMS or this module, You can drop an email directly to Cybrosys.
9+
10+
Contacts
11+
--------
12+
13+
Jesni Banu - [email protected]
14+
15+
Website:
16+
https://www.openhrms.com
17+
https://www.cybrosys.com

Diff for: hr_employee_updation/__init__.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# -*- coding: utf-8 -*-
2+
###################################################################################
3+
# A part of Open HRMS Project <https://www.openhrms.com>
4+
#
5+
# Cybrosys Technologies Pvt. Ltd.
6+
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
7+
# Author: Jesni Banu (<https://www.cybrosys.com>)
8+
#
9+
# This program is free software: you can modify
10+
# it under the terms of the GNU Affero General Public License (AGPL) as
11+
# published by the Free Software Foundation, either version 3 of the
12+
# License, or (at your option) any later version.
13+
#
14+
# This program is distributed in the hope that it will be useful,
15+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
# GNU Affero General Public License for more details.
18+
#
19+
# You should have received a copy of the GNU Affero General Public License
20+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
21+
#
22+
###################################################################################
23+
from . import models
24+
25+

Diff for: hr_employee_updation/__manifest__.py

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# -*- coding: utf-8 -*-
2+
###################################################################################
3+
# A part of Open HRMS Project <https://www.openhrms.com>
4+
#
5+
# Cybrosys Technologies Pvt. Ltd.
6+
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
7+
# Author: Jesni Banu (<https://www.cybrosys.com>)
8+
#
9+
# This program is free software: you can modify
10+
# it under the terms of the GNU Affero General Public License (AGPL) as
11+
# published by the Free Software Foundation, either version 3 of the
12+
# License, or (at your option) any later version.
13+
#
14+
# This program is distributed in the hope that it will be useful,
15+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
# GNU Affero General Public License for more details.
18+
#
19+
# You should have received a copy of the GNU Affero General Public License
20+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
21+
#
22+
###################################################################################
23+
{
24+
'name': 'Open HRMS Employee Info',
25+
'version': '12.0.2.0.0',
26+
'summary': """Adding Advanced Fields In Employee Master""",
27+
'description': 'This module helps you to add more information in employee records.',
28+
'category': 'Generic Modules/Human Resources',
29+
'author': 'Cybrosys Techno Solutions',
30+
'company': 'Cybrosys Techno Solutions',
31+
'website': "https://www.openhrms.com",
32+
'depends': ['base', 'hr', 'mail', 'hr_gamification'],
33+
'data': [
34+
'security/ir.model.access.csv',
35+
'views/hr_employee_view.xml',
36+
'views/hr_notification.xml',
37+
],
38+
'demo': [],
39+
'images': ['static/description/banner.jpg'],
40+
'license': 'AGPL-3',
41+
'installable': True,
42+
'auto_install': False,
43+
'application': False,
44+
}

Diff for: hr_employee_updation/doc/RELEASE_NOTES.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Module <hr_employee_updation>
2+
3+
#### 19.05.2018
4+
#### Version 11.0.2.0.0
5+
##### FIX
6+
- Bug fixed (key error: employee_ref)
7+
8+
#### 10.04.2018
9+
#### Version 11.0.1.0.0
10+
##### ADD
11+
- Initial commit for Open HRMS Project

Diff for: hr_employee_updation/models/__init__.py

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# -*- coding: utf-8 -*-
2+
###################################################################################
3+
# A part of Open HRMS Project <https://www.openhrms.com>
4+
#
5+
# Cybrosys Technologies Pvt. Ltd.
6+
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
7+
# Author: Jesni Banu (<https://www.cybrosys.com>)
8+
#
9+
# This program is free software: you can modify
10+
# it under the terms of the GNU Affero General Public License (AGPL) as
11+
# published by the Free Software Foundation, either version 3 of the
12+
# License, or (at your option) any later version.
13+
#
14+
# This program is distributed in the hope that it will be useful,
15+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
# GNU Affero General Public License for more details.
18+
#
19+
# You should have received a copy of the GNU Affero General Public License
20+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
21+
#
22+
###################################################################################
23+
from . import hr_employee
24+
25+
26+
27+
219 Bytes
Binary file not shown.
Binary file not shown.

Diff for: hr_employee_updation/models/hr_employee.py

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# -*- coding: utf-8 -*-
2+
###################################################################################
3+
# A part of Open HRMS Project <https://www.openhrms.com>
4+
#
5+
# Cybrosys Technologies Pvt. Ltd.
6+
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
7+
# Author: Jesni Banu (<https://www.cybrosys.com>)
8+
#
9+
# This program is free software: you can modify
10+
# it under the terms of the GNU Affero General Public License (AGPL) as
11+
# published by the Free Software Foundation, either version 3 of the
12+
# License, or (at your option) any later version.
13+
#
14+
# This program is distributed in the hope that it will be useful,
15+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
# GNU Affero General Public License for more details.
18+
#
19+
# You should have received a copy of the GNU Affero General Public License
20+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
21+
#
22+
###################################################################################
23+
from datetime import datetime, timedelta
24+
from odoo import models, fields, _
25+
26+
GENDER_SELECTION = [('male', 'Male'),
27+
('female', 'Female'),
28+
('other', 'Other')]
29+
30+
31+
class HrEmployeeContractName(models.Model):
32+
"""This class is to add emergency contact table"""
33+
34+
_name = 'hr.emergency.contact'
35+
_description = 'HR Emergency Contact'
36+
37+
number = fields.Char(string='Number', help='Contact Number')
38+
relation = fields.Char(string='Contact', help='Relation with employee')
39+
employee_obj = fields.Many2one('hr.employee', invisible=1)
40+
41+
42+
class HrEmployeeFamilyInfo(models.Model):
43+
"""Table for keep employee family information"""
44+
45+
_name = 'hr.employee.family'
46+
_description = 'HR Employee Family'
47+
48+
member_name = fields.Char(string='Name', related='employee_ref.name', store=True)
49+
employee_ref = fields.Many2one(string="Is Employee",
50+
help='If family member currently is an employee of same company, '
51+
'then please tick this field',
52+
comodel_name='hr.employee')
53+
employee_id = fields.Many2one(string="Employee", help='Select corresponding Employee', comodel_name='hr.employee',
54+
invisible=1)
55+
relation = fields.Selection([('father', 'Father'),
56+
('mother', 'Mother'),
57+
('daughter', 'Daughter'),
58+
('son', 'Son'),
59+
('wife', 'Wife')], string='Relationship', help='Relation with employee')
60+
member_contact = fields.Char(string='Contact No', related='employee_ref.personal_mobile', store=True)
61+
62+
63+
class HrEmployee(models.Model):
64+
_inherit = 'hr.employee'
65+
66+
def mail_reminder(self):
67+
"""Sending expiry date notification for ID and Passport"""
68+
69+
now = datetime.now() + timedelta(days=1)
70+
date_now = now.date()
71+
match = self.search([])
72+
for i in match:
73+
if i.id_expiry_date:
74+
exp_date = fields.Date.from_string(i.id_expiry_date) - timedelta(days=14)
75+
if date_now >= exp_date:
76+
mail_content = " Hello " + i.name + ",<br>Your ID " + i.identification_id + "is going to expire on " + \
77+
str(i.id_expiry_date) + ". Please renew it before expiry date"
78+
main_content = {
79+
'subject': _('ID-%s Expired On %s') % (i.identification_id, i.id_expiry_date),
80+
'author_id': self.env.user.partner_id.id,
81+
'body_html': mail_content,
82+
'email_to': i.work_email,
83+
}
84+
self.env['mail.mail'].sudo().create(main_content).send()
85+
match1 = self.search([])
86+
for i in match1:
87+
if i.passport_expiry_date:
88+
exp_date1 = fields.Date.from_string(i.passport_expiry_date) - timedelta(days=180)
89+
if date_now >= exp_date1:
90+
mail_content = " Hello " + i.name + ",<br>Your Passport " + i.passport_id + "is going to expire on " + \
91+
str(i.passport_expiry_date) + ". Please renew it before expiry date"
92+
main_content = {
93+
'subject': _('Passport-%s Expired On %s') % (i.passport_id, i.passport_expiry_date),
94+
'author_id': self.env.user.partner_id.id,
95+
'body_html': mail_content,
96+
'email_to': i.work_email,
97+
}
98+
self.env['mail.mail'].sudo().create(main_content).send()
99+
personal_mobile = fields.Char(string='Mobile', related='address_home_id.mobile', store=True)
100+
emergency_contact = fields.One2many('hr.emergency.contact', 'employee_obj', string='Emergency Contact')
101+
joining_date = fields.Date(string='Joining Date')
102+
id_expiry_date = fields.Date(string='Expiry Date', help='Expiry date of Identification ID')
103+
passport_expiry_date = fields.Date(string='Expiry Date', help='Expiry date of Passport ID')
104+
id_attachment_id = fields.Many2many('ir.attachment', 'id_attachment_rel', 'id_ref', 'attach_ref',
105+
string="Attachment", help='You can attach the copy of your Id')
106+
passport_attachment_id = fields.Many2many('ir.attachment', 'passport_attachment_rel', 'passport_ref', 'attach_ref1',
107+
string="Attachment",
108+
help='You can attach the copy of Passport')
109+
fam_ids = fields.One2many('hr.employee.family', 'employee_id', string='Family', help='Family Information')
110+
111+
112+

Diff for: hr_employee_updation/security/ir.model.access.csv

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
2+
"access_hr_employee_family_employee","hr.employee.family_employee","model_hr_employee_family","base.group_user",1,0,0,0
3+
"access_hr_employee_family_manager","hr.employee.family_manager","model_hr_employee_family","hr.group_hr_manager",1,1,1,1
4+
"access_hr_employee_family_user","hr.employee.family_user","model_hr_employee_family","hr.group_hr_user",1,1,1,1
5+
"access_hr_employee_emergency_contact","hr.emergency.contact","model_hr_emergency_contact","base.group_user",1,0,0,0
6+
"access_hr_employee_emergency_contact_manager","hr.emergency.contact","model_hr_emergency_contact","hr.group_hr_manager",1,1,1,1
7+
"access_hr_employee_emergency_contact_user","hr.emergency.contact","model_hr_emergency_contact","hr.group_hr_user",1,1,1,1
16.6 KB
Loading

Diff for: hr_employee_updation/static/description/banner.jpg

109 KB
Loading
221 KB
Loading
49.6 KB
Loading
16.4 KB
Loading
18.3 KB
Loading

Diff for: hr_employee_updation/static/description/icon.png

31.1 KB
Loading

Diff for: hr_employee_updation/static/description/index.html

+135
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
<section class="oe_container">
2+
<div class="oe_row">
3+
<h2 class="oe_slogan"><a href="https://www.openhrms.com">Open HRMS</a></h2>
4+
<h3 class="oe_slogan">Most advanced open source HR management software</h3>
5+
</div>
6+
</section>
7+
8+
<section class="oe_container oe_dark">
9+
<div class="oe_row oe_spaced oe_mt32">
10+
<div class="oe_span">
11+
<div class="oe_demo oe_picture oe_screenshot">
12+
<a href="https://www.openhrms.com/#request-demo">
13+
<img src="HRMS-BUTTON.png">
14+
</a>
15+
<div class="oe_demo_footer oe_centeralign">Online Demo</div>
16+
</div>
17+
</div>
18+
</div>
19+
</section>
20+
21+
<section class="oe_container">
22+
<div class="oe_row oe_spaced">
23+
<h2 class="oe_slogan">Open HRMS Employee Info</h2>
24+
<h3 class="oe_slogan">Added Advance Fields On Employee Master</h3>
25+
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a> </h4>
26+
</div>
27+
<div class="oe_row oe_spaced" style="padding-left:65px;">
28+
<h4>Features:</h4>
29+
<div>
30+
<span style="color:green;"> &#9745; </span> Added family information.<br/>
31+
<span style="color:green;"> &#9745; </span> Added joining date and contact info.<br/>
32+
<span style="color:green;"> &#9745; </span> Added passport and id expiry date and attachments.<br/>
33+
<span style="color:green;"> &#9745; </span> Added expiry notification for passport and id documents.<br/>
34+
</div>
35+
</div>
36+
</section>
37+
38+
<section class="oe_container oe_dark">
39+
<div class="oe_row oe_spaced">
40+
<div class="oe_picture">
41+
<h3 class="oe_slogan">Overview</h3>
42+
<p class="oe_mt32 text-justify" style="text-align: center;">
43+
This module added some advanced features on Employee master.
44+
Such as family info, joining date, passport and Id expiry date.
45+
This module also sends expiry notification for passport and id to corresponding employees.
46+
</p>
47+
</div>
48+
</div>
49+
</section>
50+
51+
<section class="oe_container">
52+
<div class="oe_row oe_spaced">
53+
<h4 class="oe_slogan">Identification ID & Passport ID</h4>
54+
<div class="oe_span12">
55+
<div class="oe_row_img oe_centered">
56+
<img class="oe_picture oe_screenshot" src="personal_info.png">
57+
</div>
58+
</div>
59+
</div>
60+
</section>
61+
62+
<section class="oe_container oe_dark">
63+
<div class="oe_row oe_spaced">
64+
<h4 class="oe_slogan">Emergency Contact Number</h4>
65+
<div class="oe_span12">
66+
<div class="oe_row_img oe_centered">
67+
<img class="oe_picture oe_screenshot" src="emergency_contact.png">
68+
</div>
69+
</div>
70+
</div>
71+
</section>
72+
73+
<section class="oe_container">
74+
<div class="oe_row oe_spaced">
75+
<h4 class="oe_slogan">Family Information</h4>
76+
<div class="oe_span12">
77+
<div class="oe_row_img oe_centered">
78+
<img class="oe_picture oe_screenshot" src="family_info.png">
79+
</div>
80+
</div>
81+
</div>
82+
</section>
83+
84+
<section class="oe_container oe_dark">
85+
<div class="oe_row oe_spaced">
86+
<h4 class="oe_slogan">Joining Date</h4>
87+
<div class="oe_span12">
88+
<div class="oe_row_img oe_centered">
89+
<img class="oe_picture oe_screenshot" src="joining_date.png">
90+
</div>
91+
</div>
92+
</div>
93+
</section>
94+
95+
<div class="row section-content">
96+
<div class="col-md-6 img-content">
97+
<h3>Our Odoo Services</h3>
98+
</div>
99+
<div class="bc-span col-md-12">
100+
<div class="inner-span">
101+
<a target="_blank" href="https://www.openhrms.com">
102+
<img class="img-border img-responsive thumbnail" src="cybro-service.png">
103+
</a>
104+
</div>
105+
</div>
106+
</div>
107+
108+
<section class="oe_container">
109+
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
110+
<div class="oe_slogan" style="margin-top:10px !important;">
111+
<div>
112+
<a
113+
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
114+
href="https://www.cybrosys.com/contact/" target="_blank"><i
115+
class="fa fa-phone"></i> Contact Us </a>
116+
117+
<a
118+
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
119+
href="https://www.odoo.com/apps/modules/browse?search=open+hrms" target="_blank"><i
120+
class="fa fa-suitcase"></i> Other Open HRMS Addons </a>
121+
122+
<a
123+
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
124+
href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank"><i
125+
class="fa fa-wrench"></i> Request Customization </a>
126+
127+
</div>
128+
<br>
129+
<a href="https://www.cybrosys.com/" target="_blank">
130+
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block">
131+
</a>
132+
</div>
133+
</section>
134+
135+
32.7 KB
Loading
54.7 KB
Loading

0 commit comments

Comments
 (0)