Browse Source

[ADD] Initial Commit

pull/78/head
Sreejith 7 years ago
parent
commit
2e20b6f182
  1. 1
      ohrms_core/__init__.py
  2. 47
      ohrms_core/__manifest__.py
  3. 1
      ohrms_core/models/__init__.py
  4. 53
      ohrms_core/models/hr_general_settings.py
  5. BIN
      ohrms_core/static/description/HRMS-BUTTON.png
  6. BIN
      ohrms_core/static/description/banner.jpg
  7. BIN
      ohrms_core/static/description/cybro-service.png
  8. BIN
      ohrms_core/static/description/cybro_logo.png
  9. BIN
      ohrms_core/static/description/icon.png
  10. 76
      ohrms_core/static/description/index.html
  11. 79
      ohrms_core/views/hr_config_view.xml
  12. 75
      ohrms_core/views/menu_arrangement_view.xml

1
ohrms_core/__init__.py

@ -0,0 +1 @@
from . import models

47
ohrms_core/__manifest__.py

@ -0,0 +1,47 @@
# -*- coding: utf-8 -*-
###################################################################################
# A part of OpenHRMS Project <https://www.openhrms.com>
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
# Author: Jesni Banu (<https://www.cybrosys.com>)
#
# 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 <https://www.gnu.org/licenses/>.
#
###################################################################################
{
'name': 'OHRMS Core',
'version': '10.0.1.0.0',
'summary': """OHRMS Core""",
'description': 'OHRMS Core',
'category': 'Human Resources',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'website': "http://www.openhrms.com",
'depends': ['hr_payroll_account', 'hr_gamification', 'hr_employee_updation', 'hr_recruitment', 'hr_attendance', 'hr_holidays',
'hr_payroll', 'hr_expense', 'hr_leave_request_aliasing', 'hr_timesheet', 'oh_appraisal',
'oh_employee_creation_from_user', 'oh_employee_documents_expiry', 'hr_multi_company',
'ohrms_loan_accounting', 'ohrms_salary_advance', 'hr_reminder', 'hr_reward_warning',
'timesheets_by_employee', 'hr_theme'],
'data': [
'views/menu_arrangement_view.xml',
'views/hr_config_view.xml',
],
'images': [],
'license': 'AGPL-3',
'demo': [],
'installable': True,
'auto_install': False,
'application': False,
}

1
ohrms_core/models/__init__.py

@ -0,0 +1 @@
import hr_general_settings

53
ohrms_core/models/hr_general_settings.py

@ -0,0 +1,53 @@
# -*- coding: utf-8 -*-
from odoo import api, fields, models
class ProjectConfiguration(models.TransientModel):
_name = 'hr.config.settings'
_inherit = 'res.config.settings'
module_hr_custody = fields.Boolean(
string='Custody Management',
help='Helps you to manage Custody Requests.\n'
'- This installs the module Custody Management.')
module_employee_check_list = fields.Boolean(
string='Employee Checklist',
help='Helps you to manage Employee Checklist.\n'
'- This installs the module Employee Checklist.')
module_hr_employee_shift = fields.Boolean(
string='Employee Shift',
help='Helps you to manage Employee Shift.\n'
'- This installs the module Employee Shift.')
module_hr_employee_transfer = fields.Boolean(
string='Employee Transfer',
help='Helps you to manage Employee Transfer.\n'
'- This installs the module Employee Transfer.')
module_hr_insurance = fields.Boolean(
string='Employee Insurance',
help='Helps you to manage Employee Insurance.\n'
'- This installs the module Employee Insurance.')
module_hr_lawsuit_management = fields.Boolean(
string='Lawsuit Management',
help='Helps you to manage Lawsuit Management.\n'
'- This installs the module Lawsuit Management.')
module_hr_payslip_monthly_report = fields.Boolean(
string='Payroll-Payslip Reporting',
help='Helps you to manage Payroll-Payslip Reporting.\n'
'- This installs the module Payroll-Payslip Reporting.')
module_hr_recruitment_validations = fields.Boolean(
string='Advanced HR Recruitment',
help='Helps you to manage Advanced HR Recruitment.\n'
'- This installs the module Advanced HR Recruitment.')
module_hr_resignation = fields.Boolean(
string='Resignation Process',
help='Helps you to manage Resignation Process.\n'
'- This installs the module Resignation Process.')
module_hr_vacation_mngmt = fields.Boolean(
string='Vacation Management',
help='Helps you to manage Vacation Management.\n'
'- This installs the module Vacation Management.')
module_hr_zk_attendance = fields.Boolean(
string='Biometric Device Integration',
help='Helps you to manage Biometric Device Integration.\n'
'- This installs the module Biometric Device Integration.')

BIN
ohrms_core/static/description/HRMS-BUTTON.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
ohrms_core/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

