Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

13.0 mig hr holidays leave auto approve #704

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0b69631
Module 'hr_holidays_leave_auto_approve': This module allows the user …
aesposito-onestein Oct 3, 2016
2c81109
[MIG] hr_holidays_leave_auto_approve: Migrated to 10.0
espo-tony Nov 1, 2016
d80fd31
OCA Transbot updated translations from Transifex
oca-transbot Nov 29, 2016
412913a
Fix message notification + code review
astirpe May 12, 2017
130d984
Update tests
astirpe May 22, 2017
3d2259d
Migrate hr_holidays_leave_auto_approve to version 11.0.
Nov 13, 2017
3885d5f
OCA Transbot updated translations from Transifex
oca-transbot Jun 9, 2018
945c081
[UPD] Update hr_holidays_leave_auto_approve.pot
oca-travis Jun 22, 2018
188b689
Translated using Weblate (Persian)
fshahy Jul 21, 2018
533fe0f
[FIX] hr_holidays_leave_auto_approve tracking handling
gurneyalex Oct 30, 2018
e677863
Bump version of hr_holidays_leave_auto_approve
yvaucher Nov 1, 2018
da5ce9c
Translated using Weblate (German)
marylla Dec 18, 2018
84e00ea
[12.0][MIG] hr_holidays_leave_auto_approve
astirpe Jan 10, 2019
9dc2e5c
[UPD] README.rst
OCA-git-bot Feb 9, 2019
5c8b228
[UPD] Update hr_holidays_leave_auto_approve.pot
oca-travis Feb 9, 2019
6c540d6
Update translation files
oca-transbot Mar 3, 2019
9d74561
[ADD] icon.png
OCA-git-bot Apr 3, 2019
b5a2003
Added translation using Weblate (Dutch)
Apr 18, 2019
1fea08f
Translated using Weblate (Dutch)
Apr 18, 2019
5a4767b
Translated using Weblate (Dutch)
Apr 18, 2019
71fd9eb
Translated using Weblate (French)
May 23, 2019
694be4c
Translated using Weblate (German)
marylla Jun 28, 2019
0a31d2a
Translated using Weblate (Spanish)
Jul 23, 2019
2876721
[UPD] README.rst
OCA-git-bot Jul 29, 2019
7b9df17
[MIG] hr_holidays_leave_auto_approve: Migration to 13.0
Murtaza-Mithaiwala Oct 19, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
90 changes: 90 additions & 0 deletions hr_holidays_leave_auto_approve/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
===================
Auto Approve Leaves
===================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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-lightgray.png?logo=github
:target: https://github.com/OCA/hr/tree/12.0/hr_holidays_leave_auto_approve
:alt: OCA/hr
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_holidays_leave_auto_approve
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/116/12.0
:alt: Try me on Runbot

|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
=============

Get sure that the administrative user belongs at least to the group
Leaves/Officer.

If you wish that the system automatically validates all 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
#. Mark the flag 'Auto Validate'.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_holidays_leave_auto_approve%0Aversion:%2012.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 <a.stirpe@onestein.nl>
* Antonio Esposito <a.esposito@onestein.nl>
* Murtaza Mithaiwala <https://twitter.com/MurtazaMithaiw4>
Murtaza-Mithaiwala marked this conversation as resolved.
Show resolved Hide resolved

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 <https://github.com/OCA/hr/tree/12.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.
3 changes: 3 additions & 0 deletions hr_holidays_leave_auto_approve/__init__.py
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
14 changes: 14 additions & 0 deletions hr_holidays_leave_auto_approve/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2016-2019 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
Murtaza-Mithaiwala marked this conversation as resolved.
Show resolved Hide resolved
"name": "Auto Approve Leaves",
"version": "13.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",
"category": "Human Resources",
"depends": ["hr_holidays"],
"data": ["views/hr_holidays_status.xml"],
"installable": True,
}
41 changes: 41 additions & 0 deletions hr_holidays_leave_auto_approve/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_leave_auto_approve
#
# Translators:
# abdullah alsabi <alsabi.abdullah@gmail.com>, 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 <alsabi.abdullah@gmail.com>, 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
msgid "Auto Validate"
msgstr ""

