Browse Source

[UDT] Index Updated

pull/78/head
Sreejith 7 years ago
parent
commit
3ef0931ba2
  1. 6
      hr_employee_updation/README.md
  2. 8
      hr_employee_updation/__manifest__.py
  3. 11
      hr_employee_updation/doc/RELEASE_NOTES.md
  4. 28
      hr_employee_updation/models/hr_employee.py
  5. BIN
      hr_employee_updation/static/description/banner.jpg
  6. BIN
      hr_employee_updation/static/description/cybro-service.png
  7. BIN
      hr_employee_updation/static/description/emergency_contact.png
  8. BIN
      hr_employee_updation/static/description/family_info.png
  9. 55
      hr_employee_updation/static/description/index.html
  10. BIN
      hr_employee_updation/static/description/joining_date.png
  11. BIN
      hr_employee_updation/static/description/personal_info.png
  12. 25
      hr_employee_updation/views/hr_employee_view.xml

6
hr_employee_updation/README.md

@ -1,6 +1,6 @@
OHRMS Employee Info
-------------------
Supporting Addon for Open HRMS, Added Advance Fields On Employee Master
Open HRMS Employee Info
-----------------------
Supporting Addon for Open HRMS, Added Advanced Fields On Employee Master.
Connect with experts
--------------------

