Skip to content

Commit 9637d2c

Browse files
committed
Merge PR #141 into 15.0
Signed-off-by OSevangelist
2 parents afe9298 + 83cc280 commit 9637d2c

20 files changed

+848
-0
lines changed
+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
=============================
2+
HR Attendance Overtime Manual
3+
=============================
4+
5+
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6+
!! This file is generated by oca-gen-addon-readme !!
7+
!! changes will be overwritten. !!
8+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9+
10+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
11+
:target: https://odoo-community.org/page/development-status
12+
:alt: Beta
13+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
14+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
15+
:alt: License: AGPL-3
16+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr_attendance-lightgray.png?logo=github
17+
:target: https://github.com/OCA/hr_attendance/tree/15.0/hr_attendance_overtime_manual
18+
:alt: OCA/hr_attendance
19+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20+
:target: https://translation.odoo-community.org/projects/hr_attendance-15-0/hr_attendance-15-0-hr_attendance_overtime_manual
21+
:alt: Translate me on Weblate
22+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
23+
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/hr_attendance&target_branch=15.0
24+
:alt: Try me on Runboat
25+
26+
|badge1| |badge2| |badge3| |badge4| |badge5|
27+
28+
This modules allows the attendance managers to create overtimes manually for employee
29+
using a wizard. It further unlocks the view for the overtimes to be also visible if
30+
the total is <= 0.
31+
32+
**Table of contents**
33+
34+
.. contents::
35+
:local:
36+
37+
Bug Tracker
38+
===========
39+
40+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr_attendance/issues>`_.
41+
In case of trouble, please check there if your issue has already been reported.
42+
If you spotted it first, help us smashing it by providing a detailed and welcomed
43+
`feedback <https://github.com/OCA/hr_attendance/issues/new?body=module:%20hr_attendance_overtime_manual%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
44+
45+
Do not contact contributors directly about support or help with technical issues.
46+
47+
Credits
48+
=======
49+
50+
Authors
51+
~~~~~~~
52+
53+
* initOS GmbH
54+
55+
Contributors
56+
~~~~~~~~~~~~
57+
58+
* initOS GmbH (initOS.com)
59+
60+
Maintainers
61+
~~~~~~~~~~~
62+
63+
This module is maintained by the OCA.
64+
65+
.. image:: https://odoo-community.org/logo.png
66+
:alt: Odoo Community Association
67+
:target: https://odoo-community.org
68+
69+
OCA, or the Odoo Community Association, is a nonprofit organization whose
70+
mission is to support the collaborative development of Odoo features and
71+
promote its widespread use.
72+
73+
This module is part of the `OCA/hr_attendance <https://github.com/OCA/hr_attendance/tree/15.0/hr_attendance_overtime_manual>`_ project on GitHub.
74+
75+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# © 2023 initOS GmbH
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
from . import models, wizard
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# © 2023 initOS GmbH
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "HR Attendance Overtime Manual",
6+
"version": "15.0.1.0.0",
7+
"category": "Hidden",
8+
"author": "initOS GmbH, Odoo Community Association (OCA)",
9+
"website": "https://github.com/OCA/hr-attendance",
10+
"license": "AGPL-3",
11+
"summary": "Allows adding manual overtime records",
12+
"depends": [
13+
"hr_attendance",
14+
],
15+
"data": [
16+
"security/ir.model.access.csv",
17+
"views/hr_attendance_overtime_views.xml",
18+
"views/hr_employee_views.xml",
19+
"wizard/hr_attendance_overtime_manual_wizard_views.xml",
20+
],
21+
"installable": True,
22+
}
+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * hr_attendance_overtime_manual
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 15.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2023-08-04 07:04+0000\n"
10+
"PO-Revision-Date: 2023-08-04 07:04+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: hr_attendance_overtime_manual
19+
#: model:ir.actions.act_window,name:hr_attendance_overtime_manual.open_hr_attendance_overtime_wizard
20+
msgid "Add Attendance Overtime"
21+
msgstr "Überstunden hinzufügen"
22+
23+
#. module: hr_attendance_overtime_manual
24+
#: code:addons/hr_attendance_overtime_manual/models/hr_attendance_overtime.py:0
25+
#: model_terms:ir.ui.view,arch_db:hr_attendance_overtime_manual.view_employee_form
26+
#: model_terms:ir.ui.view,arch_db:hr_attendance_overtime_manual.view_attendance_overtime_manual_form
27+
#, python-format
28+
msgid "Add Manual Overtime"
29+
msgstr "Manuelle Überstunden hinzufügen"
30+
31+
#. module: hr_attendance_overtime_manual
32+
#: model:ir.model,name:hr_attendance_overtime_manual.model_hr_attendance_overtime
33+
msgid "Attendance Overtime"
34+
msgstr "Überstunden"
35+
36+
#. module: hr_attendance_overtime_manual
37+
#: model_terms:ir.ui.view,arch_db:hr_attendance_overtime_manual.view_attendance_overtime_manual_form
38+
msgid "Close"
39+
msgstr "Schließen"
40+
41+
#. module: hr_attendance_overtime_manual
42+
#: model_terms:ir.ui.view,arch_db:hr_attendance_overtime_manual.view_attendance_overtime_manual_form
43+
msgid "Create Overtime"
44+
msgstr "Überstunden anlegen"
45+
46+
#. module: hr_attendance_overtime_manual
47+
#: model:ir.model.fields,field_description:hr_attendance_overtime_manual.field_hr_attendance_overtime_wizard__date
48+
msgid "Day"
49+
msgstr "Tag"
50+
51+
#. module: hr_attendance_overtime_manual
52+
#: model:ir.model,name:hr_attendance_overtime_manual.model_hr_employee
53+
msgid "Employee"
54+
msgstr "Mitarbeiter"
55+
56+
#. module: hr_attendance_overtime_manual
57+
#: model:ir.model.fields,field_description:hr_attendance_overtime_manual.field_hr_attendance_overtime_wizard__duration
58+
msgid "Extra Hours"
59+
msgstr "Überstunden"
60+
61+
#. module: hr_attendance_overtime_manual
62+
#: model:ir.model.fields,field_description:hr_attendance_overtime_manual.field_hr_attendance_overtime__note
63+
#: model:ir.model.fields,field_description:hr_attendance_overtime_manual.field_hr_attendance_overtime_wizard__note
64+
msgid "Note"
65+
msgstr "Notiz"
66+
67+
#. module: hr_attendance_overtime_manual
68+
#: code:addons/hr_attendance_overtime_manual/wizard/hr_attendance_overtime_manual_wizard.py:0
69+
#: model:ir.model,name:hr_attendance_overtime_manual.model_hr_attendance_overtime_wizard
70+
#, python-format
71+
msgid "Wizard to add manual overtime"
72+
msgstr "Wizard um Überstunden hinzuzufügen"
73+
74+
#. module: hr_attendance_overtime_manual
75+
#: model_terms:ir.ui.view,arch_db:hr_attendance_overtime_manual.view_attendance_overtime_manual_form
76+
msgid "or"
77+
msgstr "oder"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * hr_attendance_overtime_manual
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 15.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2023-08-04 07:04+0000\n"
10+
"PO-Revision-Date: 2023-08-04 07:04+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: hr_attendance_overtime_manual
19+
#: model:ir.actions.act_window,name:hr_attendance_overtime_manual.open_hr_attendance_overtime_wizard
20+
msgid "Add Attendance Overtime"
21+
msgstr ""
22+
23+
#. module: hr_attendance_overtime_manual
24+
#: code:addons/hr_attendance_overtime_manual/models/hr_attendance_overtime.py:0
25+
#: model_terms:ir.ui.view,arch_db:hr_attendance_overtime_manual.view_employee_form
26+
#: model_terms:ir.ui.view,arch_db:hr_attendance_overtime_manual.view_attendance_overtime_manual_form
27+
#, python-format
28+
msgid "Add Manual Overtime"
29+
msgstr ""
30+
31+
#. module: hr_attendance_overtime_manual
32+
#: model:ir.model,name:hr_attendance_overtime_manual.model_hr_attendance_overtime
33+
msgid "Attendance Overtime"
34+
msgstr ""
35+
36+
#. module: hr_attendance_overtime_manual
37+
#: model_terms:ir.ui.view,arch_db:hr_attendance_overtime_manual.view_attendance_overtime_manual_form
38+
msgid "Close"
39+
msgstr ""
40+
41+
#. module: hr_attendance_overtime_manual
42+
#: model_terms:ir.ui.view,arch_db:hr_attendance_overtime_manual.view_attendance_overtime_manual_form
43+
msgid "Create Overtime"
44+
msgstr ""
45+
46+
#. module: hr_attendance_overtime_manual
47+
#: model:ir.model.fields,field_description:hr_attendance_overtime_manual.field_hr_attendance_overtime_wizard__date
48+
msgid "Day"
49+
msgstr ""
50+
51+
#. module: hr_attendance_overtime_manual
52+
#: model:ir.model,name:hr_attendance_overtime_manual.model_hr_employee
53+
msgid "Employee"
54+
msgstr ""
55+
56+
#. module: hr_attendance_overtime_manual
57+
#: model:ir.model.fields,field_description:hr_attendance_overtime_manual.field_hr_attendance_overtime_wizard__duration
58+
msgid "Extra Hours"
59+
msgstr ""
60+
61+
#. module: hr_attendance_overtime_manual
62+
#: model:ir.model.fields,field_description:hr_attendance_overtime_manual.field_hr_attendance_overtime__note
63+
#: model:ir.model.fields,field_description:hr_attendance_overtime_manual.field_hr_attendance_overtime_wizard__note
64+
msgid "Note"
65+
msgstr ""
66+
67+
#. module: hr_attendance_overtime_manual
68+
#: code:addons/hr_attendance_overtime_manual/wizard/hr_attendance_overtime_manual_wizard.py:0
69+
#: model:ir.model,name:hr_attendance_overtime_manual.model_hr_attendance_overtime_wizard
70+
#, python-format
71+
msgid "Wizard to add manual overtime"
72+
msgstr ""
73+
74+
#. module: hr_attendance_overtime_manual
75+
#: model_terms:ir.ui.view,arch_db:hr_attendance_overtime_manual.view_attendance_overtime_manual_form
76+
msgid "or"
77+
msgstr ""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# © 2023 initOS GmbH
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
from . import hr_attendance_overtime
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# © 2023 initOS GmbH
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class HrAttendanceOvertime(models.Model):
8+
_inherit = "hr.attendance.overtime"
9+
10+
note = fields.Char()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* initOS GmbH (initOS.com)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This modules allows the attendance managers to create overtimes manually for employee
2+
using a wizard. It further unlocks the view for the overtimes to be also visible if
3+
the total is <= 0.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
2+
hr_attendance_overtime_manual.hr_attendance_overtime_wizard,hr_attendance_overtime_wizard,hr_attendance_overtime_manual.model_hr_attendance_overtime_wizard,hr_attendance.group_hr_attendance_user,1,1,1,1

0 commit comments

Comments
 (0)