mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-23 16:12:09 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,44 @@
|
|||
# HR Attendance Reason
|
||||
|
||||
Odoo addon: hr_attendance_reason
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-hr-attendance-hr_attendance_reason
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
||||
This addon depends on:
|
||||
- hr_attendance
|
||||
|
||||
## Manifest Information
|
||||
|
||||
- **Name**: HR Attendance Reason
|
||||
- **Version**: 16.0.1.1.0
|
||||
- **Category**: Human Resources
|
||||
- **License**: LGPL-3
|
||||
- **Installable**: True
|
||||
|
||||
## Source
|
||||
|
||||
Based on [OCA/hr-attendance](https://github.com/OCA/hr-attendance) branch 16.0, addon `hr_attendance_reason`.
|
||||
|
||||
## License
|
||||
|
||||
This package maintains the original LGPL-3 license from the upstream Odoo project.
|
||||
|
||||
## Documentation
|
||||
|
||||
- Overview: doc/OVERVIEW.md
|
||||
- Architecture: doc/ARCHITECTURE.md
|
||||
- Models: doc/MODELS.md
|
||||
- Controllers: doc/CONTROLLERS.md
|
||||
- Wizards: doc/WIZARDS.md
|
||||
- Install: doc/INSTALL.md
|
||||
- Usage: doc/USAGE.md
|
||||
- Configuration: doc/CONFIGURATION.md
|
||||
- Dependencies: doc/DEPENDENCIES.md
|
||||
- Troubleshooting: doc/TROUBLESHOOTING.md
|
||||
- FAQ: doc/FAQ.md
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
# Architecture
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
U[Users] -->|HTTP| V[Views and QWeb Templates]
|
||||
V --> C[Controllers]
|
||||
V --> W[Wizards – Transient Models]
|
||||
C --> M[Models and ORM]
|
||||
W --> M
|
||||
M --> R[Reports]
|
||||
DX[Data XML] --> M
|
||||
S[Security – ACLs and Groups] -. enforces .-> M
|
||||
|
||||
subgraph Hr_attendance_reason Module - hr_attendance_reason
|
||||
direction LR
|
||||
M:::layer
|
||||
W:::layer
|
||||
C:::layer
|
||||
V:::layer
|
||||
R:::layer
|
||||
S:::layer
|
||||
DX:::layer
|
||||
end
|
||||
|
||||
classDef layer fill:#eef8ff,stroke:#6ea8fe,stroke-width:1px
|
||||
```
|
||||
|
||||
Notes
|
||||
- Views include tree/form/kanban templates and report templates.
|
||||
- Controllers provide website/portal routes when present.
|
||||
- Wizards are UI flows implemented with `models.TransientModel`.
|
||||
- Data XML loads data/demo records; Security defines groups and access.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Configuration
|
||||
|
||||
Refer to Odoo settings for hr_attendance_reason. Configure related models, access rights, and options as needed.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Controllers
|
||||
|
||||
This module does not define custom HTTP controllers.
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# Dependencies
|
||||
|
||||
This addon depends on:
|
||||
|
||||
- [hr_attendance](../../odoo-bringout-oca-ocb-hr_attendance)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# FAQ
|
||||
|
||||
- Q: Which Odoo version? A: 16.0 (OCA/OCB packaged).
|
||||
- Q: How to enable? A: Start server with --addon hr_attendance_reason or install in UI.
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# Install
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-hr-attendance-hr_attendance_reason"
|
||||
# or
|
||||
uv pip install odoo-bringout-oca-hr-attendance-hr_attendance_reason"
|
||||
```
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
# Models
|
||||
|
||||
Detected core models and extensions in hr_attendance_reason.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
class hr_attendance_reason
|
||||
class hr_attendance
|
||||
class hr_employee
|
||||
class hr_employee_base
|
||||
class res_company
|
||||
class res_config_settings
|
||||
```
|
||||
|
||||
Notes
|
||||
- Classes show model technical names; fields omitted for brevity.
|
||||
- Items listed under _inherit are extensions of existing models.
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# Overview
|
||||
|
||||
Packaged Odoo addon: hr_attendance_reason. Provides features documented in upstream Odoo 16 under this addon.
|
||||
|
||||
- Source: OCA/OCB 16.0, addon hr_attendance_reason
|
||||
- License: LGPL-3
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Reports
|
||||
|
||||
This module does not define custom reports.
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
# Security
|
||||
|
||||
Access control and security definitions in hr_attendance_reason.
|
||||
|
||||
## Access Control Lists (ACLs)
|
||||
|
||||
Model access permissions defined in:
|
||||
- **[ir.model.access.csv](../hr_attendance_reason/security/ir.model.access.csv)**
|
||||
- 2 model access rules
|
||||
|
||||
## Record Rules
|
||||
|
||||
Row-level security rules defined in:
|
||||
|
||||
## Security Groups & Configuration
|
||||
|
||||
Security groups and permissions defined in:
|
||||
- **[security.xml](../hr_attendance_reason/security/security.xml)**
|
||||
|
||||
```mermaid
|
||||
graph TB
|
||||
subgraph "Security Layers"
|
||||
A[Users] --> B[Groups]
|
||||
B --> C[Access Control Lists]
|
||||
C --> D[Models]
|
||||
B --> E[Record Rules]
|
||||
E --> F[Individual Records]
|
||||
end
|
||||
```
|
||||
|
||||
Security files overview:
|
||||
- **[ir.model.access.csv](../hr_attendance_reason/security/ir.model.access.csv)**
|
||||
- Model access permissions (CRUD rights)
|
||||
- **[security.xml](../hr_attendance_reason/security/security.xml)**
|
||||
- Security groups, categories, and XML-based rules
|
||||
|
||||
Notes
|
||||
- Access Control Lists define which groups can access which models
|
||||
- Record Rules provide row-level security (filter records by user/group)
|
||||
- Security groups organize users and define permission sets
|
||||
- All security is enforced at the ORM level by Odoo
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# Troubleshooting
|
||||
|
||||
- Ensure Python and Odoo environment matches repo guidance.
|
||||
- Check database connectivity and logs if startup fails.
|
||||
- Validate that dependent addons listed in DEPENDENCIES.md are installed.
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# Usage
|
||||
|
||||
Start Odoo including this addon (from repo root):
|
||||
|
||||
```bash
|
||||
python3 scripts/nix_odoo_web_server.py --db-name mydb --addon hr_attendance_reason
|
||||
```
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Wizards
|
||||
|
||||
This module does not include UI wizards.
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
====================
|
||||
HR Attendance Reason
|
||||
====================
|
||||
|
||||
..
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:d67f27a8a24581bdd9c3e615a4a8b44ef1de5ed0d40cc3abc0aa7dbe216ce4fa
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |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-LGPL--3-blue.png
|
||||
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
|
||||
:alt: License: LGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr--attendance-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/hr-attendance/tree/16.0/hr_attendance_reason
|
||||
:alt: OCA/hr-attendance
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/hr-attendance-16-0/hr-attendance-16-0-hr_attendance_reason
|
||||
: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-attendance&target_branch=16.0
|
||||
:alt: Try me on Runboat
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
This module allows to define reasons why the attendance is not what expected.
|
||||
Some example reasons are
|
||||
|
||||
* Could not access the system: Visit a customer
|
||||
* Leave soon to pick up children
|
||||
* The Hr manager amended the attendance and needs to tell
|
||||
|
||||
**Table of contents**
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
#. Go to *Attendances > Configuration*.
|
||||
#. Create the reasons that may cause attendances to be shorter or longer
|
||||
than normal
|
||||
#. When that situation occurs employees can justify the reason
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr-attendance/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-attendance/issues/new?body=module:%20hr_attendance_reason%0Aversion:%2016.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
|
||||
~~~~~~~
|
||||
|
||||
* Odoo S.A.
|
||||
* Tecnativa
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* Odoo S.A.
|
||||
* Aaron Henriquez <ahforgeflow@forgeflow.com>
|
||||
* Damien Crier <damien.crier@camtocamp.com>
|
||||
* Saran Lim. <saranl@ecosoft.co.th>
|
||||
* David Alonso <david.alonso@solvos.es>
|
||||
* Juany Davila <juany.davila@forgeflow.com>
|
||||
|
||||
* `Tecnativa <https://www.tecnativa.com>`_:
|
||||
|
||||
* Víctor Martínez
|
||||
|
||||
* Dhara Solanki <dhara.solanki@initos.com>
|
||||
|
||||
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-attendance <https://github.com/OCA/hr-attendance/tree/16.0/hr_attendance_reason>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
|
@ -0,0 +1 @@
|
|||
from . import models
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
# Copyright 2017 Odoo S.A.
|
||||
# Copyright 2018 ForgeFlow, S.L.
|
||||
# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html
|
||||
|
||||
{
|
||||
"name": "HR Attendance Reason",
|
||||
"version": "16.0.1.1.0",
|
||||
"category": "Human Resources",
|
||||
"website": "https://github.com/OCA/hr-attendance",
|
||||
"author": "Odoo S.A., Tecnativa, Odoo Community Association (OCA)",
|
||||
"license": "LGPL-3",
|
||||
"installable": True,
|
||||
"depends": ["hr_attendance"],
|
||||
"data": [
|
||||
"security/ir.model.access.csv",
|
||||
"security/security.xml",
|
||||
"views/hr_attendance_reason_view.xml",
|
||||
"views/hr_attendance_view.xml",
|
||||
"views/res_config_settings_view.xml",
|
||||
],
|
||||
"demo": [
|
||||
"demo/hr_attendance_reason_demo.xml",
|
||||
],
|
||||
"assets": {
|
||||
"web.assets_backend": [
|
||||
"hr_attendance_reason/static/src/js/my_attendances.esm.js",
|
||||
"hr_attendance_reason/static/src/js/kiosk_confirm.esm.js",
|
||||
"hr_attendance_reason/static/src/scss/hr_attendance_reason.scss",
|
||||
"hr_attendance_reason/static/src/xml/**/*",
|
||||
],
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo noupdate="1">
|
||||
<record id="hr_act_reason_1" model="hr.attendance.reason">
|
||||
<field name="name">Manager Manual Amend</field>
|
||||
<field name="code">MMA</field>
|
||||
</record>
|
||||
<record id="hr_act_reason_2" model="hr.attendance.reason">
|
||||
<field name="name">Felt Sick</field>
|
||||
<field name="code">FS</field>
|
||||
<field name="action_type">sign_out</field>
|
||||
<field name="show_on_attendance_screen" eval="True" />
|
||||
</record>
|
||||
<record id="hr_act_reason_3" model="hr.attendance.reason">
|
||||
<field name="name">Visit Customer</field>
|
||||
<field name="code">VS</field>
|
||||
<field name="action_type">sign_in</field>
|
||||
<field name="show_on_attendance_screen" eval="True" />
|
||||
</record>
|
||||
<record id="hr_act_reason_4" model="hr.attendance.reason">
|
||||
<field name="name">Bad Weather</field>
|
||||
<field name="code">BW</field>
|
||||
</record>
|
||||
<record id="hr_act_reason_5" model="hr.attendance.reason">
|
||||
<field name="name">Public Transport Strike</field>
|
||||
<field name="code">PTS</field>
|
||||
<field name="action_type">sign_in</field>
|
||||
<field name="show_on_attendance_screen" eval="True" />
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,199 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_attendance_reason
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 14.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2021-11-20 11:36+0000\n"
|
||||
"Last-Translator: Lubomir Georgiev <lgeorgiev@securitybulgaria.com>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: bg\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 4.3.2\n"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Action Type"
|
||||
msgstr "Тип на действието"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance
|
||||
msgid "Attendance"
|
||||
msgstr "Присъствие"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid "Attendance Reason"
|
||||
msgstr "Причина за отсъствие"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.actions.act_window,name:hr_attendance_reason.hr_attendance_reason_action
|
||||
msgid "Attendance Reasons"
|
||||
msgstr "Причини за отсъствие"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee_base
|
||||
msgid "Basic Employee"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.constraint,message:hr_attendance_reason.constraint_hr_attendance_reason_unique_code
|
||||
msgid "Code must be unique"
|
||||
msgstr "Кода трябва да е уникален"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__company_id
|
||||
msgid "Company"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_settings_redefinition_menu
|
||||
msgid "Configuration"
|
||||
msgstr "Конфигурация"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Създаден от"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Създаден на"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.hr_attendance_reason_view_form
|
||||
msgid "Define attendance reason"
|
||||
msgstr "Дефинирай причини за отсъствие"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Име за показване"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee
|
||||
msgid "Employee"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__id
|
||||
msgid "ID"
|
||||
msgstr "ИН"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Последно променено на"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Последно актуализирано от"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Последно актуализирано на"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Leave empty if it is independent"
|
||||
msgstr "Остави празно ако не е зависимо"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. openerp-web
|
||||
#: code:addons/hr_attendance_reason/static/src/js/kiosk_confirm.esm.js:0
|
||||
#: code:addons/hr_attendance_reason/static/src/js/my_attendances.esm.js:0
|
||||
#, python-format
|
||||
msgid "Please, select a reason"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. openerp-web
|
||||
#: code:addons/hr_attendance_reason/static/src/xml/attendance.xml:0
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
#, python-format
|
||||
msgid "Reason"
|
||||
msgstr "Причина"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__code
|
||||
msgid "Reason Code"
|
||||
msgstr "Код на причина"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_reason_menu
|
||||
msgid "Reasons"
|
||||
msgstr "Причини"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__required_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Required reason on attendance screen"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__sequence
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__show_on_attendance_screen
|
||||
msgid "Show on attendance screen?"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__show_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Show reasons on attendance screen"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_in
|
||||
msgid "Sign in"
|
||||
msgstr "Вписване"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_out
|
||||
msgid "Sign out"
|
||||
msgstr "Отписване"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid ""
|
||||
"Specifies the reason for signing In/signing Out in case of less or extra "
|
||||
"hours."
|
||||
msgstr "Уточни причината за Вписване/Отписване при по-малко или повече часове."
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
msgid "Specifies the reason leaving soon or arriving late"
|
||||
msgstr "Уточни причината за тръгване по-рано или закъснение"
|
||||
|
||||
#~ msgid "Attendance reasons"
|
||||
#~ msgstr "Причини за отсъствие"
|
||||
|
|
@ -0,0 +1,194 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_attendance_reason
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Action Type"
|
||||
msgstr "Tip akcije"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance
|
||||
msgid "Attendance"
|
||||
msgstr "Prisutnost"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid "Attendance Reason"
|
||||
msgstr "Razlog evidencije"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.actions.act_window,name:hr_attendance_reason.hr_attendance_reason_action
|
||||
msgid "Attendance Reasons"
|
||||
msgstr "Razlozi evidencije"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee_base
|
||||
msgid "Basic Employee"
|
||||
msgstr "Obični zaposlenik"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.constraint,message:hr_attendance_reason.constraint_hr_attendance_reason_unique_code
|
||||
msgid "Code must be unique"
|
||||
msgstr "Kod mora biti jedinstven"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr "Kompanije"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__company_id
|
||||
msgid "Company"
|
||||
msgstr "Preduzeće"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Postavke"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_settings_redefinition_menu
|
||||
msgid "Configuration"
|
||||
msgstr "Konfiguracija"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Kreirao"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Kreirano"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.hr_attendance_reason_view_form
|
||||
msgid "Define attendance reason"
|
||||
msgstr "Definiraj razlog evidencije"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Prikazani naziv"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee
|
||||
msgid "Employee"
|
||||
msgstr "Zaposleni"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Zadnje mijenjano"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Zadnji ažurirao"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Zadnje ažurirano"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Leave empty if it is independent"
|
||||
msgstr "Ostavite prazno ako je nezavisan"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. odoo-javascript
|
||||
#: code:addons/hr_attendance_reason/static/src/js/kiosk_confirm.esm.js:0
|
||||
#: code:addons/hr_attendance_reason/static/src/js/my_attendances.esm.js:0
|
||||
#, python-format
|
||||
msgid "Please, select a reason"
|
||||
msgstr "Molimo odaberite razlog"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. odoo-javascript
|
||||
#: code:addons/hr_attendance_reason/static/src/xml/attendance.xml:0
|
||||
#: code:addons/hr_attendance_reason/static/src/xml/attendance.xml:0
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
#, python-format
|
||||
msgid "Reason"
|
||||
msgstr "Razlog"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__code
|
||||
msgid "Reason Code"
|
||||
msgstr "Kod razloga"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_reason_menu
|
||||
msgid "Reasons"
|
||||
msgstr "Razlozi"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__required_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Required reason on attendance screen"
|
||||
msgstr "Obavezan razlog na ekranu evidencije"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__sequence
|
||||
msgid "Sequence"
|
||||
msgstr "Sekvenca"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__show_on_attendance_screen
|
||||
msgid "Show on attendance screen?"
|
||||
msgstr "Prikaži na ekranu evidencije?"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__show_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Show reasons on attendance screen"
|
||||
msgstr "Prikaži razloge na ekranu evidencije"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_in
|
||||
msgid "Sign in"
|
||||
msgstr "Prijava"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_out
|
||||
msgid "Sign out"
|
||||
msgstr "Odjava"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid ""
|
||||
"Specifies the reason for signing In/signing Out in case of less or extra "
|
||||
"hours."
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
msgid "Specifies the reason leaving soon or arriving late"
|
||||
msgstr "Specificira razlog ranog odlaska ili kasnog dolaska"
|
||||
|
|
@ -0,0 +1,199 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_attendance_reason
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 15.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2023-09-06 10:37+0000\n"
|
||||
"Last-Translator: Alexander Bigga <alexander@bigga.de>\n"
|
||||
"Language-Team: none\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 4.17\n"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Action Type"
|
||||
msgstr "Aktionsart"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance
|
||||
msgid "Attendance"
|
||||
msgstr "Anwesenheit"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid "Attendance Reason"
|
||||
msgstr "Anwesenheitsgrund"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.actions.act_window,name:hr_attendance_reason.hr_attendance_reason_action
|
||||
msgid "Attendance Reasons"
|
||||
msgstr "Anwesenheitsgründe"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee_base
|
||||
msgid "Basic Employee"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.constraint,message:hr_attendance_reason.constraint_hr_attendance_reason_unique_code
|
||||
msgid "Code must be unique"
|
||||
msgstr "Abkürzung muss eindeutig sein"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr "Unternehmen"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__company_id
|
||||
msgid "Company"
|
||||
msgstr "Unternehmen"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_settings_redefinition_menu
|
||||
msgid "Configuration"
|
||||
msgstr "Konfiguration"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Angelegt von"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Angelegt am"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.hr_attendance_reason_view_form
|
||||
msgid "Define attendance reason"
|
||||
msgstr "Anwesenheitsgrund definieren"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee
|
||||
msgid "Employee"
|
||||
msgstr "Mitarbeiter"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Zuletzt bearbeitet am"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Zuletzt aktualisiert von"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Zuletzt aktualisiert am"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Leave empty if it is independent"
|
||||
msgstr "Leer lassen, wenn es unabhängig ist"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. openerp-web
|
||||
#: code:addons/hr_attendance_reason/static/src/js/kiosk_confirm.esm.js:0
|
||||
#: code:addons/hr_attendance_reason/static/src/js/my_attendances.esm.js:0
|
||||
#, python-format
|
||||
msgid "Please, select a reason"
|
||||
msgstr "Bitte wählen Sie einen Grund"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. openerp-web
|
||||
#: code:addons/hr_attendance_reason/static/src/xml/attendance.xml:0
|
||||
#: code:addons/hr_attendance_reason/static/src/xml/attendance.xml:0
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
#, python-format
|
||||
msgid "Reason"
|
||||
msgstr "Grund"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__code
|
||||
msgid "Reason Code"
|
||||
msgstr "Abkürzung des Grunds"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_reason_menu
|
||||
msgid "Reasons"
|
||||
msgstr "Gründe"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__required_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Required reason on attendance screen"
|
||||
msgstr "Der Grund muss auf der Anwesenheits-Anzeige erscheinen"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__sequence
|
||||
msgid "Sequence"
|
||||
msgstr "Folge"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__show_on_attendance_screen
|
||||
msgid "Show on attendance screen?"
|
||||
msgstr "Zeige auf Anwesenheits-Anzeige?"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__show_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Show reasons on attendance screen"
|
||||
msgstr "Zeige Gründe auf der Anwesenheits-Anzeige"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_in
|
||||
msgid "Sign in"
|
||||
msgstr "Anmelden"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_out
|
||||
msgid "Sign out"
|
||||
msgstr "Abmelden"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid ""
|
||||
"Specifies the reason for signing In/signing Out in case of less or extra "
|
||||
"hours."
|
||||
msgstr ""
|
||||
"Geben Sie den Grund für die Anmeldung/Abmeldung bei Unter- oder Überstunden "
|
||||
"an."
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
msgid "Specifies the reason leaving soon or arriving late"
|
||||
msgstr "Geben Sie den Grund bei früheren Gehen oder späterem Kommen an"
|
||||
|
|
@ -0,0 +1,197 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_attendance_reason
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-07-04 07:25+0000\n"
|
||||
"PO-Revision-Date: 2023-07-04 09:26+0200\n"
|
||||
"Last-Translator: Jaime Arroyo <jaime.arroyo@creublanca.es>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Action Type"
|
||||
msgstr "Tipo de acción"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance
|
||||
msgid "Attendance"
|
||||
msgstr "Asistencia"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid "Attendance Reason"
|
||||
msgstr "Motivo de alerta de asistencia"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.actions.act_window,name:hr_attendance_reason.hr_attendance_reason_action
|
||||
msgid "Attendance Reasons"
|
||||
msgstr "Motivos de alerta de asistencia"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee_base
|
||||
msgid "Basic Employee"
|
||||
msgstr "Empleado Básico"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.constraint,message:hr_attendance_reason.constraint_hr_attendance_reason_unique_code
|
||||
msgid "Code must be unique"
|
||||
msgstr "El código debe ser único"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr "Empresas"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__company_id
|
||||
msgid "Company"
|
||||
msgstr "Compañía"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Ajustes de configuración"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_settings_redefinition_menu
|
||||
msgid "Configuration"
|
||||
msgstr "Configuración"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Creado por"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Creado el"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.hr_attendance_reason_view_form
|
||||
msgid "Define attendance reason"
|
||||
msgstr "Definir un motivo de alerta de asistencia"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nombre a mostrar"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee
|
||||
msgid "Employee"
|
||||
msgstr "Empleado"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última modificación en"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Última actualización de"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Última actualización en"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Leave empty if it is independent"
|
||||
msgstr "Dejar vacío si es independiente"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. openerp-web
|
||||
#: code:addons/hr_attendance_reason/static/src/js/kiosk_confirm.esm.js:0
|
||||
#: code:addons/hr_attendance_reason/static/src/js/my_attendances.esm.js:0
|
||||
#, python-format
|
||||
msgid "Please, select a reason"
|
||||
msgstr "Por favor, selecciona un motivo"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. openerp-web
|
||||
#: code:addons/hr_attendance_reason/static/src/xml/attendance.xml:0
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
#, python-format
|
||||
msgid "Reason"
|
||||
msgstr "Motivo"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__code
|
||||
msgid "Reason Code"
|
||||
msgstr "Código del motivo"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_reason_menu
|
||||
msgid "Reasons"
|
||||
msgstr "Motivos"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__required_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Required reason on attendance screen"
|
||||
msgstr "¿Motivo obligatorio en pantalla de asistencia?"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__sequence
|
||||
msgid "Sequence"
|
||||
msgstr "Secuencia"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__show_on_attendance_screen
|
||||
msgid "Show on attendance screen?"
|
||||
msgstr "¿Mostrar en pantalla de asistencia?"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__show_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Show reasons on attendance screen"
|
||||
msgstr "¿Mostrar motivos en pantalla de asistencia?"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_in
|
||||
msgid "Sign in"
|
||||
msgstr "Entrada"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_out
|
||||
msgid "Sign out"
|
||||
msgstr "Salida"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid ""
|
||||
"Specifies the reason for signing In/signing Out in case of less or extra "
|
||||
"hours."
|
||||
msgstr "Especifica la razón de entrada/salida inusual."
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
msgid "Specifies the reason leaving soon or arriving late"
|
||||
msgstr "Especifica la razón por salir antes o llegar tarde"
|
||||
|
|
@ -0,0 +1,200 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_attendance_reason
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 14.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2021-12-20 23:39+0000\n"
|
||||
"Last-Translator: Pierre Verkest <pierreverkest84@gmail.com>\n"
|
||||
"Language-Team: none\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 4.3.2\n"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Action Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance
|
||||
msgid "Attendance"
|
||||
msgstr "Présence"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid "Attendance Reason"
|
||||
msgstr "Raisons des lignes de présence"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.actions.act_window,name:hr_attendance_reason.hr_attendance_reason_action
|
||||
msgid "Attendance Reasons"
|
||||
msgstr "Raisons des lignes de présence"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee_base
|
||||
msgid "Basic Employee"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.constraint,message:hr_attendance_reason.constraint_hr_attendance_reason_unique_code
|
||||
msgid "Code must be unique"
|
||||
msgstr "Le code doit-être unique"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__company_id
|
||||
msgid "Company"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_settings_redefinition_menu
|
||||
msgid "Configuration"
|
||||
msgstr "Configuration"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Créé par"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Créé le"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.hr_attendance_reason_view_form
|
||||
msgid "Define attendance reason"
|
||||
msgstr "Raison de ligne de présence"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nom"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee
|
||||
msgid "Employee"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Dernière modification le"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Dernière mise à jour par"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Dernière modification le"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Leave empty if it is independent"
|
||||
msgstr "Laisser vide si la raison ne dépende ni du pointage ou dépointage"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. openerp-web
|
||||
#: code:addons/hr_attendance_reason/static/src/js/kiosk_confirm.esm.js:0
|
||||
#: code:addons/hr_attendance_reason/static/src/js/my_attendances.esm.js:0
|
||||
#, python-format
|
||||
msgid "Please, select a reason"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. openerp-web
|
||||
#: code:addons/hr_attendance_reason/static/src/xml/attendance.xml:0
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
#, python-format
|
||||
msgid "Reason"
|
||||
msgstr "Raison"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__code
|
||||
msgid "Reason Code"
|
||||
msgstr "Code"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_reason_menu
|
||||
msgid "Reasons"
|
||||
msgstr "Raisons"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__required_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Required reason on attendance screen"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__sequence
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__show_on_attendance_screen
|
||||
msgid "Show on attendance screen?"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__show_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Show reasons on attendance screen"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_in
|
||||
#, fuzzy
|
||||
msgid "Sign in"
|
||||
msgstr "Pointage/Connexion"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_out
|
||||
msgid "Sign out"
|
||||
msgstr "Dépointage/Déconnexion"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid ""
|
||||
"Specifies the reason for signing In/signing Out in case of less or extra "
|
||||
"hours."
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
msgid "Specifies the reason leaving soon or arriving late"
|
||||
msgstr "Indique la raison de départ en avance ou en retard"
|
||||
|
||||
#~ msgid "Attendance reasons"
|
||||
#~ msgstr "Raisons des lignes de présence"
|
||||
|
|
@ -0,0 +1,194 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_attendance_reason
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Action Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance
|
||||
msgid "Attendance"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid "Attendance Reason"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.actions.act_window,name:hr_attendance_reason.hr_attendance_reason_action
|
||||
msgid "Attendance Reasons"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee_base
|
||||
msgid "Basic Employee"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.constraint,message:hr_attendance_reason.constraint_hr_attendance_reason_unique_code
|
||||
msgid "Code must be unique"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__company_id
|
||||
msgid "Company"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_settings_redefinition_menu
|
||||
msgid "Configuration"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.hr_attendance_reason_view_form
|
||||
msgid "Define attendance reason"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee
|
||||
msgid "Employee"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Leave empty if it is independent"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. odoo-javascript
|
||||
#: code:addons/hr_attendance_reason/static/src/js/kiosk_confirm.esm.js:0
|
||||
#: code:addons/hr_attendance_reason/static/src/js/my_attendances.esm.js:0
|
||||
#, python-format
|
||||
msgid "Please, select a reason"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. odoo-javascript
|
||||
#: code:addons/hr_attendance_reason/static/src/xml/attendance.xml:0
|
||||
#: code:addons/hr_attendance_reason/static/src/xml/attendance.xml:0
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
#, python-format
|
||||
msgid "Reason"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__code
|
||||
msgid "Reason Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_reason_menu
|
||||
msgid "Reasons"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__required_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Required reason on attendance screen"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__sequence
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__show_on_attendance_screen
|
||||
msgid "Show on attendance screen?"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__show_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Show reasons on attendance screen"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_in
|
||||
msgid "Sign in"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_out
|
||||
msgid "Sign out"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid ""
|
||||
"Specifies the reason for signing In/signing Out in case of less or extra "
|
||||
"hours."
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
msgid "Specifies the reason leaving soon or arriving late"
|
||||
msgstr ""
|
||||
|
|
@ -0,0 +1,196 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_attendance_reason
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 15.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2023-07-06 14:10+0000\n"
|
||||
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: it\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 4.17\n"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Action Type"
|
||||
msgstr "Tipo azione"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance
|
||||
msgid "Attendance"
|
||||
msgstr "Presenza"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid "Attendance Reason"
|
||||
msgstr "Motivo presenza"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.actions.act_window,name:hr_attendance_reason.hr_attendance_reason_action
|
||||
msgid "Attendance Reasons"
|
||||
msgstr "Motivi presenza"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee_base
|
||||
msgid "Basic Employee"
|
||||
msgstr "Dipendente base"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.constraint,message:hr_attendance_reason.constraint_hr_attendance_reason_unique_code
|
||||
msgid "Code must be unique"
|
||||
msgstr "Il codice deve essere univoco"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr "Aziende"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__company_id
|
||||
msgid "Company"
|
||||
msgstr "Azienda"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Impostazioni configurazione"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_settings_redefinition_menu
|
||||
msgid "Configuration"
|
||||
msgstr "Configurazione"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Creato da"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Creato il"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.hr_attendance_reason_view_form
|
||||
msgid "Define attendance reason"
|
||||
msgstr "Definire il motivo presenza"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nome visualizzato"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model,name:hr_attendance_reason.model_hr_employee
|
||||
msgid "Employee"
|
||||
msgstr "Dipendente"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Ultima modifica il"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Ultimo aggiornamento di"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Ultimo aggiornamento il"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__action_type
|
||||
msgid "Leave empty if it is independent"
|
||||
msgstr "Lasciare vuoto se è indipendente"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. openerp-web
|
||||
#: code:addons/hr_attendance_reason/static/src/js/kiosk_confirm.esm.js:0
|
||||
#: code:addons/hr_attendance_reason/static/src/js/my_attendances.esm.js:0
|
||||
#, python-format
|
||||
msgid "Please, select a reason"
|
||||
msgstr "Selezionare un motivo"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#. openerp-web
|
||||
#: code:addons/hr_attendance_reason/static/src/xml/attendance.xml:0
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
#, python-format
|
||||
msgid "Reason"
|
||||
msgstr "Motivo"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__code
|
||||
msgid "Reason Code"
|
||||
msgstr "Codice motivo"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.ui.menu,name:hr_attendance_reason.hr_attendance_reason_menu
|
||||
msgid "Reasons"
|
||||
msgstr "Motivi"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__required_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__required_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Required reason on attendance screen"
|
||||
msgstr "Motivo richiesto sulla schermata delle presenze"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__sequence
|
||||
msgid "Sequence"
|
||||
msgstr "Sequenza"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_attendance_reason__show_on_attendance_screen
|
||||
msgid "Show on attendance screen?"
|
||||
msgstr "Mostrare sulla schermata delle presenze?"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_base__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_hr_employee_public__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_company__show_reason_on_attendance_screen
|
||||
#: model:ir.model.fields,field_description:hr_attendance_reason.field_res_config_settings__show_reason_on_attendance_screen
|
||||
#: model_terms:ir.ui.view,arch_db:hr_attendance_reason.res_config_settings_view_form
|
||||
msgid "Show reasons on attendance screen"
|
||||
msgstr "Mostra motivi sulla schermata delle presenze"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_in
|
||||
msgid "Sign in"
|
||||
msgstr "Ingresso"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields.selection,name:hr_attendance_reason.selection__hr_attendance_reason__action_type__sign_out
|
||||
msgid "Sign out"
|
||||
msgstr "Uscita"
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance__attendance_reason_ids
|
||||
msgid ""
|
||||
"Specifies the reason for signing In/signing Out in case of less or extra "
|
||||
"hours."
|
||||
msgstr "Specifica il motivo di entrata/uscita in caso di ore in più o in meno."
|
||||
|
||||
#. module: hr_attendance_reason
|
||||
#: model:ir.model.fields,help:hr_attendance_reason.field_hr_attendance_reason__name
|
||||
msgid "Specifies the reason leaving soon or arriving late"
|
||||
msgstr "Specifica il motivo per l'uscita anticipata o l'arrivo in ritardo"
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
from . import hr_attendance_reason
|
||||
from . import hr_attendance
|
||||
from . import hr_employee
|
||||
from . import hr_employee_base
|
||||
from . import res_company
|
||||
from . import res_config_settings
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# Copyright 2017 Odoo S.A.
|
||||
# Copyright 2018 ForgeFlow, S.L.
|
||||
# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class HrAttendance(models.Model):
|
||||
_inherit = "hr.attendance"
|
||||
|
||||
attendance_reason_ids = fields.Many2many(
|
||||
comodel_name="hr.attendance.reason",
|
||||
string="Attendance Reason",
|
||||
help="Specifies the reason for signing In/signing Out in case of "
|
||||
"less or extra hours.",
|
||||
)
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
# Copyright 2017 Odoo S.A.
|
||||
# Copyright 2018 ForgeFlow, S.L.
|
||||
# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class HrAttendanceReason(models.Model):
|
||||
_name = "hr.attendance.reason"
|
||||
_description = "Attendance Reason"
|
||||
_order = "sequence,id"
|
||||
|
||||
_sql_constraints = [("unique_code", "UNIQUE(code)", "Code must be unique")]
|
||||
|
||||
sequence = fields.Integer()
|
||||
company_id = fields.Many2one(
|
||||
comodel_name="res.company",
|
||||
string="Company",
|
||||
)
|
||||
name = fields.Char(
|
||||
string="Reason",
|
||||
help="Specifies the reason leaving soon or arriving late",
|
||||
required=True,
|
||||
index=True,
|
||||
)
|
||||
code = fields.Char("Reason Code")
|
||||
action_type = fields.Selection(
|
||||
[("sign_in", "Sign in"), ("sign_out", "Sign out")],
|
||||
help="Leave empty if it is independent",
|
||||
)
|
||||
show_on_attendance_screen = fields.Boolean(string="Show on attendance screen?")
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# Copyright 2023 Tecnativa - Víctor Martínez
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
class HrEmployee(models.Model):
|
||||
_inherit = "hr.employee"
|
||||
|
||||
def _attendance_action_change(self):
|
||||
attendance = super()._attendance_action_change()
|
||||
if self.env.context.get("attendance_reason_id"):
|
||||
attendance.attendance_reason_ids = [
|
||||
(4, self.env.context.get("attendance_reason_id"))
|
||||
]
|
||||
return attendance
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
# Copyright 2023 Tecnativa - Víctor Martínez
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class HrEmployeeBase(models.AbstractModel):
|
||||
_inherit = "hr.employee.base"
|
||||
|
||||
show_reason_on_attendance_screen = fields.Boolean(
|
||||
related="company_id.show_reason_on_attendance_screen", store=True
|
||||
)
|
||||
required_reason_on_attendance_screen = fields.Boolean(
|
||||
related="company_id.required_reason_on_attendance_screen", store=True
|
||||
)
|
||||
|
||||
@api.model
|
||||
def search_read(
|
||||
self, domain=None, fields=None, offset=0, limit=None, order=None, **read_kwargs
|
||||
):
|
||||
fields = fields or []
|
||||
fields += self.env.context.get("extra_fields", [])
|
||||
return super().search_read(
|
||||
domain=domain,
|
||||
fields=fields,
|
||||
offset=offset,
|
||||
limit=limit,
|
||||
order=order,
|
||||
**read_kwargs
|
||||
)
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright 2023 Tecnativa - Víctor Martínez
|
||||
# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_inherit = "res.company"
|
||||
|
||||
show_reason_on_attendance_screen = fields.Boolean(
|
||||
string="Show reasons on attendance screen"
|
||||
)
|
||||
required_reason_on_attendance_screen = fields.Boolean(
|
||||
string="Required reason on attendance screen"
|
||||
)
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright 2023 Tecnativa - Víctor Martínez
|
||||
# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
_inherit = "res.config.settings"
|
||||
|
||||
show_reason_on_attendance_screen = fields.Boolean(
|
||||
related="company_id.show_reason_on_attendance_screen", readonly=False
|
||||
)
|
||||
required_reason_on_attendance_screen = fields.Boolean(
|
||||
related="company_id.required_reason_on_attendance_screen", readonly=False
|
||||
)
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
* Odoo S.A.
|
||||
* Aaron Henriquez <ahforgeflow@forgeflow.com>
|
||||
* Damien Crier <damien.crier@camtocamp.com>
|
||||
* Saran Lim. <saranl@ecosoft.co.th>
|
||||
* David Alonso <david.alonso@solvos.es>
|
||||
* Juany Davila <juany.davila@forgeflow.com>
|
||||
|
||||
* `Tecnativa <https://www.tecnativa.com>`_:
|
||||
|
||||
* Víctor Martínez
|
||||
|
||||
* Dhara Solanki <dhara.solanki@initos.com>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
This module allows to define reasons why the attendance is not what expected.
|
||||
Some example reasons are
|
||||
|
||||
* Could not access the system: Visit a customer
|
||||
* Leave soon to pick up children
|
||||
* The Hr manager amended the attendance and needs to tell
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#. Go to *Attendances > Configuration*.
|
||||
#. Create the reasons that may cause attendances to be shorter or longer
|
||||
than normal
|
||||
#. When that situation occurs employees can justify the reason
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_hr_attendance_reason_user,hr.attendance.reason.user,model_hr_attendance_reason,hr.group_hr_user,1,1,1,1
|
||||
access_hr_attendance_reason_employee,hr.attendance.reason.employee,model_hr_attendance_reason,base.group_user,1,1,1,1
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="rule_multi_company_hr_attendance_reason" model="ir.rule">
|
||||
<field name="name">Attendance Reason multi-company</field>
|
||||
<field name="model_id" ref="model_hr_attendance_reason" />
|
||||
<field name="global" eval="True" />
|
||||
<field
|
||||
name="domain_force"
|
||||
>['|',('company_id','=',False),('company_id','in',company_ids)]</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
|
|
@ -0,0 +1,450 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
||||
<title>HR Attendance Reason</title>
|
||||
<style type="text/css">
|
||||
|
||||
/*
|
||||
:Author: David Goodger (goodger@python.org)
|
||||
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
|
||||
:Copyright: This stylesheet has been placed in the public domain.
|
||||
|
||||
Default cascading style sheet for the HTML output of Docutils.
|
||||
Despite the name, some widely supported CSS2 features are used.
|
||||
|
||||
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
||||
customize this style sheet.
|
||||
*/
|
||||
|
||||
/* used to remove borders from tables and images */
|
||||
.borderless, table.borderless td, table.borderless th {
|
||||
border: 0 }
|
||||
|
||||
table.borderless td, table.borderless th {
|
||||
/* Override padding for "table.docutils td" with "! important".
|
||||
The right padding separates the table cells. */
|
||||
padding: 0 0.5em 0 0 ! important }
|
||||
|
||||
.first {
|
||||
/* Override more specific margin styles with "! important". */
|
||||
margin-top: 0 ! important }
|
||||
|
||||
.last, .with-subtitle {
|
||||
margin-bottom: 0 ! important }
|
||||
|
||||
.hidden {
|
||||
display: none }
|
||||
|
||||
.subscript {
|
||||
vertical-align: sub;
|
||||
font-size: smaller }
|
||||
|
||||
.superscript {
|
||||
vertical-align: super;
|
||||
font-size: smaller }
|
||||
|
||||
a.toc-backref {
|
||||
text-decoration: none ;
|
||||
color: black }
|
||||
|
||||
blockquote.epigraph {
|
||||
margin: 2em 5em ; }
|
||||
|
||||
dl.docutils dd {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
||||
dl.docutils dt {
|
||||
font-weight: bold }
|
||||
*/
|
||||
|
||||
div.abstract {
|
||||
margin: 2em 5em }
|
||||
|
||||
div.abstract p.topic-title {
|
||||
font-weight: bold ;
|
||||
text-align: center }
|
||||
|
||||
div.admonition, div.attention, div.caution, div.danger, div.error,
|
||||
div.hint, div.important, div.note, div.tip, div.warning {
|
||||
margin: 2em ;
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.admonition p.admonition-title, div.hint p.admonition-title,
|
||||
div.important p.admonition-title, div.note p.admonition-title,
|
||||
div.tip p.admonition-title {
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
div.attention p.admonition-title, div.caution p.admonition-title,
|
||||
div.danger p.admonition-title, div.error p.admonition-title,
|
||||
div.warning p.admonition-title, .code .error {
|
||||
color: red ;
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
/* Uncomment (and remove this text!) to get reduced vertical space in
|
||||
compound paragraphs.
|
||||
div.compound .compound-first, div.compound .compound-middle {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
div.compound .compound-last, div.compound .compound-middle {
|
||||
margin-top: 0.5em }
|
||||
*/
|
||||
|
||||
div.dedication {
|
||||
margin: 2em 5em ;
|
||||
text-align: center ;
|
||||
font-style: italic }
|
||||
|
||||
div.dedication p.topic-title {
|
||||
font-weight: bold ;
|
||||
font-style: normal }
|
||||
|
||||
div.figure {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
div.footer, div.header {
|
||||
clear: both;
|
||||
font-size: smaller }
|
||||
|
||||
div.line-block {
|
||||
display: block ;
|
||||
margin-top: 1em ;
|
||||
margin-bottom: 1em }
|
||||
|
||||
div.line-block div.line-block {
|
||||
margin-top: 0 ;
|
||||
margin-bottom: 0 ;
|
||||
margin-left: 1.5em }
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em ;
|
||||
border: medium outset ;
|
||||
padding: 1em ;
|
||||
background-color: #ffffee ;
|
||||
width: 40% ;
|
||||
float: right ;
|
||||
clear: right }
|
||||
|
||||
div.sidebar p.rubric {
|
||||
font-family: sans-serif ;
|
||||
font-size: medium }
|
||||
|
||||
div.system-messages {
|
||||
margin: 5em }
|
||||
|
||||
div.system-messages h1 {
|
||||
color: red }
|
||||
|
||||
div.system-message {
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.system-message p.system-message-title {
|
||||
color: red ;
|
||||
font-weight: bold }
|
||||
|
||||
div.topic {
|
||||
margin: 2em }
|
||||
|
||||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
||||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
||||
margin-top: 0.4em }
|
||||
|
||||
h1.title {
|
||||
text-align: center }
|
||||
|
||||
h2.subtitle {
|
||||
text-align: center }
|
||||
|
||||
hr.docutils {
|
||||
width: 75% }
|
||||
|
||||
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
||||
clear: left ;
|
||||
float: left ;
|
||||
margin-right: 1em }
|
||||
|
||||
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
||||
clear: right ;
|
||||
float: right ;
|
||||
margin-left: 1em }
|
||||
|
||||
img.align-center, .figure.align-center, object.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left }
|
||||
|
||||
.align-center {
|
||||
clear: both ;
|
||||
text-align: center }
|
||||
|
||||
.align-right {
|
||||
text-align: right }
|
||||
|
||||
/* reset inner alignment in figures */
|
||||
div.align-right {
|
||||
text-align: inherit }
|
||||
|
||||
/* div.align-center * { */
|
||||
/* text-align: left } */
|
||||
|
||||
.align-top {
|
||||
vertical-align: top }
|
||||
|
||||
.align-middle {
|
||||
vertical-align: middle }
|
||||
|
||||
.align-bottom {
|
||||
vertical-align: bottom }
|
||||
|
||||
ol.simple, ul.simple {
|
||||
margin-bottom: 1em }
|
||||
|
||||
ol.arabic {
|
||||
list-style: decimal }
|
||||
|
||||
ol.loweralpha {
|
||||
list-style: lower-alpha }
|
||||
|
||||
ol.upperalpha {
|
||||
list-style: upper-alpha }
|
||||
|
||||
ol.lowerroman {
|
||||
list-style: lower-roman }
|
||||
|
||||
ol.upperroman {
|
||||
list-style: upper-roman }
|
||||
|
||||
p.attribution {
|
||||
text-align: right ;
|
||||
margin-left: 50% }
|
||||
|
||||
p.caption {
|
||||
font-style: italic }
|
||||
|
||||
p.credits {
|
||||
font-style: italic ;
|
||||
font-size: smaller }
|
||||
|
||||
p.label {
|
||||
white-space: nowrap }
|
||||
|
||||
p.rubric {
|
||||
font-weight: bold ;
|
||||
font-size: larger ;
|
||||
color: maroon ;
|
||||
text-align: center }
|
||||
|
||||
p.sidebar-title {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold ;
|
||||
font-size: larger }
|
||||
|
||||
p.sidebar-subtitle {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
p.topic-title {
|
||||
font-weight: bold }
|
||||
|
||||
pre.address {
|
||||
margin-bottom: 0 ;
|
||||
margin-top: 0 ;
|
||||
font: inherit }
|
||||
|
||||
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
pre.code .ln { color: gray; } /* line numbers */
|
||||
pre.code, code { background-color: #eeeeee }
|
||||
pre.code .comment, code .comment { color: #5C6576 }
|
||||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
||||
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
||||
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
||||
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
||||
pre.code .inserted, code .inserted { background-color: #A3D289}
|
||||
|
||||
span.classifier {
|
||||
font-family: sans-serif ;
|
||||
font-style: oblique }
|
||||
|
||||
span.classifier-delimiter {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
span.interpreted {
|
||||
font-family: sans-serif }
|
||||
|
||||
span.option {
|
||||
white-space: nowrap }
|
||||
|
||||
span.pre {
|
||||
white-space: pre }
|
||||
|
||||
span.problematic, pre.problematic {
|
||||
color: red }
|
||||
|
||||
span.section-subtitle {
|
||||
/* font-size relative to parent (h1..h6 element) */
|
||||
font-size: 80% }
|
||||
|
||||
table.citation {
|
||||
border-left: solid 1px gray;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docinfo {
|
||||
margin: 2em 4em }
|
||||
|
||||
table.docutils {
|
||||
margin-top: 0.5em ;
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
table.footnote {
|
||||
border-left: solid 1px black;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docutils td, table.docutils th,
|
||||
table.docinfo td, table.docinfo th {
|
||||
padding-left: 0.5em ;
|
||||
padding-right: 0.5em ;
|
||||
vertical-align: top }
|
||||
|
||||
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
||||
font-weight: bold ;
|
||||
text-align: left ;
|
||||
white-space: nowrap ;
|
||||
padding-left: 0 }
|
||||
|
||||
/* "booktabs" style (no vertical lines) */
|
||||
table.docutils.booktabs {
|
||||
border: 0px;
|
||||
border-top: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table.docutils.booktabs * {
|
||||
border: 0px;
|
||||
}
|
||||
table.docutils.booktabs th {
|
||||
border-bottom: thin solid;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
||||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
||||
font-size: 100% }
|
||||
|
||||
ul.auto-toc {
|
||||
list-style-type: none }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="document" id="hr-attendance-reason">
|
||||
<h1 class="title">HR Attendance Reason</h1>
|
||||
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:d67f27a8a24581bdd9c3e615a4a8b44ef1de5ed0d40cc3abc0aa7dbe216ce4fa
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/hr-attendance/tree/16.0/hr_attendance_reason"><img alt="OCA/hr-attendance" src="https://img.shields.io/badge/github-OCA%2Fhr--attendance-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/hr-attendance-16-0/hr-attendance-16-0-hr_attendance_reason"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/hr-attendance&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module allows to define reasons why the attendance is not what expected.
|
||||
Some example reasons are</p>
|
||||
<ul class="simple">
|
||||
<li>Could not access the system: Visit a customer</li>
|
||||
<li>Leave soon to pick up children</li>
|
||||
<li>The Hr manager amended the attendance and needs to tell</li>
|
||||
</ul>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
|
||||
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
|
||||
<ol class="arabic simple">
|
||||
<li>Go to <em>Attendances > Configuration</em>.</li>
|
||||
<li>Create the reasons that may cause attendances to be shorter or longer
|
||||
than normal</li>
|
||||
<li>When that situation occurs employees can justify the reason</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/hr-attendance/issues">GitHub Issues</a>.
|
||||
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
|
||||
<a class="reference external" href="https://github.com/OCA/hr-attendance/issues/new?body=module:%20hr_attendance_reason%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Odoo S.A.</li>
|
||||
<li>Tecnativa</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Odoo S.A.</li>
|
||||
<li>Aaron Henriquez <<a class="reference external" href="mailto:ahforgeflow@forgeflow.com">ahforgeflow@forgeflow.com</a>></li>
|
||||
<li>Damien Crier <<a class="reference external" href="mailto:damien.crier@camtocamp.com">damien.crier@camtocamp.com</a>></li>
|
||||
<li>Saran Lim. <<a class="reference external" href="mailto:saranl@ecosoft.co.th">saranl@ecosoft.co.th</a>></li>
|
||||
<li>David Alonso <<a class="reference external" href="mailto:david.alonso@solvos.es">david.alonso@solvos.es</a>></li>
|
||||
<li>Juany Davila <<a class="reference external" href="mailto:juany.davila@forgeflow.com">juany.davila@forgeflow.com</a>></li>
|
||||
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
|
||||
<li>Víctor Martínez</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Dhara Solanki <<a class="reference external" href="mailto:dhara.solanki@initos.com">dhara.solanki@initos.com</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
|
||||
<p>This module is maintained by the OCA.</p>
|
||||
<a class="reference external image-reference" href="https://odoo-community.org">
|
||||
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
||||
</a>
|
||||
<p>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.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr-attendance/tree/16.0/hr_attendance_reason">OCA/hr-attendance</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
/** @odoo-module **/
|
||||
import KioskConfirm from "hr_attendance.kiosk_confirm";
|
||||
import {_t} from "web.core";
|
||||
|
||||
const superSignInOut =
|
||||
KioskConfirm.prototype.events["click .o_hr_attendance_sign_in_out_icon"];
|
||||
const superPinPadButton =
|
||||
KioskConfirm.prototype.events["click .o_hr_attendance_pin_pad_button_ok"];
|
||||
|
||||
KioskConfirm.include({
|
||||
events: Object.assign({}, KioskConfirm.prototype.events, {
|
||||
"click .o_hr_attendance_sign_in_out_icon": function () {
|
||||
this.update_attendance(superSignInOut);
|
||||
},
|
||||
"click .o_hr_attendance_pin_pad_button_ok": function () {
|
||||
this.update_attendance(superPinPadButton);
|
||||
},
|
||||
}),
|
||||
willStart: async function () {
|
||||
await this._super();
|
||||
await this._rpc({
|
||||
model: "hr.employee",
|
||||
method: "search_read",
|
||||
args: [
|
||||
[["user_id", "=", this.getSession().uid]],
|
||||
[
|
||||
"show_reason_on_attendance_screen",
|
||||
"required_reason_on_attendance_screen",
|
||||
],
|
||||
],
|
||||
}).then((res) => {
|
||||
this.employee = res.length && res[0];
|
||||
});
|
||||
await this._rpc({
|
||||
model: "hr.attendance.reason",
|
||||
method: "search_read",
|
||||
fields: ["name", "action_type"],
|
||||
domain: [["show_on_attendance_screen", "=", true]],
|
||||
}).then((reasons) => {
|
||||
this.reasons = reasons;
|
||||
});
|
||||
},
|
||||
// This override is the way to inject into the context of an enclosed rpc call.
|
||||
_rpc: function () {
|
||||
const [{model, method, context}] = arguments;
|
||||
if (!context) {
|
||||
return this._super(...arguments);
|
||||
}
|
||||
if (model === "hr.employee" && method === "search_read") {
|
||||
context.extra_fields = [
|
||||
"show_reason_on_attendance_screen",
|
||||
"required_reason_on_attendance_screen",
|
||||
];
|
||||
}
|
||||
if (this.attendance_reason_id) {
|
||||
context.attendance_reason_id = this.attendance_reason_id;
|
||||
}
|
||||
return this._super(...arguments);
|
||||
},
|
||||
update_attendance: function (event_func) {
|
||||
this.attendance_reason_id = parseInt(
|
||||
this.$(".o_hr_attendance_reason").val(),
|
||||
0
|
||||
);
|
||||
if (
|
||||
this.attendance_reason_id === 0 &&
|
||||
this.employee.required_reason_on_attendance_screen
|
||||
) {
|
||||
this.displayNotification({
|
||||
title: _t("Please, select a reason"),
|
||||
type: "danger",
|
||||
});
|
||||
} else {
|
||||
event_func = event_func.bind(this);
|
||||
event_func();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
/** @odoo-module **/
|
||||
import MyAttendances from "hr_attendance.my_attendances";
|
||||
import session from "web.session";
|
||||
import {_t} from "web.core";
|
||||
|
||||
MyAttendances.include({
|
||||
willStart: function () {
|
||||
Object.assign(session.user_context, {
|
||||
extra_fields: [
|
||||
"show_reason_on_attendance_screen",
|
||||
"required_reason_on_attendance_screen",
|
||||
],
|
||||
});
|
||||
return this._super();
|
||||
},
|
||||
init: function () {
|
||||
this._super.apply(this, arguments);
|
||||
this.reasons = this.getAttendanceReasons();
|
||||
},
|
||||
getAttendanceReasons: function () {
|
||||
this.reasons = [];
|
||||
this._rpc({
|
||||
model: "hr.attendance.reason",
|
||||
method: "search_read",
|
||||
fields: ["name", "action_type"],
|
||||
domain: [["show_on_attendance_screen", "=", true]],
|
||||
}).then((reasons) => {
|
||||
this.reasons = reasons;
|
||||
});
|
||||
return this.reasons;
|
||||
},
|
||||
// This override is the way to inject into the context of an enclosed rpc call.
|
||||
_rpc: function () {
|
||||
const [{model, method, context}] = arguments;
|
||||
if (!context) {
|
||||
return this._super(...arguments);
|
||||
}
|
||||
if (model === "hr.employee" && method === "search_read") {
|
||||
context.extra_fields = [
|
||||
"show_reason_on_attendance_screen",
|
||||
"required_reason_on_attendance_screen",
|
||||
];
|
||||
}
|
||||
if (this.attendance_reason_id) {
|
||||
context.attendance_reason_id = this.attendance_reason_id;
|
||||
}
|
||||
return this._super(...arguments);
|
||||
},
|
||||
update_attendance: function () {
|
||||
this.attendance_reason_id = parseInt(
|
||||
this.$(".o_hr_attendance_reason").val(),
|
||||
0
|
||||
);
|
||||
if (
|
||||
this.attendance_reason_id === 0 &&
|
||||
this.employee.required_reason_on_attendance_screen
|
||||
) {
|
||||
this.displayNotification({
|
||||
title: _t("Please, select a reason"),
|
||||
type: "danger",
|
||||
});
|
||||
} else {
|
||||
this._super();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
.reasons_lists {
|
||||
width: 50%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.reasons_lists select {
|
||||
text-align: left;
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates>
|
||||
<t t-extend="HrAttendanceMyMainMenu">
|
||||
<t t-jquery="h4:first" t-operation="after">
|
||||
<t t-if="widget.employee.show_reason_on_attendance_screen">
|
||||
<div class="reasons_lists" t-if="widget.reasons">
|
||||
<h3 class="mt8">Reason</h3>
|
||||
<select
|
||||
t-att-class="(widget.employee.required_reason_on_attendance_screen == true) ? 'o_hr_attendance_reason o_input_dropdown o_input o_field_widget o_required_modifier' : 'o_hr_attendance_reason o_input_dropdown o_input o_field_widget'"
|
||||
>
|
||||
<option value="0" />
|
||||
<t t-foreach="widget.reasons" t-as="reason">
|
||||
<option
|
||||
t-att-value="reason.id"
|
||||
t-esc="reason.name"
|
||||
t-if="reason.action_type === 'sign_in' and !checked_in"
|
||||
/>
|
||||
<option
|
||||
t-att-value="reason.id"
|
||||
t-esc="reason.name"
|
||||
t-if="reason.action_type === 'sign_out' and checked_in"
|
||||
/>
|
||||
</t>
|
||||
</select>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
<t t-extend="HrAttendanceKioskConfirm">
|
||||
<t t-jquery="h4:first" t-operation="after">
|
||||
<t t-if="widget.employee.show_reason_on_attendance_screen">
|
||||
<div class="reasons_lists" t-if="widget.reasons">
|
||||
<h3 class="mt8">Reason</h3>
|
||||
<select
|
||||
t-att-class="(widget.employee.required_reason_on_attendance_screen == true) ? 'o_hr_attendance_reason o_input_dropdown o_input o_field_widget o_required_modifier' : 'o_hr_attendance_reason o_input_dropdown o_input o_field_widget'"
|
||||
>
|
||||
<option value="0" />
|
||||
<t t-foreach="widget.reasons" t-as="reason">
|
||||
<option
|
||||
t-att-value="reason.id"
|
||||
t-esc="reason.name"
|
||||
t-if="reason.action_type === 'sign_in' and !checked_in"
|
||||
/>
|
||||
<option
|
||||
t-att-value="reason.id"
|
||||
t-esc="reason.name"
|
||||
t-if="reason.action_type === 'sign_out' and checked_in"
|
||||
/>
|
||||
</t>
|
||||
</select>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</templates>
|
||||
|
|
@ -0,0 +1 @@
|
|||
from . import test_hr_attendance_reason
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
# Copyright 2017 Odoo S.A.
|
||||
# Copyright 2018 ForgeFlow, S.L.
|
||||
# Copyright 2023 Tecnativa - Víctor Martínez
|
||||
# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from odoo.tests import common, new_test_user, users
|
||||
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT as DF
|
||||
|
||||
|
||||
class TestHrAttendanceReason(common.TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.env = cls.env(
|
||||
context=dict(
|
||||
cls.env.context,
|
||||
mail_create_nolog=True,
|
||||
mail_create_nosubscribe=True,
|
||||
mail_notrack=True,
|
||||
no_reset_password=True,
|
||||
)
|
||||
)
|
||||
cls.att_reason_model = cls.env["hr.attendance.reason"]
|
||||
cls.user = new_test_user(
|
||||
cls.env,
|
||||
login="test-user",
|
||||
groups="base.group_user,hr_attendance.group_hr_attendance",
|
||||
)
|
||||
cls.employee = cls.env["hr.employee"].create(
|
||||
{"name": cls.user.login, "user_id": cls.user.id}
|
||||
)
|
||||
cls.att_reason_in = cls.att_reason_model.create(
|
||||
{"name": "Bus did not come", "code": "BB", "action_type": "sign_in"}
|
||||
)
|
||||
cls.att_reason_out = cls.att_reason_model.create(
|
||||
{"name": "A lot of work", "code": "WORK", "action_type": "sign_out"}
|
||||
)
|
||||
|
||||
@users("test-user")
|
||||
def test_employee_edit(self):
|
||||
self.env["hr.attendance"].create(
|
||||
{
|
||||
"employee_id": self.env.user.employee_id.id,
|
||||
"check_in": datetime.now().strftime(DF),
|
||||
"attendance_reason_ids": [(4, self.att_reason_in.id)],
|
||||
}
|
||||
)
|
||||
# check out
|
||||
res = self.env.user.employee_id.with_context(
|
||||
attendance_reason_id=self.att_reason_out.id
|
||||
).attendance_manual({})
|
||||
self.assertIn(
|
||||
self.att_reason_in.id, res["action"]["attendance"]["attendance_reason_ids"]
|
||||
)
|
||||
self.assertIn(
|
||||
self.att_reason_out.id, res["action"]["attendance"]["attendance_reason_ids"]
|
||||
)
|
||||
|
||||
@users("test-user")
|
||||
def test_user_attendance_manual(self):
|
||||
# check in
|
||||
res = self.env.user.employee_id.with_context(
|
||||
attendance_reason_id=self.att_reason_in.id
|
||||
).attendance_manual({})
|
||||
self.assertIn(
|
||||
self.att_reason_in.id, res["action"]["attendance"]["attendance_reason_ids"]
|
||||
)
|
||||
# check out
|
||||
res = self.env.user.employee_id.with_context(
|
||||
attendance_reason_id=self.att_reason_out.id
|
||||
).attendance_manual({})
|
||||
self.assertIn(
|
||||
self.att_reason_out.id, res["action"]["attendance"]["attendance_reason_ids"]
|
||||
)
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="hr_attendance_reason_view_form" model="ir.ui.view">
|
||||
<field name="name">hr.attendance.reason.form</field>
|
||||
<field name="model">hr.attendance.reason</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Define attendance reason">
|
||||
<sheet>
|
||||
<group col="4">
|
||||
<field name="name" />
|
||||
<field name="code" />
|
||||
<field name="action_type" />
|
||||
<field
|
||||
name="show_on_attendance_screen"
|
||||
attrs="{'invisible': [('action_type', '==', False)]}"
|
||||
/>
|
||||
<field name="company_id" groups="base.group_multi_company" />
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="hr_attendance_reason_view_tree" model="ir.ui.view">
|
||||
<field name="name">hr.attendance.reason.tree</field>
|
||||
<field name="model">hr.attendance.reason</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="sequence" widget="handle" />
|
||||
<field name="name" />
|
||||
<field name="code" />
|
||||
<field name="action_type" />
|
||||
<field name="show_on_attendance_screen" />
|
||||
<field name="company_id" groups="base.group_multi_company" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="hr_attendance_reason_action" model="ir.actions.act_window">
|
||||
<field name="name">Attendance Reasons</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">hr.attendance.reason</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="hr_attendance_reason_view_tree" />
|
||||
</record>
|
||||
<menuitem
|
||||
id="hr_attendance_settings_redefinition_menu"
|
||||
name="Configuration"
|
||||
parent="hr_attendance.menu_hr_attendance_settings"
|
||||
sequence="99"
|
||||
action="hr_attendance.action_hr_attendance_settings"
|
||||
groups="hr_attendance.group_hr_attendance_manager"
|
||||
/>
|
||||
<menuitem
|
||||
id="hr_attendance_reason_menu"
|
||||
name="Reasons"
|
||||
parent="hr_attendance.menu_hr_attendance_settings"
|
||||
action="hr_attendance_reason_action"
|
||||
sequence="110"
|
||||
groups="hr_attendance.group_hr_attendance_manager"
|
||||
/>
|
||||
<record id="hr_attendance.menu_hr_attendance_settings" model="ir.ui.menu">
|
||||
<!-- We need to leave the action empty for consistency because we are going
|
||||
to set different submenus, otherwise the configuration menu would not be
|
||||
displayed to a basic user. !-->
|
||||
<field name="action" eval="False" />
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="hr_attendance_view_form" model="ir.ui.view">
|
||||
<field name="name">hr.attendance.form</field>
|
||||
<field name="model">hr.attendance</field>
|
||||
<field name="inherit_id" ref="hr_attendance.hr_attendance_view_form" />
|
||||
<field name="priority">500</field>
|
||||
<field name="arch" type="xml">
|
||||
<sheet position="inside">
|
||||
<group name="reason">
|
||||
<group>
|
||||
<field name="attendance_reason_ids" widget="many2many_tags" />
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
</field>
|
||||
</record>
|
||||
<record id="hr_attendance_view_tree" model="ir.ui.view">
|
||||
<field name="name">hr.attendance.tree</field>
|
||||
<field name="model">hr.attendance</field>
|
||||
<field name="inherit_id" ref="hr_attendance.view_attendance_tree" />
|
||||
<field name="priority">500</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="worked_hours" position="after">
|
||||
<field name="attendance_reason_ids" widget="many2many_tags" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="res_config_settings_view_form" model="ir.ui.view">
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="hr_attendance.res_config_settings_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//div[@data-key='hr_attendance']//div[hasclass('o_settings_container')]"
|
||||
position="inside"
|
||||
>
|
||||
<div class="col-12 col-lg-6 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="show_reason_on_attendance_screen" />
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="show_reason_on_attendance_screen" />
|
||||
<div class="text-muted">Show reasons on attendance screen</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="required_reason_on_attendance_screen" />
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="required_reason_on_attendance_screen" />
|
||||
<div
|
||||
class="text-muted"
|
||||
>Required reason on attendance screen</div>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
[project]
|
||||
name = "odoo-bringout-oca-hr-attendance-hr_attendance_reason"
|
||||
version = "16.0.0"
|
||||
description = "HR Attendance Reason - Odoo addon"
|
||||
authors = [
|
||||
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
|
||||
]
|
||||
dependencies = [
|
||||
"odoo-bringout-oca-hr-attendance-hr_attendance>=16.0.0",
|
||||
"requests>=2.25.1"
|
||||
]
|
||||
readme = "README.md"
|
||||
requires-python = ">= 3.11"
|
||||
classifiers = [
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Topic :: Office/Business",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
homepage = "https://github.com/bringout/0"
|
||||
repository = "https://github.com/bringout/0"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.metadata]
|
||||
allow-direct-references = true
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["hr_attendance_reason"]
|
||||
|
||||
[tool.rye]
|
||||
managed = true
|
||||
dev-dependencies = [
|
||||
"pytest>=8.4.1",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue