Skip to content

Commit

Permalink
[8.0.2.0.0][hr_termination_transition]
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevhe18 authored and andhit-r committed Jul 21, 2020
1 parent ddb3fa1 commit ac22e90
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 15 deletions.
8 changes: 4 additions & 4 deletions hr_termination_transition/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ Contributors
Maintainer
----------

.. image:: https://opensynergy-indonesia.com/logo.png
:alt: OpenSynergy Indonesia
:target: https://opensynergy-indonesia.com
.. image:: https://simetri-sinergi.id/logo.png
:alt: PT. Simetri Sinergi Indonesia
:target: https://simetri-sinergi.id.com

This module is maintained by the OpenSynergy Indonesia.
This module is maintained by the PT. Simetri Sinergi Indonesia.
6 changes: 4 additions & 2 deletions hr_termination_transition/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2018 OpenSynergy Indonesia
# Copyright 2020 PT. Simetri Sinergi Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
from . import (
models,
)
3 changes: 2 additions & 1 deletion hr_termination_transition/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# -*- coding: utf-8 -*-
# Copyright 2018 OpenSynergy Indonesia
# Copyright 2020 PT. Simetri Sinergi Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# pylint: disable=locally-disabled, manifest-required-author
{
"name": "Career Transition - Termination",
"version": "8.0.1.3.0",
"version": "8.0.2.0.0",
"category": "Human Resource",
"website": "https://opensynergy-indonesia.com",
"author": "OpenSynergy Indonesia",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018 OpenSynergy Indonesia
Copyright 2020 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<openerp>
Expand Down
11 changes: 6 additions & 5 deletions hr_termination_transition/data/base_workflow_policy_data.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018 OpenSynergy Indonesia
Copyright 2020 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<openerp>
Expand All @@ -12,11 +13,6 @@
<field name="field_id" search="[('model_id.model','=','hr.termination_transition'),('name','=','confirm_ok')]"/>
<field name="python_code">result = document.type_id.confirm_grp_ids.ids</field>
</record>
<record id="base_workflow_line_termination_transition_open" model="base.workflow_policy_line">
<field name="workflow_id" ref="hr_termination_transition.base_workflow_termination_transition"/>
<field name="field_id" search="[('model_id.model','=','hr.termination_transition'),('name','=','open_ok')]"/>
<field name="python_code">result = document.type_id.open_grp_ids.ids</field>
</record>
<record id="base_workflow_line_termination_transition_valid" model="base.workflow_policy_line">
<field name="workflow_id" ref="hr_termination_transition.base_workflow_termination_transition"/>
<field name="field_id" search="[('model_id.model','=','hr.termination_transition'),('name','=','valid_ok')]"/>
Expand All @@ -32,5 +28,10 @@
<field name="field_id" search="[('model_id.model','=','hr.termination_transition'),('name','=','restart_ok')]"/>
<field name="python_code">result = document.type_id.restart_grp_ids.ids</field>
</record>
<record id="base_workflow_line_termination_transition_restart_approval" model="base.workflow_policy_line">
<field name="workflow_id" ref="hr_termination_transition.base_workflow_termination_transition"/>
<field name="field_id" search="[('model_id.model','=','hr.termination_transition'),('name','=','restart_approval_ok')]"/>
<field name="python_code">result = document.type_id.restart_approval_grp_ids.ids</field>
</record>
</data>
</openerp>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018 OpenSynergy Indonesia
Copyright 2020 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<openerp>
Expand Down
1 change: 1 addition & 0 deletions hr_termination_transition/data/ir_sequence_data.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0"?>
<!-- Copyright 2018 OpenSynergy Indonesia
Copyright 2020 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3.0) -->
<openerp>
<data>
Expand Down
9 changes: 6 additions & 3 deletions hr_termination_transition/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright 2018 OpenSynergy Indonesia
# Copyright 2020 PT. Simetri Sinergi Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import hr_termination_transition
from . import hr_employee
from . import (
hr_termination_transition,
hr_employee,
tier_definition,
)
1 change: 1 addition & 0 deletions hr_termination_transition/models/hr_employee.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2018 OpenSynergy Indonesia
# Copyright 2020 PT. Simetri Sinergi Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import models, fields, api
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2018 OpenSynergy Indonesia
# Copyright 2020 PT. Simetri Sinergi Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp import models, api
Expand Down
16 changes: 16 additions & 0 deletions hr_termination_transition/models/tier_definition.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2020 OpenSynergy Indonesia
# Copyright 2020 PT. Simetri Sinergi Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import api, models


class TierDefinition(models.Model):
_inherit = "tier.definition"

@api.model
def _get_tier_validation_model_names(self):
res = super(TierDefinition, self)._get_tier_validation_model_names()
res.append("hr.termination_transition")
return res
Binary file modified hr_termination_transition/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0"?>
<!-- Copyright 2018 OpenSynergy Indonesia
Copyright 2020 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3.0) -->
<openerp>
<data>
Expand Down

0 comments on commit ac22e90

Please sign in to comment.