Skip to content

Commit

Permalink
[8.0.1.0.1][hr_timesheet_computation_holiday]
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevhe18 committed Oct 15, 2020
1 parent 7862f44 commit e263768
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 14 deletions.
8 changes: 4 additions & 4 deletions hr_timesheet_computation_holiday/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_timesheet_computation_holiday/__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,
)
11 changes: 8 additions & 3 deletions hr_timesheet_computation_holiday/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# -*- 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": "Timesheet Computation Integration With Holiday",
"version": "8.0.1.0.0",
"version": "8.0.1.0.1",
"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": [
"hr_timesheet_computation",
"hr_holidays",
],
"images": [
"static/description/banner.png",
],
"data": [
"views/hr_timesheet_sheet_views.xml",
"views/hr_holidays_views.xml",
Expand Down
10 changes: 6 additions & 4 deletions hr_timesheet_computation_holiday/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +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_holidays
from . import hr_timesheet_computation_item
from . import hr_timesheet_sheet
from . import (
hr_holidays,
hr_timesheet_computation_item,
hr_timesheet_sheet,
)
3 changes: 2 additions & 1 deletion hr_timesheet_computation_holiday/models/hr_holidays.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 All @@ -20,7 +21,7 @@ def _compute_sheet(self):
criteria = [
("employee_id", "=", holiday.employee_id.id),
("date_from", "<=", holiday.date_from),
("date_to", ">=", holiday.date_from),
("date_to", ">=", holiday.date_to),
]
sheets = obj_sheet.search(criteria, limit=1)
holiday.sheet_id = sheets[0].id if len(sheets) > 0 else False
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).

from openerp import models, 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).

from openerp import models, fields
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified hr_timesheet_computation_holiday/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" 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
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

0 comments on commit e263768

Please sign in to comment.