Browse Source

[UDT] Index Updated

pull/78/head
Sreejith 7 years ago
parent
commit
a9fba079ae
  1. 2
      ohrms_core/__manifest__.py
  2. 5
      ohrms_core/doc/RELEASE_NOTES.md
  3. 89
      ohrms_core/models/hr_general_settings.py
  4. 3
      ohrms_core/static/description/index.html
  5. BIN
      ohrms_core/static/description/personal_info.png
  6. 56
      ohrms_core/views/hr_config_view.xml

2
ohrms_core/__manifest__.py

@ -22,7 +22,7 @@
###################################################################################
{
'name': 'Open HRMS Core',
'version': '10.0.2.0.0',
'version': '10.0.3.0.0',
'summary': """Open HRMS Suit: It brings all Open HRMS modules""",
'description': 'Main module of Open HRMS. It brings all others into a single module',
'category': 'Generic Modules/Human Resources',

5
ohrms_core/doc/RELEASE_NOTES.md

@ -1,5 +1,10 @@
## Module <ohrms_core>
#### 09.04.2018
#### Version 10.0.3.0.0
##### ADD
- Added additional fields in settings.
#### 31.03.2018
#### Version 10.0.2.0.0
##### CHG

89
ohrms_core/models/hr_general_settings.py

@ -59,4 +59,93 @@ class OHRMSConfiguration(models.TransientModel):
string='Manage biometric device (Model: ZKteco uFace 202) integration with HR attendance (Face + Thumb)',
help='Helps you to manage Biometric Device Integration.\n'
'- This installs the module Biometric Device Integration.')
test_module_hr_custody = fields.Boolean(default=False, invisible=True)
test_oh_employee_check_list = fields.Boolean(default=False, invisible=True)
test_module_hr_employee_shift = fields.Boolean(default=False, invisible=True)
test_module_hr_insurance = fields.Boolean(default=False, invisible=True)
test_module_oh_hr_lawsuit_management = fields.Boolean(default=False, invisible=True)
test_module_hr_resignation = fields.Boolean(default=False, invisible=True)
test_module_hr_vacation_mngmt = fields.Boolean(default=False, invisible=True)
test_module_oh_hr_zk_attendance = fields.Boolean(default=False, invisible=True)
@api.onchange('module_hr_custody')
def onchange_module_hr_custody(self):
for each in self:
if each.module_hr_custody:
if not self.env['ir.module.module'].search([('name', '=', 'hr_custody')]):
each.test_module_hr_custody = True
each.module_hr_custody = False
else:
each.test_module_hr_custody = False
@api.onchange('module_oh_employee_check_list')
def onchange_module_oh_employee_check_list(self):
for each in self:
if each.module_oh_employee_check_list:
if not self.env['ir.module.module'].search([('name', '=', 'oh_employee_check_list')]):
each.test_oh_employee_check_list = True
each.module_oh_employee_check_list = False
else:
each.test_oh_employee_check_list = False
@api.onchange('module_hr_employee_shift')
def onchange_module_hr_employee_shift(self):
for each in self:
if each.module_hr_employee_shift:
if not self.env['ir.module.module'].search([('name', '=', 'hr_employee_shift')]):
each.test_module_hr_employee_shift = True
each.module_hr_employee_shift = False
else:
each.test_module_hr_employee_shift = False
@api.onchange('module_hr_insurance')
def onchange_module_hr_insurance(self):
for each in self:
if each.module_hr_insurance:
if not self.env['ir.module.module'].search([('name', '=', 'hr_insurance')]):
each.test_module_hr_insurance = True
each.module_hr_insurance = False
else:
each.test_module_hr_insurance = False
@api.onchange('module_oh_hr_lawsuit_management')
def onchange_module_oh_hr_lawsuit_management(self):
for each in self:
if each.module_oh_hr_lawsuit_management:
if not self.env['ir.module.module'].search([('name', '=', 'oh_hr_lawsuit_management')]):
each.test_module_oh_hr_lawsuit_management = True
each.module_oh_hr_lawsuit_management = False
else:
each.test_module_oh_hr_lawsuit_management = False
@api.onchange('module_hr_resignation')
def onchange_module_hr_resignation(self):
for each in self:
if each.module_hr_resignation:
if not self.env['ir.module.module'].search([('name', '=', 'hr_resignation')]):
each.test_module_hr_resignation = True
each.module_hr_resignation = False
else:
each.test_module_hr_resignation = False
@api.onchange('module_hr_vacation_mngmt')
def onchange_module_hr_vacation_mngmt(self):
for each in self:
if each.module_hr_vacation_mngmt:
if not self.env['ir.module.module'].search([('name', '=', 'hr_vacation_mngmt')]):
each.test_module_hr_vacation_mngmt = True
each.module_hr_vacation_mngmt = False
else:
each.test_module_hr_vacation_mngmt = False
@api.onchange('module_oh_hr_zk_attendance')
def onchange_module_oh_hr_zk_attendance(self):
for each in self:
if each.module_oh_hr_zk_attendance:
if not self.env['ir.module.module'].search([('name', '=', 'oh_hr_zk_attendance')]):
each.test_module_oh_hr_zk_attendance = True
each.module_oh_hr_zk_attendance = False
else:
each.test_module_oh_hr_zk_attendance = False

3
ohrms_core/static/description/index.html

@ -12,7 +12,6 @@
<a href="https://www.openhrms.com/#request-demo">
<img src="HRMS-BUTTON.png">
</a>
<div class="oe_demo_footer oe_centeralign">Online Demo</div>
</div>
</div>
</div>
@ -274,7 +273,7 @@
<div class="oe_row oe_spaced">
<div class="oe_span6">
<div class="oe_row_img oe_centered">
<img class="oe_picture" src="extended_em_form.png">
<img class="oe_picture" src="personal_info.png">
</div>
</div>
<div class="oe_span6">

BIN
ohrms_core/static/description/personal_info.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

56
ohrms_core/views/hr_config_view.xml

@ -6,6 +6,14 @@
<field name="arch" type="xml">
<form string="Hr General Settings" class="oe_form_configuration" name="hr_config_form">
<header>
<style>
.label {
color: Red;
padding: 8px;
font-family: Arial;
}
.danger /* Red */
</style>
<button string="Apply" type="object" name="execute" class="oe_highlight"/>
<button string="Cancel" type="object" name="cancel" class="oe_link"/>
</header>
@ -15,41 +23,89 @@
<div>
<field name="module_hr_custody" class="oe_inline"/>
<label for="module_hr_custody"/>
<field name="test_module_hr_custody" invisible="True"/>
<br/>
<span class="label danger" attrs="{'invisible':[('test_module_hr_custody','=', False)]}">
Module is not Present in Your Repository.
<a href="https://www.odoo.com/apps/modules/10.0/hr_custody/" target="_blank"> Get This App </a>
</span>
</div>
<label string="Employee Checklist"/>
<div>
<field name="module_oh_employee_check_list" class="oe_inline"/>
<label for="module_oh_employee_check_list"/>
<field name="test_oh_employee_check_list" invisible="True"/>
<br/>
<span class="label danger" attrs="{'invisible':[('test_oh_employee_check_list','=', False)]}">
Module is not Present in Your Repository.
<a href="https://www.odoo.com/apps/modules/10.0/oh_employee_check_list/" target="_blank"> Get This App </a>
</span>
</div>
<label string="Employee Shift"/>
<div>
<field name="module_hr_employee_shift" class="oe_inline"/>
<label for="module_hr_employee_shift"/>
<field name="test_module_hr_employee_shift" invisible="True"/>
<br/>
<span class="label danger" attrs="{'invisible':[('test_module_hr_employee_shift','=', False)]}">
Module is not Present in Your Repository.
<a href="https://www.odoo.com/apps/modules/10.0/hr_employee_shift/" target="_blank"> Get This App </a>
</span>
</div>
<label string="Employee Insurance"/>
<div>
<field name="module_hr_insurance" class="oe_inline"/>
<label for="module_hr_insurance"/>
<field name="test_module_hr_insurance" invisible="True"/>
<br/>
<span class="label danger" attrs="{'invisible':[('test_module_hr_insurance','=', False)]}">
Module is not Present in Your Repository.
<a href="https://www.odoo.com/apps/modules/10.0/hr_insurance/" target="_blank"> Get This App </a>
</span>
</div>
<label string="Lawsuit Management"/>
<div>
<field name="module_oh_hr_lawsuit_management" class="oe_inline"/>
<label for="module_oh_hr_lawsuit_management"/>
<field name="test_module_oh_hr_lawsuit_management" invisible="True"/>
<br/>
<span class="label danger" attrs="{'invisible':[('test_module_oh_hr_lawsuit_management','=', False)]}">
Module is not Present in Your Repository.
<a href="https://www.odoo.com/apps/modules/10.0/oh_hr_lawsuit_management/" target="_blank"> Get This App </a>
</span>
</div>
<label string="Resignation Process"/>
<div>
<field name="module_hr_resignation" class="oe_inline"/>
<label for="module_hr_resignation"/>
<field name="test_module_hr_resignation" invisible="True"/>
<br/>
<span class="label danger" attrs="{'invisible':[('test_module_hr_resignation','=', False)]}">
Module is not Present in Your Repository.
<a href="https://www.odoo.com/apps/modules/10.0/hr_resignation/" target="_blank"> Get This App </a>
</span>
</div>
<label string="Vacation Management"/>
<div>
<field name="module_hr_vacation_mngmt" class="oe_inline"/>
<label for="module_hr_vacation_mngmt"/>
<field name="test_module_hr_vacation_mngmt" invisible="True"/>
<br/>
<span class="label danger" attrs="{'invisible':[('test_module_hr_vacation_mngmt','=', False)]}">
Module is not Present in Your Repository.
<a href="https://www.odoo.com/apps/modules/10.0/hr_vacation_mngmt/" target="_blank"> Get This App </a>
</span>
</div>
<label string="Biometric Device Integration"/>
<div>
<field name="module_oh_hr_zk_attendance" class="oe_inline"/>
<label for="module_oh_hr_zk_attendance"/>
<field name="test_module_oh_hr_zk_attendance" invisible="True"/>
<br/>
<span class="label danger" attrs="{'invisible':[('test_module_oh_hr_zk_attendance','=', False)]}">
Module is not Present in Your Repository.
<a href="https://www.odoo.com/apps/modules/10.0/oh_hr_zk_attendance/" target="_blank"> Get This App </a>
</span>
</div>
</group>
</div>

Loading…
Cancel
Save