-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
721 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
==================== | ||
Job Family Modelling | ||
==================== | ||
|
||
|
||
|
||
Installation | ||
============ | ||
|
||
To install this module, you need to: | ||
|
||
1. Clone the branch 8.0 of the repository https://github.com/open-synergy/opnsynid-hr | ||
2. Add the path to this repository in your configuration (addons-path) | ||
3. Update the module list | ||
4. Go to menu *Setting -> Modules -> Local Modules* | ||
5. Search For *Job Family Modelling* | ||
6. Install the module | ||
|
||
Configuration | ||
============= | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/open-synergy/opnsynid-hr/issues>`_. In case of trouble, please | ||
check there if your issue has already been reported. If you spotted it first, | ||
help us smashing it by providing a detailed and welcomed feedback. | ||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* Andhitia Rama <andhitia.r@gmail.com> | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://opensynergy-indonesia.com/logo.png | ||
:alt: OpenSynergy Indonesia | ||
:target: https://opensynergy-indonesia.org | ||
|
||
This module is maintained by the OpenSynergy Indonesia. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2016 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2016 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
{ | ||
"name": "Job Family Modelling", | ||
"summary": "Grading system that divides jobs into coherent groups " | ||
"based on shared characteristics", | ||
"version": "8.0.1.0.0", | ||
"category": "Human Resources", | ||
"website": "https://opensynergy-indonesia.com/", | ||
"author": "OpenSynergy Indonesia", | ||
"license": "AGPL-3", | ||
"installable": True, | ||
"depends": [ | ||
"hr", | ||
], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
"menu.xml", | ||
"views/hr_job_grade_category_views.xml", | ||
"views/hr_job_grade_views.xml", | ||
"views/hr_job_family_grade_views.xml", | ||
"views/hr_job_family_views.xml", | ||
"views/hr_employee_views.xml", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- © <YEAR(S)> <AUTHOR(S)> | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> | ||
|
||
<openerp> | ||
<data> | ||
<menuitem id="job_family_modelling_configuration_menu" | ||
parent="hr.menu_hr_configuration" | ||
name="Job Family Modelling" | ||
sequence="5"/> | ||
</data> | ||
</openerp> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import ( | ||
hr_job_grade_category, | ||
hr_job_grade, | ||
hr_job_family_grade, | ||
hr_job_family, | ||
hr_employee, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from openerp import models, fields | ||
|
||
|
||
class HrEmployee(models.Model): | ||
_inherit = "hr.employee" | ||
|
||
job_grade_id = fields.Many2one( | ||
string="Job Grade", | ||
comodel_name="hr.job_grade", | ||
required=False, | ||
) | ||
job_family_grade_id = fields.Many2one( | ||
string="Job Family Grade", | ||
comodel_name="hr.job_family_grade", | ||
required=False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2016 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from openerp import models, fields | ||
|
||
|
||
class HrJobFamily(models.Model): | ||
_name = "hr.job_family" | ||
_description = "Job Family" | ||
|
||
name = fields.Char( | ||
string="Job Family", | ||
required=True, | ||
translate=True, | ||
) | ||
code = fields.Char( | ||
string="Code", | ||
required=True, | ||
) | ||
active = fields.Boolean( | ||
string="Active", | ||
default=True, | ||
) | ||
note = fields.Text( | ||
string="Note", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from openerp import models, fields | ||
|
||
|
||
class HrJobFamilyGrade(models.Model): | ||
_name = "hr.job_family_grade" | ||
_description = "Job Family Grade" | ||
|
||
name = fields.Char( | ||
string="Job Family Grade", | ||
required=True, | ||
translate=True, | ||
) | ||
code = fields.Char( | ||
string="Code", | ||
required=True, | ||
) | ||
active = fields.Boolean( | ||
string="Active", | ||
default=True, | ||
) | ||
note = fields.Text( | ||
string="Note", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2016 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from openerp import models, fields | ||
|
||
|
||
class HrJobFamilyLevel(models.Model): | ||
_name = "hr.job.family.level" | ||
_description = "Job Family Level" | ||
|
||
name = fields.Char( | ||
string="Job Family Level", | ||
required=True, | ||
translate=True, | ||
) | ||
code = fields.Char( | ||
string="Code", | ||
required=True, | ||
) | ||
job_family_id = fields.Many2one( | ||
string="Job Family", | ||
comodel_name="hr.job.family", | ||
required=False, | ||
) | ||
job_family_grade_id = fields.Many2one( | ||
string="Job Family Grade", | ||
comodel_name="hr.job.family.grade", | ||
required=False, | ||
) | ||
active = fields.Boolean( | ||
string="Active", | ||
default=True, | ||
) | ||
note = fields.Text( | ||
string="Note", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2016 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from openerp import models, fields | ||
|
||
|
||
class HrJobGrade(models.Model): | ||
_name = "hr.job_grade" | ||
_description = "Job Grade" | ||
|
||
name = fields.Char( | ||
string="Job Grade", | ||
required=True, | ||
translate=True, | ||
) | ||
category_id = fields.Many2one( | ||
string="Job Grade Category", | ||
comodel_name="hr.job_grade_category", | ||
required=False, | ||
) | ||
code = fields.Char( | ||
string="Code", | ||
required=True, | ||
) | ||
active = fields.Boolean( | ||
string="Active", | ||
default=True, | ||
) | ||
note = fields.Text( | ||
string="Note", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from openerp import models, fields | ||
|
||
|
||
class HrJobGradeCategory(models.Model): | ||
_name = "hr.job_grade_category" | ||
_description = "Job Grade Category" | ||
|
||
name = fields.Char( | ||
string="Job Grade Category", | ||
required=True, | ||
translate=True, | ||
) | ||
code = fields.Char( | ||
string="Code", | ||
required=True, | ||
) | ||
active = fields.Boolean( | ||
string="Active", | ||
default=True, | ||
) | ||
note = fields.Text( | ||
string="Note", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
hr_job_grade_category_employee,hr.job_grade_category - employee,model_hr_job_grade_category,base.group_user,1,1,1,1 | ||
hr_job_grade_category_all,hr.job_grade_category - all,model_hr_job_grade_category,,1,0,0,0 | ||
hr_job_grade_employee,hr.job_grade - employee,model_hr_job_grade,base.group_user,1,1,1,1 | ||
hr_job_grade_all,hr.job_grade - all,model_hr_job_grade,,1,0,0,0 | ||
hr_job_family_grade_employee,hr.job_family_grade - employee,model_hr_job_family_grade,base.group_user,1,1,1,1 | ||
hr_job_family_grade_all,hr.job_family_grade - all,model_hr_job_family_grade,,1,0,0,0 | ||
hr_job_family_employee,hr.job_family - employee,model_hr_job_family,base.group_user,1,1,1,1 | ||
hr_job_family_all,hr.job_family - all,model_hr_job_family,,1,0,0,0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- © <YEAR(S)> <AUTHOR(S)> | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> | ||
|
||
<openerp> | ||
<data> | ||
|
||
|
||
<record id="hr_employee_view_form" model="ir.ui.view"> | ||
<field name="name">form hr.employee</field> | ||
<field name="model">hr.employee</field> | ||
<field name="inherit_id" ref="hr.view_employee_form"/> | ||
<field name="arch" type="xml"> | ||
<data> | ||
<xpath expr="//field[@name='job_id']" position="after"> | ||
<field name="job_grade_id"/> | ||
<field name="job_family_grade_id"/> | ||
</xpath> | ||
</data> | ||
</field> | ||
</record> | ||
|
||
</data> | ||
</openerp> |
48 changes: 48 additions & 0 deletions
48
hr_job_family_modelling/views/hr_job_family_grade_views.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- © <YEAR(S)> <AUTHOR(S)> | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> | ||
|
||
<openerp> | ||
<data> | ||
|
||
<!-- Job Family Grade --> | ||
<record id="hr_job_family_grade_view_tree" model="ir.ui.view"> | ||
<field name="name">tree hr.job_family_grade</field> | ||
<field name="model">hr.job_family_grade</field> | ||
<field name="arch" type="xml"> | ||
<tree string="Job Family Grade"> | ||
<field name="name"/> | ||
<field name="code"/> | ||
</tree> | ||
</field> | ||
</record> | ||
|
||
<record id="hr_job_family_grade_view_form" model="ir.ui.view"> | ||
<field name="name">form hr.job_family_grade</field> | ||
<field name="model">hr.job_family_grade</field> | ||
<field name="arch" type="xml"> | ||
<form string="Job Family Grade"> | ||
<group name="main"> | ||
<field name="name"/> | ||
<field name="code"/> | ||
<field name="active"/> | ||
<field name="note"/> | ||
</group> | ||
</form> | ||
</field> | ||
</record> | ||
|
||
<record id="hr_job_family_grade_action" model="ir.actions.act_window"> | ||
<field name="name">Job Family Grade</field> | ||
<field name="res_model">hr.job_family_grade</field> | ||
<field name="view_type">form</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
|
||
<menuitem action="hr_job_family_grade_action" | ||
id="hr_job_family_grade_menu" | ||
parent="job_family_modelling_configuration_menu" | ||
groups="base.group_hr_user" | ||
sequence="3"/> | ||
</data> | ||
</openerp> |
Oops, something went wrong.