Skip to content

Commit

Permalink
[hr_employee_data_from_contract_additional_field] 8.0.1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andhit-r committed Oct 8, 2020
1 parent dfb76c5 commit 03b5ed8
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 11 deletions.
8 changes: 4 additions & 4 deletions hr_employee_data_from_contract_additional_field/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.
5 changes: 4 additions & 1 deletion hr_employee_data_from_contract_additional_field/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# -*- 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,
)
10 changes: 7 additions & 3 deletions hr_employee_data_from_contract_additional_field/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# -*- 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": "Employee Data From Contract Additional Field",
"version": "8.0.1.1.0",
"version": "8.0.1.2.0",
"category": "Human Resource",
"website": "https://opensynergy-indonesia.com",
"author": "OpenSynergy Indonesia",
"website": "https://simetri-sinergi.id",
"author": "OpenSynergy Indonesia, PT. Simetri Sinergi Indonesia",
"license": "AGPL-3",
"installable": True,
"depends": [
Expand All @@ -16,4 +17,7 @@
],
"data": [
],
"images": [
"static/description/banner.png",
],
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# -*- 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_employee
from . import (
hr_employee,
)
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, fields
Expand All @@ -18,14 +19,21 @@ class HrEmployee(models.Model):
parent_id = fields.Many2one(
string="Manager",
comodel_name="hr.employee",
related="current_contract_id.contract_department_id.manager_id",
related="current_contract_id.manager_id",
store=True,
readonly=True,
)
company_id = fields.Many2one(
string="Company",
comodel_name="res.company",
related="contract_id.company_id",
related="current_contract_id.company_id",
store=True,
readonly=True,
)
employment_status_id = fields.Many2one(
string="Employment Status",
comodel_name="hr.employment_status",
related="current_contract_id.employment_status_id",
store=True,
readonly=True,
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 03b5ed8

Please sign in to comment.