Skip to content

Commit

Permalink
[MIG] hr_holidays_leave_auto_approve: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rooniweb committed Sep 22, 2023
1 parent 7b5057d commit 894acf0
Show file tree
Hide file tree
Showing 7 changed files with 690 additions and 450 deletions.
5 changes: 5 additions & 0 deletions hr_holidays_leave_auto_approve/.flake8
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
2 changes: 1 addition & 1 deletion hr_holidays_leave_auto_approve/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Auto Approve Leaves",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"summary": "Leave type for auto-validation of Leaves",
"author": "Onestein, Odoo Community Association (OCA)",
Expand Down
62 changes: 23 additions & 39 deletions hr_holidays_leave_auto_approve/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -1,64 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_leave_auto_approve
# * hr_holidays_leave_auto_approve
#
# Translators:
# leemannd <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Project-Id-Version: Odoo Server 16.0+gd0ae3018f9999116c3837b7702e3514af815a6c5\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 <[email protected]>\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"POT-Creation-Date: 2023-09-21 10:26+0000\n"
"PO-Revision-Date: 2023-09-21 11:04+0000\n"
"Last-Translator: \n"
"Language-Team: \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"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.3.2\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 ""
msgstr "Politique d'approbation automatique"

#. module: hr_holidays_leave_auto_approve
#: selection:hr.leave.type,auto_approve_policy:0
#, fuzzy
#| msgid "Auto Validate"
#: model:ir.model.fields.selection,name:hr_holidays_leave_auto_approve.selection__hr_leave_type__auto_approve_policy__all
msgid "Auto Validated by Everyone"
msgstr "Validation auto"
msgstr "Auto validé par tous"

#. module: hr_holidays_leave_auto_approve
#: selection:hr.leave.type,auto_approve_policy:0
#, fuzzy
#| msgid "Auto Validate"
#: model:ir.model.fields.selection,name:hr_holidays_leave_auto_approve.selection__hr_leave_type__auto_approve_policy__hr
msgid "Auto Validated by HR"
msgstr "Validation auto"
msgstr "Auto validé par les RH"

#. module: hr_holidays_leave_auto_approve
#: model:ir.model,name:hr_holidays_leave_auto_approve.model_hr_leave
msgid "Leave"
msgstr "Congé"
#: model:ir.model.fields.selection,name:hr_holidays_leave_auto_approve.selection__hr_leave_type__auto_approve_policy__no
msgid "No auto Validation"
msgstr "Pas de validation automatique"

#. 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é"
#: model:ir.model,name:hr_holidays_leave_auto_approve.model_hr_leave
msgid "Time Off"
msgstr "Congés"

#. module: hr_holidays_leave_auto_approve
#: selection:hr.leave.type,auto_approve_policy:0
#, fuzzy
#| msgid "Auto Validate"
msgid "No auto Validation"
msgstr "Validation auto"

#, 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"
#: model:ir.model,name:hr_holidays_leave_auto_approve.model_hr_leave_type
msgid "Time Off Type"
msgstr "Type de Congés"
3 changes: 1 addition & 2 deletions hr_holidays_leave_auto_approve/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import hr_leave
from . import hr_leave_type
from . import hr_leave, hr_leave_type
1 change: 1 addition & 0 deletions hr_holidays_leave_auto_approve/models/hr_leave.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def create(self, values):
"mail_activity_automation_skip": mail_skip or auto_approve,
}
)
# pylint: disable=context-overridden
res = super(HrLeave, self.with_context(ctx)).create(values)
res._apply_auto_approve_policy()
return res
Expand Down
Loading

0 comments on commit 894acf0

Please sign in to comment.