8
hr_employee_updation/__manifest__.py

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
###################################################################################
# A part of OpenHRMS Project <https://www.openhrms.com>
# A part of Open HRMS Project <https://www.openhrms.com>
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
@ -21,9 +21,9 @@
#
###################################################################################
{
'name': 'OHRMS Employee Info',
'version': '10.0.1.0.0',
'summary': """Adding Advance Fields In Employee Master""",
'name': 'Open HRMS Employee Info',
'version': '10.0.1.1.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',

11
hr_employee_updation/doc/RELEASE_NOTES.md

@ -0,0 +1,11 @@
## Module <hr_employee_updation>
#### 07.04.2018
#### Version 10.0.1.1.0
##### CHG
- Index updated.
#### 30.03.2018
#### Version 10.0.1.0.0
##### ADD
- Initial commit for Open HRMS Project

28
hr_employee_updation/models/hr_employee.py

@ -29,28 +29,26 @@ GENDER_SELECTION = [('male', 'Male'),
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')
relation = fields.Char(string='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 HrEmployeeDocumentName(models.Model):
_name = 'hr.document.document'
_description = 'HR Employee Documents'
name = fields.Char(string='Name')
class HrEmployeeFamily(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_id = fields.Many2one(string="Employee", comodel_name='hr.employee', invisible=1)
employee_ref = fields.Many2one(string="Is Employee", comodel_name='hr.employee')
employee_id = fields.Many2one(string="Employee", help='Select corresponding Employee', comodel_name='hr.employee',
invisible=1)
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')
member_id = fields.Char(string='Identification No', related='employee_ref.identification_id', store=True)
member_passport = fields.Char(string='Passport No', related='employee_ref.passport_id', store=True)
member_passport_expiry_date = fields.Date(string='Expiry Date', related='employee_ref.passport_expiry_date',
@ -59,7 +57,7 @@ class HrEmployeeFamily(models.Model):
('mother', 'Mother'),
('daughter', 'Daughter'),
('son', 'Son'),
('wife', 'Wife')], string='Relationship')
('wife', 'Wife')], string='Relationship', help='Relation with employee')
member_contact = fields.Char(string='Contact No', related='employee_ref.personal_mobile', store=True)
date_of_birth = fields.Date(string="Date of Birth", related='employee_ref.birthday', store=True)
gender = fields.Selection(string='Gender', selection=GENDER_SELECTION, related='employee_ref.gender', store=True)
@ -102,14 +100,14 @@ class HrEmployee(models.Model):
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')
passport_expiry_date = fields.Date(string='Expiry 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')
fam_ids = fields.One2many('hr.employee.family', 'employee_id', string='Family', help='Family Information')
class HrEmployeeAttachment(models.Model):

BIN
hr_employee_updation/static/description/banner.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 109 KiB

BIN
hr_employee_updation/static/description/cybro-service.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 KiB

After

Width:  |  Height:  |  Size: 221 KiB

BIN
hr_employee_updation/static/description/emergency_contact.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
hr_employee_updation/static/description/family_info.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

55
hr_employee_updation/static/description/index.html

@ -1,12 +1,11 @@
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">OpenHRMS</h2>
<section class="oe_container">
<div class="oe_row">
<h2 class="oe_slogan"><a href="https://www.openhrms.com">Open HRMS</a></h2>
<h3 class="oe_slogan">Most advanced open source HR management software</h3>
</div>
</section>
<section class="oe_container">
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced oe_mt32">
<div class="oe_span">
<div class="oe_demo oe_picture oe_screenshot">
@ -21,7 +20,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">OH Employee Info</h2>
<h2 class="oe_slogan">Open HRMS Employee Info</h2>
<h3 class="oe_slogan">Added Advance Fields On Employee Master</h3>
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a> </h4>
</div>
@ -49,6 +48,50 @@
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Identification ID & Passport ID</h4>
<div class="oe_span12">
<div class="oe_row_img oe_centered">
<img class="oe_picture oe_screenshot" src="personal_info.png">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Emergency Contact Number</h4>
<div class="oe_span12">
<div class="oe_row_img oe_centered">
<img class="oe_picture oe_screenshot" src="emergency_contact.png">
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Family Information</h4>
<div class="oe_span12">
<div class="oe_row_img oe_centered">
<img class="oe_picture oe_screenshot" src="family_info.png">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Joining Date</h4>
<div class="oe_span12">
<div class="oe_row_img oe_centered">
<img class="oe_picture oe_screenshot" src="joining_date.png">
</div>
</div>
</div>
</section>
<div class="row section-content">
<div class="col-md-6 img-content">
<h3>Our Odoo Services</h3>

BIN
hr_employee_updation/static/description/joining_date.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
hr_employee_updation/static/description/personal_info.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

25
hr_employee_updation/views/hr_employee_view.xml

@ -5,7 +5,7 @@
groups="hr.group_hr_manager,hr.group_hr_user"/>
<menuitem id="menu_hr_management" name="HR Management" parent="hr.menu_hr_root" sequence="5"
groups="hr.group_hr_manager,hr.group_hr_user"/>
<record model="ir.ui.view" id="hr_employee_inherit_form_view">
<record model="ir.ui.view" id="hr_employee_inherit_form_view">
<field name="name">hr.employee.form.view</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
@ -26,14 +26,21 @@
<field name="user_id" position="after">
<field name="joining_date"/>
</field>
<field name="identification_id" position="after">
<field name="id_expiry_date" groups="hr.group_hr_user" attrs="{'invisible': [('identification_id', 'in', [None,False])]}"/>
<field name="id_attachment_id" groups="hr.group_hr_user" widget="many2many_binary" class="oe_inline"/>
</field>
<field name="passport_id" position="after">
<field name="passport_expiry_date" groups="hr.group_hr_user" attrs="{'invisible': [('passport_id', 'in', [None,False])]}"/>
<field name="passport_attachment_id" groups="hr.group_hr_user" widget="many2many_binary" class="oe_inline"/>
</field>
<field name="identification_id" position="replace"/>
<field name="passport_id" position="replace"/>
<xpath expr="//page[@name='personal_information']/group/group[1]" position="after">
<group name="identification_id" string="Identification ID">
<field name="identification_id"/>
<field name="id_expiry_date" groups="hr.group_hr_user" attrs="{'invisible': [('identification_id', 'in', [None,False])]}"/>
<field name="id_attachment_id" groups="hr.group_hr_user" widget="many2many_binary" class="oe_inline" attrs="{'invisible': [('identification_id', 'in', [None,False])]}"/>
</group>
<group name="passport_id" string="Passport ID">
<field name="passport_id"/>
<field name="passport_expiry_date" groups="hr.group_hr_user" attrs="{'invisible': [('passport_id', 'in', [None,False])]}"/>
<field name="passport_attachment_id" groups="hr.group_hr_user" widget="many2many_binary" class="oe_inline" attrs="{'invisible': [('passport_id', 'in', [None,False])]}"/>
</group>
</xpath>
<page name="hr_settings" position="after">
<page name="family_info" string="Family Information" groups="hr.group_hr_user">
<group string="Family">

Loading…
Cancel
Save