BIN
ohrms_core/static/description/cybro_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
ohrms_core/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

76
ohrms_core/static/description/index.html

@ -0,0 +1,76 @@
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">OpenHRMS</h2>
<h3 class="oe_slogan">Most advanced open source HR management software</h3>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced oe_mt32">
<div class="oe_span">
<div class="oe_demo oe_picture oe_screenshot">
<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>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">OHRMS</h2>
<h3 class="oe_slogan">Managing Every Process of HR</h3>
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a> </h4>
</div>
<div class="oe_row oe_spaced" style="padding-left:65px;">
<h4>Features:</h4>
<div>
<span style="color:green;"> &#9745; </span><br/>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="oe_picture">
<h3 class="oe_slogan">Overview</h3>
<p class="oe_mt32 text-justify" style="text-align: center;">
</p>
</div>
</div>
</section>
<div class="row section-content">
<div class="col-md-6 img-content">
<h3>Our Odoo Services</h3>
</div>
<div class="bc-span col-md-12">
<div class="inner-span">
<a target="_blank" href="https://www.openhrms.com">
<img class="img-border img-responsive thumbnail" src="cybro-service.png">
</a>
</div>
</div>
</div>
<section class="oe_container">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<div>
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i
class="fa fa-envelope"></i> Email </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/contact/"><i
class="fa fa-phone"></i> Contact Us </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block">
</div>
</section>

79
ohrms_core/views/hr_config_view.xml

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_hr_general_config" model="ir.ui.view">
<field name="name">General Settings</field>
<field name="model">hr.config.settings</field>
<field name="arch" type="xml">
<form string="Hr General Settings" class= "oe_form_configuration">
<header>
<button string="Apply" type="object" name="execute" class="oe_highlight"/>
or
<button string="Cancel" type="object" name="cancel" class="oe_link"/>
</header>
<separator string="Advanced Features"/>
<group>
<label for="id" string="Advanced Modules"/>
<div>
<div>
<field name="module_hr_custody" class="oe_inline"/>
<label for="module_hr_custody"/>
</div>
<div>
<field name="module_employee_check_list" class="oe_inline"/>
<label for="module_employee_check_list"/>
</div>
<div>
<field name="module_hr_employee_shift" class="oe_inline"/>
<label for="module_hr_employee_shift"/>
</div>
<div>
<field name="module_hr_employee_transfer" class="oe_inline"/>
<label for="module_hr_employee_transfer"/>
</div>
<div>
<field name="module_hr_insurance" class="oe_inline"/>
<label for="module_hr_insurance"/>
</div>
<div>
<field name="module_hr_lawsuit_management" class="oe_inline"/>
<label for="module_hr_lawsuit_management"/>
</div>
<div>
<field name="module_hr_payslip_monthly_report" class="oe_inline"/>
<label for="module_hr_payslip_monthly_report"/>
</div>
<div>
<field name="module_hr_recruitment_validations" class="oe_inline"/>
<label for="module_hr_recruitment_validations"/>
</div>
<div>
<field name="module_hr_resignation" class="oe_inline"/>
<label for="module_hr_resignation"/>
</div>
<div>
<field name="module_hr_vacation_mngmt" class="oe_inline"/>
<label for="module_hr_vacation_mngmt"/>
</div>
<div>
<field name="module_hr_zk_attendance" class="oe_inline"/>
<label for="module_hr_zk_attendance"/>
</div>
</div>
</group>
</form>
</field>
</record>
<record id="action_hr_general_config" model="ir.actions.act_window">
<field name="name">Hr General Settings</field>
<field name="res_model">hr.config.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
</record>
<menuitem id="menu_hr_general_config"
name="Settings"
parent="hr.menu_human_resources_configuration"
sequence="-1"
action="action_hr_general_config"/>
</odoo>

