-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by gurneyalex
- Loading branch information
Showing
31 changed files
with
1,884 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,5 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
per-file-ignores= | ||
__init__.py:F401 | ||
__manifest__.py:B018 |
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,94 @@ | ||
=================== | ||
Auto Approve Leaves | ||
=================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:970736b6f3d3785eb3f83eb53f806b4eccb57eb409f6b0ad9f291f0cd93f6978 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr--holidays-lightgray.png?logo=github | ||
:target: https://github.com/OCA/hr-holidays/tree/14.0/hr_holidays_leave_auto_approve | ||
:alt: OCA/hr-holidays | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/hr-holidays-14-0/hr-holidays-14-0-hr_holidays_leave_auto_approve | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr-holidays&target_branch=14.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module allows the user to define a leave type in order to make the system | ||
automatically validating all the leave requests (and leave allocation requests) | ||
belonging to that leave type. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
If you wish that the system automatically validates the leave requests | ||
belonging to a specific leave type, please follow the steps below. | ||
|
||
#. Go on the leave type configuration menu | ||
#. Select the leave type you wish to setup | ||
#. Select the auto approve policy for that leave type. | ||
|
||
The option 'Auto Validated by HR' will auto validate leave requests created by | ||
HR Officers while option 'Auto Validated by Everyone' will auto validate all | ||
leave requests of the selected type, no matter who requested it. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr-holidays/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/hr-holidays/issues/new?body=module:%20hr_holidays_leave_auto_approve%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Onestein | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Andrea Stirpe <[email protected]> | ||
* Antonio Esposito <[email protected]> | ||
* Jaime Arroyo <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/hr-holidays <https://github.com/OCA/hr-holidays/tree/14.0/hr_holidays_leave_auto_approve>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
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,3 @@ | ||
# 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,15 @@ | ||
# Copyright 2016-2019 Onestein (<http://www.onestein.eu>) | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Auto Approve Leaves", | ||
"version": "16.0.1.0.0", | ||
"license": "AGPL-3", | ||
"summary": "Leave type for auto-validation of Leaves", | ||
"author": "Onestein, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/hr-holidays", | ||
"category": "Human Resources", | ||
"depends": ["hr_holidays"], | ||
"data": ["views/hr_holidays_status.xml"], | ||
"installable": True, | ||
} |
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,50 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * hr_holidays_leave_auto_approve | ||
# | ||
# Translators: | ||
# abdullah alsabi <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-06-10 04:30+0000\n" | ||
"PO-Revision-Date: 2017-06-10 04:30+0000\n" | ||
"Last-Translator: abdullah alsabi <[email protected]>, 2017\n" | ||
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" | ||
"Language: ar\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " | ||
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: model:ir.model.fields,field_description:hr_holidays_leave_auto_approve.field_hr_leave_type__auto_approve_policy | ||
msgid "Auto Approve Policy" | ||
msgstr "" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: selection:hr.leave.type,auto_approve_policy:0 | ||
msgid "Auto Validated by Everyone" | ||
msgstr "" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: selection:hr.leave.type,auto_approve_policy:0 | ||
msgid "Auto Validated by HR" | ||
msgstr "" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: model:ir.model,name:hr_holidays_leave_auto_approve.model_hr_leave | ||
msgid "Leave" | ||
msgstr "إجازة" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: model:ir.model,name:hr_holidays_leave_auto_approve.model_hr_leave_type | ||
msgid "Leave Type" | ||
msgstr "نوع الإجازة" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: selection:hr.leave.type,auto_approve_policy:0 | ||
msgid "No auto Validation" | ||
msgstr "" |
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,51 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * hr_holidays_leave_auto_approve | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2018 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 11.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2018-06-07 02:58+0000\n" | ||
"PO-Revision-Date: 2018-06-07 02:58+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2018\n" | ||
"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/" | ||
"teams/23907/cs_CZ/)\n" | ||
"Language: cs_CZ\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n " | ||
"<= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: model:ir.model.fields,field_description:hr_holidays_leave_auto_approve.field_hr_leave_type__auto_approve_policy | ||
msgid "Auto Approve Policy" | ||
msgstr "" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: selection:hr.leave.type,auto_approve_policy:0 | ||
msgid "Auto Validated by Everyone" | ||
msgstr "" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: selection:hr.leave.type,auto_approve_policy:0 | ||
msgid "Auto Validated by HR" | ||
msgstr "" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: model:ir.model,name:hr_holidays_leave_auto_approve.model_hr_leave | ||
msgid "Leave" | ||
msgstr "Opustit" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: model:ir.model,name:hr_holidays_leave_auto_approve.model_hr_leave_type | ||
msgid "Leave Type" | ||
msgstr "" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: selection:hr.leave.type,auto_approve_policy:0 | ||
msgid "No auto Validation" | ||
msgstr "" |
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,63 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * hr_holidays_leave_auto_approve | ||
# | ||
# Translators: | ||
# Niki Waibel <[email protected]>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-11-29 01:35+0000\n" | ||
"PO-Revision-Date: 2019-06-28 13:42+0000\n" | ||
"Last-Translator: Maria Sparenberg <[email protected]>\n" | ||
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" | ||
"Language: de\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 3.6.1\n" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: model:ir.model.fields,field_description:hr_holidays_leave_auto_approve.field_hr_leave_type__auto_approve_policy | ||
msgid "Auto Approve Policy" | ||
msgstr "" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: selection:hr.leave.type,auto_approve_policy:0 | ||
#, fuzzy | ||
#| msgid "Auto Validate" | ||
msgid "Auto Validated by Everyone" | ||
msgstr "Automatisch genehmigen" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: selection:hr.leave.type,auto_approve_policy:0 | ||
#, fuzzy | ||
#| msgid "Auto Validate" | ||
msgid "Auto Validated by HR" | ||
msgstr "Automatisch genehmigen" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: model:ir.model,name:hr_holidays_leave_auto_approve.model_hr_leave | ||
msgid "Leave" | ||
msgstr "Urlaub" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: model:ir.model,name:hr_holidays_leave_auto_approve.model_hr_leave_type | ||
msgid "Leave Type" | ||
msgstr "Urlaubsart" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: selection:hr.leave.type,auto_approve_policy:0 | ||
#, fuzzy | ||
#| msgid "Auto Validate" | ||
msgid "No auto Validation" | ||
msgstr "Automatisch genehmigen" | ||
|
||
#~ msgid "" | ||
#~ "If True, leaves belonging to this leave type will be automatically " | ||
#~ "validated" | ||
#~ msgstr "" | ||
#~ "Wenn der Haken gesetzt ist, werden Urlaubsanträge dieser Urlaubsart " | ||
#~ "automatisch genehmigt" |
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,64 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * hr_holidays_leave_auto_approve | ||
# | ||
# Translators: | ||
# Pedro M. Baeza <[email protected]>, 2016 | ||
# José Antonio Cuello <[email protected]>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-11-29 01:35+0000\n" | ||
"PO-Revision-Date: 2019-07-23 11:43+0000\n" | ||
"Last-Translator: Jaime Arroyo <[email protected]>\n" | ||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" | ||
"Language: es\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 3.7.1\n" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: model:ir.model.fields,field_description:hr_holidays_leave_auto_approve.field_hr_leave_type__auto_approve_policy | ||
msgid "Auto Approve Policy" | ||
msgstr "Política automática de aprobación" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: selection:hr.leave.type,auto_approve_policy:0 | ||
#, fuzzy | ||
#| msgid "Auto Validate" | ||
msgid "Auto Validated by Everyone" | ||
msgstr "Auto validado por todos" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: selection:hr.leave.type,auto_approve_policy:0 | ||
#, fuzzy | ||
#| msgid "Auto Validate" | ||
msgid "Auto Validated by HR" | ||
msgstr "Auto validado por Recursos Humanos" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: model:ir.model,name:hr_holidays_leave_auto_approve.model_hr_leave | ||
msgid "Leave" | ||
msgstr "Ausencia" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: model:ir.model,name:hr_holidays_leave_auto_approve.model_hr_leave_type | ||
msgid "Leave Type" | ||
msgstr "Tipo de ausencia" | ||
|
||
#. module: hr_holidays_leave_auto_approve | ||
#: selection:hr.leave.type,auto_approve_policy:0 | ||
#, fuzzy | ||
#| msgid "Auto Validate" | ||
msgid "No auto Validation" | ||
msgstr "Sin validación automática" | ||
|
||
#~ msgid "" | ||
#~ "If True, leaves belonging to this leave type will be automatically " | ||
#~ "validated" | ||
#~ msgstr "" | ||
#~ "Si es cierto, las ausencias pertenecientes a este tipo de ausencias se " | ||
#~ "aprobarán automáticamente" |
Oops, something went wrong.