#. module: hr_holidays_leave_auto_approve
#: model:ir.model.fields,help:hr_holidays_leave_auto_approve.field_hr_leave_type__auto_approve
msgid ""
"If True, leaves belonging to this leave type will be automatically validated"
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 "نوع الإجازة"
42 changes: 42 additions & 0 deletions hr_holidays_leave_auto_approve/i18n/cs_CZ.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_leave_auto_approve
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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
msgid "Auto Validate"
msgstr ""

#. module: hr_holidays_leave_auto_approve
#: model:ir.model.fields,help:hr_holidays_leave_auto_approve.field_hr_leave_type__auto_approve
msgid ""
"If True, leaves belonging to this leave type will be automatically validated"
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 ""
43 changes: 43 additions & 0 deletions hr_holidays_leave_auto_approve/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_leave_auto_approve
#
# Translators:
# Niki Waibel <niki.waibel@gmail.com>, 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 <maria.sparenberg@gmx.net>\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
msgid "Auto Validate"
msgstr "Automatisch genehmigen"

#. module: hr_holidays_leave_auto_approve
#: model:ir.model.fields,help:hr_holidays_leave_auto_approve.field_hr_leave_type__auto_approve
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"

#. 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"
44 changes: 44 additions & 0 deletions hr_holidays_leave_auto_approve/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_leave_auto_approve
#
# Translators:
# Pedro M. Baeza <pedro.baeza@gmail.com>, 2016
# José Antonio Cuello <jcuello@artextrading.com>, 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 <jaime.arroyo@creublanca.es>\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
msgid "Auto Validate"
msgstr "Aprobación automática"

#. module: hr_holidays_leave_auto_approve
#: model:ir.model.fields,help:hr_holidays_leave_auto_approve.field_hr_leave_type__auto_approve
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"

#. 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"
43 changes: 43 additions & 0 deletions hr_holidays_leave_auto_approve/i18n/fa.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_leave_auto_approve
#
# Translators:
# Mehdi Zarrinkolah <mehdi1811@gmail.com>, 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-07-22 11:30+0000\n"
"Last-Translator: derKonig <fshahy@gmail.com>\n"
"Language-Team: Persian (https://www.transifex.com/oca/teams/23907/fa/)\n"
"Language: fa\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.0.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
msgid "Auto Validate"
msgstr "تایید خودکار"

#. module: hr_holidays_leave_auto_approve
#: model:ir.model.fields,help:hr_holidays_leave_auto_approve.field_hr_leave_type__auto_approve
#, fuzzy
msgid ""
"If True, leaves belonging to this leave type will be automatically validated"
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 "نوع خروج"
44 changes: 44 additions & 0 deletions hr_holidays_leave_auto_approve/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_leave_auto_approve
#
# Translators:
# leemannd <denis.leemann@camptocamp.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-03 03:37+0000\n"
"PO-Revision-Date: 2019-05-23 20:19+0000\n"
"Last-Translator: Kévin Allard <kallard@efficom-lille.com>\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\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
msgid "Auto Validate"
msgstr "Validation auto"

#. module: hr_holidays_leave_auto_approve
#: model:ir.model.fields,help:hr_holidays_leave_auto_approve.field_hr_leave_type__auto_approve
#, fuzzy
msgid ""
"If True, leaves belonging to this leave type will be automatically validated"
msgstr ""
"Si coché, les feuilles appartenant à ce type vont être automatiquement "
"approuvées"

#. module: hr_holidays_leave_auto_approve
#: model:ir.model,name:hr_holidays_leave_auto_approve.model_hr_leave
msgid "Leave"
msgstr "Congé"

#. module: hr_holidays_leave_auto_approve
#: model:ir.model,name:hr_holidays_leave_auto_approve.model_hr_leave_type
msgid "Leave Type"
msgstr "Type de Congé"