75
ohrms_core/views/menu_arrangement_view.xml

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<menuitem id="hr_timesheet.timesheet_menu_root" name="Timesheets" sequence="6" groups="base.group_user"
web_icon="hr_timesheet,static/description/icon_timesheet.png" parent="hr.menu_hr_root"/>
<menuitem id="hr_timesheet.menu_hr_activity_analysis" parent="hr_employee_updation.employee_report_menu" action="hr_timesheet.act_hr_timesheet_report"
name="Activity Analysis" groups="hr_timesheet.group_hr_timesheet_user" sequence="4"/>
<menuitem id="hr.menu_hr_root" name="Human Resource" groups="hr.group_hr_manager,hr.group_hr_user,base.group_user"
web_icon="hr,static/description/icon.png" sequence="4"/>
<menuitem id="hr.menu_open_view_employee_list_my" action="hr.open_view_employee_list_my" parent="hr.menu_hr_root"
sequence="1"/>
<menuitem id="hr_contract.hr_menu_contract" name="Contracts" action="hr_contract.action_hr_contract" parent="hr_employee_updation.menu_hr_management"
sequence="2" groups="hr.group_hr_manager"/>
<menuitem action="hr.open_module_tree_department" id="hr.menu_hr_department_tree" parent="hr_employee_updation.menu_hr_management"
sequence="3" groups="hr.group_hr_user"/>
<menuitem name="Recruitment" id="hr_recruitment.menu_hr_recruitment_root" web_icon="hr_recruitment,static/description/icon.png"
groups="hr_recruitment.group_hr_recruitment_user" parent="hr_employee_updation.menu_hr_management" sequence="4"/>
<menuitem id="hr_attendance.menu_hr_attendance_root" name="Attendances" sequence="7" groups="hr.group_hr_attendance"
web_icon="hr_attendance,static/description/icon.png" parent="hr.menu_hr_root"/>
<menuitem name="Leaves" id="hr_holidays.menu_hr_holidays_root" sequence="8" parent="hr.menu_hr_root"
web_icon="hr_holidays,static/description/icon.png" groups="base.group_user"/>
<menuitem id="hr_payroll.menu_hr_payroll_root" name="Payroll" sequence="11" parent="hr.menu_hr_root"
web_icon="hr_payroll,static/description/icon.png"/>
<menuitem id="hr_expense.menu_hr_expense_root" name="Expenses" sequence="12" parent="hr.menu_hr_root"
web_icon="hr_expense,static/description/icon.png"/>
<menuitem id="hr_expense.menu_hr_expense_accountant" name="Accountant" sequence="13" parent="hr.menu_hr_root" groups="hr_expense.group_hr_expense_manager"/>
<menuitem id="hr.menu_human_resources_configuration" name="Configuration" parent="hr.menu_hr_root"
groups="hr.group_hr_manager" sequence="31"/>
<menuitem id="hr_gamification.menu_hr_gamification" parent="hr.menu_hr_root" name="Challenges" sequence="16"/>
<menuitem id="hr_attendance.menu_hr_attendance_report" name="Attendance Analysis"
parent="hr_employee_updation.employee_report_menu" sequence="1"
groups="hr_attendance.group_hr_attendance_user" action="hr_attendance.hr_attendance_action_graph"/>
<menuitem
id="hr_holidays.menu_hr_holidays_report"
name="Leaves Analysis"
parent="hr_employee_updation.employee_report_menu"
sequence="10"
groups="hr_holidays.group_hr_holidays_manager,hr_holidays.group_hr_holidays_user"/>
<menuitem
name="Leaves by Department"
parent="hr_employee_updation.employee_report_menu"
action="hr_holidays.action_hr_holidays_summary_dept"
id="hr_holidays.menu_account_central_journal" sequence="2"/>
<menuitem id="hr_expense.menu_hr_expense_reports" name="Expense Analysis" sequence="11"
parent="hr_employee_updation.employee_report_menu" groups="hr_expense.group_hr_expense_manager"/>
<menuitem name="Recruitment Analysis" id="hr_recruitment.report_hr_recruitment" parent="hr_employee_updation.employee_report_menu"
sequence="3" action="hr_recruitment.action_hr_recruitment_report_all"/>
<menuitem id="hr_attendance.menu_hr_attendance_settings" name="Attendance Config" parent="hr.menu_human_resources_configuration"
sequence="2" action="hr_attendance.action_hr_attendance_settings" groups="hr_attendance.group_hr_attendance_manager"/>
<menuitem id="hr_recruitment.menu_hr_recruitment_configuration" name="Recruitment Config" parent="hr.menu_human_resources_configuration"
sequence="10"/>
<menuitem
id="main_menu_hr_holidays_configuration"
name="Leaves Config"
parent="hr.menu_human_resources_configuration"
sequence="3"
groups="hr_holidays.group_hr_holidays_manager"/>
<menuitem
id="hr_holidays.menu_hr_holidays_configuration"
name="Leaves Config"
parent="main_menu_hr_holidays_configuration"
sequence="2"
groups="hr_holidays.group_hr_holidays_manager"
action="hr_holidays.open_view_holiday_status"/>
<menuitem id="hr_leave_request_aliasing.menu_hr_leave_global_settings" name="Settings"
parent="main_menu_hr_holidays_configuration" sequence="1" action="hr_leave_request_aliasing.action_hr_leave_configuration" groups="base.group_system"/>
<menuitem id="hr_payroll.menu_hr_payroll_configuration" name="Payroll Config" parent="hr.menu_human_resources_configuration"
sequence="4" groups="hr_payroll.group_hr_payroll_manager"/>
<menuitem id="hr_expense.menu_hr_expense_configuration" name="Expense Config" parent="hr.menu_human_resources_configuration"
sequence="5"/>
</data>
</odoo>
Loading…
Cancel
Save