mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-23 14:52:03 +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,45 @@
|
|||
# Holidays Summary Email
|
||||
|
||||
Odoo addon: hr_holidays_summary_email
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-hr-holidays-hr_holidays_summary_email
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
||||
This addon depends on:
|
||||
- hr_holidays
|
||||
- hr_holidays_settings
|
||||
|
||||
## Manifest Information
|
||||
|
||||
- **Name**: Holidays Summary Email
|
||||
- **Version**: 16.0.1.0.0
|
||||
- **Category**: Human Resources
|
||||
- **License**: AGPL-3
|
||||
- **Installable**: True
|
||||
|
||||
## Source
|
||||
|
||||
Based on [OCA/hr-holidays](https://github.com/OCA/hr-holidays) branch 16.0, addon `hr_holidays_summary_email`.
|
||||
|
||||
## License
|
||||
|
||||
This package maintains the original AGPL-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_holidays_summary_email Module - hr_holidays_summary_email
|
||||
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_holidays_summary_email. 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,6 @@
|
|||
# Dependencies
|
||||
|
||||
This addon depends on:
|
||||
|
||||
- [hr_holidays](../../odoo-bringout-oca-ocb-hr_holidays)
|
||||
- [hr_holidays_settings](../../odoo-bringout-oca-hr-holidays-hr_holidays_settings)
|
||||
|
|
@ -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_holidays_summary_email or install in UI.
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# Install
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-hr-holidays-hr_holidays_summary_email"
|
||||
# or
|
||||
uv pip install odoo-bringout-oca-hr-holidays-hr_holidays_summary_email"
|
||||
```
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# Models
|
||||
|
||||
Detected core models and extensions in hr_holidays_summary_email.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
class hr_employee_base
|
||||
class hr_leave
|
||||
class res_company
|
||||
class res_config_settings
|
||||
class res_users
|
||||
```
|
||||
|
||||
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_holidays_summary_email. Provides features documented in upstream Odoo 16 under this addon.
|
||||
|
||||
- Source: OCA/OCB 16.0, addon hr_holidays_summary_email
|
||||
- License: LGPL-3
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Reports
|
||||
|
||||
This module does not define custom reports.
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# Security
|
||||
|
||||
This module does not define custom security rules or access controls beyond Odoo defaults.
|
||||
|
||||
Default Odoo security applies:
|
||||
- Base user access through standard groups
|
||||
- Model access inherited from dependencies
|
||||
- No custom row-level security rules
|
||||
|
|
@ -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_holidays_summary_email
|
||||
```
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Wizards
|
||||
|
||||
This module does not include UI wizards.
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
======================
|
||||
Holidays Summary Email
|
||||
======================
|
||||
|
||||
..
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:b07b8a34ea45e8afe8f4f1b4dbd8b5cca645ec333ddffb8a2fbb3b17285a5f53
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
||||
:target: https://odoo-community.org/page/development-status
|
||||
:alt: Beta
|
||||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr--holidays-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/hr-holidays/tree/16.0/hr_holidays_summary_email
|
||||
:alt: OCA/hr-holidays
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/hr-holidays-16-0/hr-holidays-16-0-hr_holidays_summary_email
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
||||
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr-holidays&target_branch=16.0
|
||||
:alt: Try me on Runboat
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
This module allows sending a daily/weekly email to employees with a summary
|
||||
of the leaves on that period of other employees in the same company.
|
||||
|
||||
**Table of contents**
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
For each employee, three options can be selected for the Leave Summary Email
|
||||
configuration:
|
||||
|
||||
- No: No email with the leaves summary is sent to the employee.
|
||||
- Daily: A daily email with the leaves summary is sent to the employee.
|
||||
- Weekly: A weekly email with the leaves summary is sent to the employee.
|
||||
|
||||
For the weekly email, the setting `Leave Weekly Summary Day of Week` allows
|
||||
setting the day of the week in which the email is sent.
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr-holidays/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/hr-holidays/issues/new?body=module:%20hr_holidays_summary_email%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
|
||||
~~~~~~~
|
||||
|
||||
* ForgeFlow
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* ForgeFlow <http://www.forgeflow.com>
|
||||
|
||||
* Jordi Masvidal
|
||||
|
||||
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.
|
||||
|
||||
.. |maintainer-JordiMForgeFlow| image:: https://github.com/JordiMForgeFlow.png?size=40px
|
||||
:target: https://github.com/JordiMForgeFlow
|
||||
:alt: JordiMForgeFlow
|
||||
|
||||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-JordiMForgeFlow|
|
||||
|
||||
This module is part of the `OCA/hr-holidays <https://github.com/OCA/hr-holidays/tree/16.0/hr_holidays_summary_email>`_ 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,24 @@
|
|||
# Copyright 2023 ForgeFlow S.L.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
{
|
||||
"name": "Holidays Summary Email",
|
||||
"summary": """
|
||||
Notify employees with daily or weekly leaves summaries of their company.
|
||||
""",
|
||||
"version": "16.0.1.0.0",
|
||||
"category": "Human Resources",
|
||||
"website": "https://github.com/OCA/hr-holidays",
|
||||
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
||||
"license": "AGPL-3",
|
||||
"installable": True,
|
||||
"depends": ["hr_holidays", "hr_holidays_settings"],
|
||||
"data": [
|
||||
"data/ir_cron.xml",
|
||||
"data/mail_template_data.xml",
|
||||
"views/hr_employee_views.xml",
|
||||
"views/res_users_views.xml",
|
||||
"views/res_config_settings.xml",
|
||||
],
|
||||
"maintainers": ["JordiMForgeFlow"],
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo noupdate="1">
|
||||
<record forcecreate="True" id="ir_cron_hr_holidays_summary_email" model="ir.cron">
|
||||
<field name="name">Leaves Summary Email</field>
|
||||
<field eval="True" name="active" />
|
||||
<field name="user_id" ref="base.user_root" />
|
||||
<field name="interval_number">1</field>
|
||||
<field name="interval_type">days</field>
|
||||
<field name="numbercall">-1</field>
|
||||
<field eval="False" name="doall" />
|
||||
<field name="model_id" ref="model_hr_leave" />
|
||||
<field name="state">code</field>
|
||||
<field name="code">model._cron_send_hr_leave_summary_emails()</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,119 @@
|
|||
<?xml version="1.0" ?>
|
||||
<odoo noupdate="1">
|
||||
<record id="hr_holidays_summary_mail_template_daily" model="mail.template">
|
||||
<field name="name">Leaves Summary: Daily</field>
|
||||
<field name="model_id" ref="hr.model_hr_employee" />
|
||||
<field name="subject">Daily Leaves Summary</field>
|
||||
<field name="email_to">{{object.work_email}}</field>
|
||||
<field
|
||||
name="email_from"
|
||||
>{{object.company_id.partner_id.email_formatted}}</field>
|
||||
<field name="body_html" type="html">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
<p>Dear <t t-out="object.name" />,</p>
|
||||
<br />
|
||||
<p>This is today's leave summary:</p>
|
||||
<br />
|
||||
<table
|
||||
style="border-spacing: 0; border-collapse: collapse; width: 100%; text-align: center;"
|
||||
>
|
||||
<tr>
|
||||
<th
|
||||
style="padding: 5px; border: 1px solid black;"
|
||||
>Employee</th>
|
||||
<th
|
||||
style="padding: 5px; border: 1px solid black;"
|
||||
>Time Off</th>
|
||||
<th style="padding: 5px; border: 1px solid black;">From</th>
|
||||
<th style="padding: 5px; border: 1px solid black;">To</th>
|
||||
</tr>
|
||||
<t t-set="timeoffs" t-value="ctx.get('time_offs', [])" />
|
||||
<t t-foreach="timeoffs" t-as="data">
|
||||
<t
|
||||
t-set="d_from"
|
||||
t-value="data.format_hr_leave_summary_date()"
|
||||
/>
|
||||
<t
|
||||
t-set="d_to"
|
||||
t-value="data.format_hr_leave_summary_date(False)"
|
||||
/>
|
||||
<tr>
|
||||
<td style="padding: 5px; border: 1px solid black;"><t
|
||||
t-out="data.employee_id.name"
|
||||
/></td>
|
||||
<td style="padding: 5px; border: 1px solid black;"><t
|
||||
t-out="data.name or ''"
|
||||
/></td>
|
||||
<td style="padding: 5px; border: 1px solid black;"><t
|
||||
t-out="d_from"
|
||||
/></td>
|
||||
<td style="padding: 5px; border: 1px solid black;"><t
|
||||
t-out="d_to"
|
||||
/></td>
|
||||
</tr>
|
||||
</t>
|
||||
</table>
|
||||
</div>
|
||||
</field>
|
||||
<field name="lang">{{object.lang}}</field>
|
||||
<field name="auto_delete" eval="True" />
|
||||
</record>
|
||||
<record id="hr_holidays_summary_mail_template_weekly" model="mail.template">
|
||||
<field name="name">Leaves Summary: Weekly</field>
|
||||
<field name="model_id" ref="hr.model_hr_employee" />
|
||||
<field name="subject">Weekly Leaves Summary</field>
|
||||
<field name="email_to">{{object.work_email}}</field>
|
||||
<field
|
||||
name="email_from"
|
||||
>{{object.company_id.partner_id.email_formatted}}</field>
|
||||
<field name="body_html" type="html">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
<p>Dear <t t-out="object.name" />,</p>
|
||||
<br />
|
||||
<p>This is the leaves summary for this week:</p>
|
||||
<br />
|
||||
<table
|
||||
style="border-spacing: 0; border-collapse: collapse; width: 100%; text-align: center;"
|
||||
>
|
||||
<tr>
|
||||
<th
|
||||
style="padding: 5px; border: 1px solid black;"
|
||||
>Employee</th>
|
||||
<th
|
||||
style="padding: 5px; border: 1px solid black;"
|
||||
>Time Off</th>
|
||||
<th style="padding: 5px; border: 1px solid black;">From</th>
|
||||
<th style="padding: 5px; border: 1px solid black;">To</th>
|
||||
</tr>
|
||||
<t t-set="timeoffs" t-value="ctx.get('time_offs', [])" />
|
||||
<t t-foreach="timeoffs" t-as="data">
|
||||
<t
|
||||
t-set="d_from"
|
||||
t-value="data.format_hr_leave_summary_date()"
|
||||
/>
|
||||
<t
|
||||
t-set="d_to"
|
||||
t-value="data.format_hr_leave_summary_date(False)"
|
||||
/>
|
||||
<tr>
|
||||
<td style="padding: 5px; border: 1px solid black;"><t
|
||||
t-out="data.employee_id.name"
|
||||
/></td>
|
||||
<td style="padding: 5px; border: 1px solid black;"><t
|
||||
t-out="data.name or ''"
|
||||
/></td>
|
||||
<td style="padding: 5px; border: 1px solid black;"><t
|
||||
t-out="d_from"
|
||||
/></td>
|
||||
<td style="padding: 5px; border: 1px solid black;"><t
|
||||
t-out="d_to"
|
||||
/></td>
|
||||
</tr>
|
||||
</t>
|
||||
</table>
|
||||
</div>
|
||||
</field>
|
||||
<field name="lang">{{object.lang}}</field>
|
||||
<field name="auto_delete" eval="True" />
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,219 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_holidays_summary_email
|
||||
#
|
||||
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_holidays_summary_email
|
||||
#: model:mail.template,body_html:hr_holidays_summary_email.hr_holidays_summary_mail_template_weekly
|
||||
msgid ""
|
||||
"<div style=\"margin: 0px; padding: 0px;\">\n"
|
||||
" <p>Dear <t t-out=\"object.name\"></t>,</p>\n"
|
||||
" <br>\n"
|
||||
" <p>This is the leaves summary for this week:</p>\n"
|
||||
" <br>\n"
|
||||
" <table style=\"border-spacing: 0; border-collapse: collapse; width: 100%; text-align: center;\">\n"
|
||||
" <tr>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">Employee</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">Time Off</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">From</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">To</th>\n"
|
||||
" </tr>\n"
|
||||
" <t t-set=\"timeoffs\" t-value=\"ctx.get('time_offs', [])\"></t>\n"
|
||||
" <t t-foreach=\"timeoffs\" t-as=\"data\">\n"
|
||||
" <t t-set=\"d_from\" t-value=\"data.format_hr_leave_summary_date()\"></t>\n"
|
||||
" <t t-set=\"d_to\" t-value=\"data.format_hr_leave_summary_date(False)\"></t>\n"
|
||||
" <tr>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"data.employee_id.name\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"data.name or ''\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"d_from\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"d_to\"></t></td>\n"
|
||||
" </tr>\n"
|
||||
" </t>\n"
|
||||
" </table>\n"
|
||||
" </div>\n"
|
||||
" "
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,body_html:hr_holidays_summary_email.hr_holidays_summary_mail_template_daily
|
||||
msgid ""
|
||||
"<div style=\"margin: 0px; padding: 0px;\">\n"
|
||||
" <p>Dear <t t-out=\"object.name\"></t>,</p>\n"
|
||||
" <br>\n"
|
||||
" <p>This is today's leave summary:</p>\n"
|
||||
" <br>\n"
|
||||
" <table style=\"border-spacing: 0; border-collapse: collapse; width: 100%; text-align: center;\">\n"
|
||||
" <tr>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">Employee</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">Time Off</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">From</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">To</th>\n"
|
||||
" </tr>\n"
|
||||
" <t t-set=\"timeoffs\" t-value=\"ctx.get('time_offs', [])\"></t>\n"
|
||||
" <t t-foreach=\"timeoffs\" t-as=\"data\">\n"
|
||||
" <t t-set=\"d_from\" t-value=\"data.format_hr_leave_summary_date()\"></t>\n"
|
||||
" <t t-set=\"d_to\" t-value=\"data.format_hr_leave_summary_date(False)\"></t>\n"
|
||||
" <tr>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"data.employee_id.name\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"data.name or ''\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"d_from\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"d_to\"></t></td>\n"
|
||||
" </tr>\n"
|
||||
" </t>\n"
|
||||
" </table>\n"
|
||||
" </div>\n"
|
||||
" "
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model_terms:ir.ui.view,arch_db:hr_holidays_summary_email.res_config_settings_view_form
|
||||
msgid "<span class=\"o_form_label\">Weekly Leaves Summary</span>"
|
||||
msgstr "<span class=\"o_form_label\">Sedmični sažetak odmora</span>"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_hr_employee_base
|
||||
msgid "Basic Employee"
|
||||
msgstr "Obični zaposlenik"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr "Kompanije"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Postavke"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee__hr_leave_summary_type__daily
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_base__hr_leave_summary_type__daily
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_public__hr_leave_summary_type__daily
|
||||
msgid "Daily"
|
||||
msgstr "Dnevno"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,subject:hr_holidays_summary_email.hr_holidays_summary_mail_template_daily
|
||||
msgid "Daily Leaves Summary"
|
||||
msgstr "Dnevni sažetak odmora"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model_terms:ir.ui.view,arch_db:hr_holidays_summary_email.res_config_settings_view_form
|
||||
msgid "Day of week when the weekly leaves summary is sent."
|
||||
msgstr "Dan sedmice kada se šalje sedmični sažetak odmora."
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__4
|
||||
msgid "Friday"
|
||||
msgstr "Petak"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee__last_hr_leave_summary_sent
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee_base__last_hr_leave_summary_sent
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee_public__last_hr_leave_summary_sent
|
||||
msgid "Last Leave Summary Email Sent"
|
||||
msgstr "Zadnji poslani e-mail sažetka odmora"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee__hr_leave_summary_type
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee_base__hr_leave_summary_type
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee_public__hr_leave_summary_type
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_res_users__hr_leave_summary_type
|
||||
msgid "Leave Summary Email"
|
||||
msgstr "E-mail sažetka odmora"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_res_company__hr_holidays_summary_weekly_dow
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_res_config_settings__hr_holidays_summary_weekly_dow
|
||||
msgid "Leave Weekly Summary Day of Week"
|
||||
msgstr "Dan sedmice sedmičnog sažetka odmora"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.actions.server,name:hr_holidays_summary_email.ir_cron_hr_holidays_summary_email_ir_actions_server
|
||||
#: model:ir.cron,cron_name:hr_holidays_summary_email.ir_cron_hr_holidays_summary_email
|
||||
msgid "Leaves Summary Email"
|
||||
msgstr "E-mail sažetka odmora"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,name:hr_holidays_summary_email.hr_holidays_summary_mail_template_daily
|
||||
msgid "Leaves Summary: Daily"
|
||||
msgstr "Sažetak odmora: Dnevni"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,name:hr_holidays_summary_email.hr_holidays_summary_mail_template_weekly
|
||||
msgid "Leaves Summary: Weekly"
|
||||
msgstr "Sažetak odmora: Sedmični"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__0
|
||||
msgid "Monday"
|
||||
msgstr "Ponedjeljak"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee__hr_leave_summary_type__no
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_base__hr_leave_summary_type__no
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_public__hr_leave_summary_type__no
|
||||
msgid "No"
|
||||
msgstr "Ne"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__5
|
||||
msgid "Saturday"
|
||||
msgstr "Subota"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model_terms:ir.ui.view,arch_db:hr_holidays_summary_email.res_config_settings_view_form
|
||||
msgid "Sending Day Of Week"
|
||||
msgstr "Dan slanja u sedmici"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__6
|
||||
msgid "Sunday"
|
||||
msgstr "Nedjelja"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__3
|
||||
msgid "Thursday"
|
||||
msgstr "Četvrtak"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_hr_leave
|
||||
msgid "Time Off"
|
||||
msgstr "Odsustva"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__1
|
||||
msgid "Tuesday"
|
||||
msgstr "Utorak"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_res_users
|
||||
msgid "User"
|
||||
msgstr "Korisnik"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__2
|
||||
msgid "Wednesday"
|
||||
msgstr "Srijeda"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee__hr_leave_summary_type__weekly
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_base__hr_leave_summary_type__weekly
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_public__hr_leave_summary_type__weekly
|
||||
msgid "Weekly"
|
||||
msgstr "Sedmično"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,subject:hr_holidays_summary_email.hr_holidays_summary_mail_template_weekly
|
||||
msgid "Weekly Leaves Summary"
|
||||
msgstr "Sedmični sažetak odmora"
|
||||
|
|
@ -0,0 +1,219 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_holidays_summary_email
|
||||
#
|
||||
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_holidays_summary_email
|
||||
#: model:mail.template,body_html:hr_holidays_summary_email.hr_holidays_summary_mail_template_weekly
|
||||
msgid ""
|
||||
"<div style=\"margin: 0px; padding: 0px;\">\n"
|
||||
" <p>Dear <t t-out=\"object.name\"></t>,</p>\n"
|
||||
" <br>\n"
|
||||
" <p>This is the leaves summary for this week:</p>\n"
|
||||
" <br>\n"
|
||||
" <table style=\"border-spacing: 0; border-collapse: collapse; width: 100%; text-align: center;\">\n"
|
||||
" <tr>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">Employee</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">Time Off</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">From</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">To</th>\n"
|
||||
" </tr>\n"
|
||||
" <t t-set=\"timeoffs\" t-value=\"ctx.get('time_offs', [])\"></t>\n"
|
||||
" <t t-foreach=\"timeoffs\" t-as=\"data\">\n"
|
||||
" <t t-set=\"d_from\" t-value=\"data.format_hr_leave_summary_date()\"></t>\n"
|
||||
" <t t-set=\"d_to\" t-value=\"data.format_hr_leave_summary_date(False)\"></t>\n"
|
||||
" <tr>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"data.employee_id.name\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"data.name or ''\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"d_from\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"d_to\"></t></td>\n"
|
||||
" </tr>\n"
|
||||
" </t>\n"
|
||||
" </table>\n"
|
||||
" </div>\n"
|
||||
" "
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,body_html:hr_holidays_summary_email.hr_holidays_summary_mail_template_daily
|
||||
msgid ""
|
||||
"<div style=\"margin: 0px; padding: 0px;\">\n"
|
||||
" <p>Dear <t t-out=\"object.name\"></t>,</p>\n"
|
||||
" <br>\n"
|
||||
" <p>This is today's leave summary:</p>\n"
|
||||
" <br>\n"
|
||||
" <table style=\"border-spacing: 0; border-collapse: collapse; width: 100%; text-align: center;\">\n"
|
||||
" <tr>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">Employee</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">Time Off</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">From</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid black;\">To</th>\n"
|
||||
" </tr>\n"
|
||||
" <t t-set=\"timeoffs\" t-value=\"ctx.get('time_offs', [])\"></t>\n"
|
||||
" <t t-foreach=\"timeoffs\" t-as=\"data\">\n"
|
||||
" <t t-set=\"d_from\" t-value=\"data.format_hr_leave_summary_date()\"></t>\n"
|
||||
" <t t-set=\"d_to\" t-value=\"data.format_hr_leave_summary_date(False)\"></t>\n"
|
||||
" <tr>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"data.employee_id.name\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"data.name or ''\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"d_from\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid black;\"><t t-out=\"d_to\"></t></td>\n"
|
||||
" </tr>\n"
|
||||
" </t>\n"
|
||||
" </table>\n"
|
||||
" </div>\n"
|
||||
" "
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model_terms:ir.ui.view,arch_db:hr_holidays_summary_email.res_config_settings_view_form
|
||||
msgid "<span class=\"o_form_label\">Weekly Leaves Summary</span>"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_hr_employee_base
|
||||
msgid "Basic Employee"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee__hr_leave_summary_type__daily
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_base__hr_leave_summary_type__daily
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_public__hr_leave_summary_type__daily
|
||||
msgid "Daily"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,subject:hr_holidays_summary_email.hr_holidays_summary_mail_template_daily
|
||||
msgid "Daily Leaves Summary"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model_terms:ir.ui.view,arch_db:hr_holidays_summary_email.res_config_settings_view_form
|
||||
msgid "Day of week when the weekly leaves summary is sent."
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__4
|
||||
msgid "Friday"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee__last_hr_leave_summary_sent
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee_base__last_hr_leave_summary_sent
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee_public__last_hr_leave_summary_sent
|
||||
msgid "Last Leave Summary Email Sent"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee__hr_leave_summary_type
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee_base__hr_leave_summary_type
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee_public__hr_leave_summary_type
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_res_users__hr_leave_summary_type
|
||||
msgid "Leave Summary Email"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_res_company__hr_holidays_summary_weekly_dow
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_res_config_settings__hr_holidays_summary_weekly_dow
|
||||
msgid "Leave Weekly Summary Day of Week"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.actions.server,name:hr_holidays_summary_email.ir_cron_hr_holidays_summary_email_ir_actions_server
|
||||
#: model:ir.cron,cron_name:hr_holidays_summary_email.ir_cron_hr_holidays_summary_email
|
||||
msgid "Leaves Summary Email"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,name:hr_holidays_summary_email.hr_holidays_summary_mail_template_daily
|
||||
msgid "Leaves Summary: Daily"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,name:hr_holidays_summary_email.hr_holidays_summary_mail_template_weekly
|
||||
msgid "Leaves Summary: Weekly"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__0
|
||||
msgid "Monday"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee__hr_leave_summary_type__no
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_base__hr_leave_summary_type__no
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_public__hr_leave_summary_type__no
|
||||
msgid "No"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__5
|
||||
msgid "Saturday"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model_terms:ir.ui.view,arch_db:hr_holidays_summary_email.res_config_settings_view_form
|
||||
msgid "Sending Day Of Week"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__6
|
||||
msgid "Sunday"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__3
|
||||
msgid "Thursday"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_hr_leave
|
||||
msgid "Time Off"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__1
|
||||
msgid "Tuesday"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_res_users
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__2
|
||||
msgid "Wednesday"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee__hr_leave_summary_type__weekly
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_base__hr_leave_summary_type__weekly
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_public__hr_leave_summary_type__weekly
|
||||
msgid "Weekly"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,subject:hr_holidays_summary_email.hr_holidays_summary_mail_template_weekly
|
||||
msgid "Weekly Leaves Summary"
|
||||
msgstr ""
|
||||
|
|
@ -0,0 +1,492 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_holidays_summary_email
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 14.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2024-09-11 09:06+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 5.6.2\n"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,body_html:hr_holidays_summary_email.hr_holidays_summary_mail_template_weekly
|
||||
msgid ""
|
||||
"<div style=\"margin: 0px; padding: 0px;\">\n"
|
||||
" <p>Dear <t t-out=\"object.name\"></t>,</p>\n"
|
||||
" <br>\n"
|
||||
" <p>This is the leaves summary for this week:</p>\n"
|
||||
" <br>\n"
|
||||
" <table style=\"border-spacing: 0; border-collapse: "
|
||||
"collapse; width: 100%; text-align: center;\">\n"
|
||||
" <tr>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">Employee</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">Time Off</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">From</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">To</th>\n"
|
||||
" </tr>\n"
|
||||
" <t t-set=\"timeoffs\" t-value=\"ctx.get('time_offs', "
|
||||
"[])\"></t>\n"
|
||||
" <t t-foreach=\"timeoffs\" t-as=\"data\">\n"
|
||||
" <t t-set=\"d_from\" t-value=\"data."
|
||||
"format_hr_leave_summary_date()\"></t>\n"
|
||||
" <t t-set=\"d_to\" t-value=\"data."
|
||||
"format_hr_leave_summary_date(False)\"></t>\n"
|
||||
" <tr>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"data.employee_id.name\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"data.name or ''\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"d_from\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"d_to\"></t></td>\n"
|
||||
" </tr>\n"
|
||||
" </t>\n"
|
||||
" </table>\n"
|
||||
" </div>\n"
|
||||
" "
|
||||
msgstr ""
|
||||
"<div style=\"margin: 0px; padding: 0px;\">\n"
|
||||
" <p>Spettabile <t t-out=\"object.name\"></t>,</p>\n"
|
||||
" <br>\n"
|
||||
" <p>Questo è il riepilogo delle assenze di questa "
|
||||
"settimana:</p>\n"
|
||||
" <br>\n"
|
||||
" <table style=\"border-spacing: 0; border-collapse: "
|
||||
"collapse; width: 100%; text-align: center;\">\n"
|
||||
" <tr>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">Dipendente</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">Assenza</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">Dal</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">Al</th>\n"
|
||||
" </tr>\n"
|
||||
" <t t-set=\"timeoffs\" t-value=\"ctx.get('time_offs', "
|
||||
"[])\"></t>\n"
|
||||
" <t t-foreach=\"timeoffs\" t-as=\"data\">\n"
|
||||
" <t t-set=\"d_from\" t-value=\"data."
|
||||
"format_hr_leave_summary_date()\"></t>\n"
|
||||
" <t t-set=\"d_to\" t-value=\"data."
|
||||
"format_hr_leave_summary_date(False)\"></t>\n"
|
||||
" <tr>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"data.employee_id.name\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"data.name or ''\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"d_from\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"d_to\"></t></td>\n"
|
||||
" </tr>\n"
|
||||
" </t>\n"
|
||||
" </table>\n"
|
||||
" </div>\n"
|
||||
" "
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,body_html:hr_holidays_summary_email.hr_holidays_summary_mail_template_daily
|
||||
msgid ""
|
||||
"<div style=\"margin: 0px; padding: 0px;\">\n"
|
||||
" <p>Dear <t t-out=\"object.name\"></t>,</p>\n"
|
||||
" <br>\n"
|
||||
" <p>This is today's leave summary:</p>\n"
|
||||
" <br>\n"
|
||||
" <table style=\"border-spacing: 0; border-collapse: "
|
||||
"collapse; width: 100%; text-align: center;\">\n"
|
||||
" <tr>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">Employee</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">Time Off</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">From</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">To</th>\n"
|
||||
" </tr>\n"
|
||||
" <t t-set=\"timeoffs\" t-value=\"ctx.get('time_offs', "
|
||||
"[])\"></t>\n"
|
||||
" <t t-foreach=\"timeoffs\" t-as=\"data\">\n"
|
||||
" <t t-set=\"d_from\" t-value=\"data."
|
||||
"format_hr_leave_summary_date()\"></t>\n"
|
||||
" <t t-set=\"d_to\" t-value=\"data."
|
||||
"format_hr_leave_summary_date(False)\"></t>\n"
|
||||
" <tr>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"data.employee_id.name\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"data.name or ''\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"d_from\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"d_to\"></t></td>\n"
|
||||
" </tr>\n"
|
||||
" </t>\n"
|
||||
" </table>\n"
|
||||
" </div>\n"
|
||||
" "
|
||||
msgstr ""
|
||||
"<div style=\"margin: 0px; padding: 0px;\">\n"
|
||||
" <p>Spettabile <t t-out=\"object.name\"></t>,</p>\n"
|
||||
" <br>\n"
|
||||
" <p>Questo è il riepilogo dell'assenza di oggi:</p>\n"
|
||||
" <br>\n"
|
||||
" <table style=\"border-spacing: 0; border-collapse: "
|
||||
"collapse; width: 100%; text-align: center;\">\n"
|
||||
" <tr>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">Dipendente</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">Assenza</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">Da</th>\n"
|
||||
" <th style=\"padding: 5px; border: 1px solid "
|
||||
"black;\">A</th>\n"
|
||||
" </tr>\n"
|
||||
" <t t-set=\"timeoffs\" t-value=\"ctx.get('time_offs', "
|
||||
"[])\"></t>\n"
|
||||
" <t t-foreach=\"timeoffs\" t-as=\"data\">\n"
|
||||
" <t t-set=\"d_from\" t-value=\"data."
|
||||
"format_hr_leave_summary_date()\"></t>\n"
|
||||
" <t t-set=\"d_to\" t-value=\"data."
|
||||
"format_hr_leave_summary_date(False)\"></t>\n"
|
||||
" <tr>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"data.employee_id.name\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"data.name or ''\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"d_from\"></t></td>\n"
|
||||
" <td style=\"padding: 5px; border: 1px solid "
|
||||
"black;\"><t t-out=\"d_to\"></t></td>\n"
|
||||
" </tr>\n"
|
||||
" </t>\n"
|
||||
" </table>\n"
|
||||
" </div>\n"
|
||||
" "
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model_terms:ir.ui.view,arch_db:hr_holidays_summary_email.res_config_settings_view_form
|
||||
msgid "<span class=\"o_form_label\">Weekly Leaves Summary</span>"
|
||||
msgstr "<span class=\"o_form_label\">Riepilogo permessi settimanali</span>"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_hr_employee_base
|
||||
msgid "Basic Employee"
|
||||
msgstr "Dipendente base"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr "Aziende"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Impostazioni configurazione"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee__hr_leave_summary_type__daily
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_base__hr_leave_summary_type__daily
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_public__hr_leave_summary_type__daily
|
||||
msgid "Daily"
|
||||
msgstr "Giornaliero"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,subject:hr_holidays_summary_email.hr_holidays_summary_mail_template_daily
|
||||
msgid "Daily Leaves Summary"
|
||||
msgstr "Riepilogo permessi giornaliero"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model_terms:ir.ui.view,arch_db:hr_holidays_summary_email.res_config_settings_view_form
|
||||
msgid "Day of week when the weekly leaves summary is sent."
|
||||
msgstr ""
|
||||
"Girno della settimana in cui viene spedito il riepilogo dei permessi "
|
||||
"settimanali."
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__4
|
||||
msgid "Friday"
|
||||
msgstr "Venerdì"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee__last_hr_leave_summary_sent
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee_base__last_hr_leave_summary_sent
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee_public__last_hr_leave_summary_sent
|
||||
msgid "Last Leave Summary Email Sent"
|
||||
msgstr "Ultima e-mail ripilogo permesso inviata"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee__hr_leave_summary_type
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee_base__hr_leave_summary_type
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_hr_employee_public__hr_leave_summary_type
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_res_users__hr_leave_summary_type
|
||||
msgid "Leave Summary Email"
|
||||
msgstr "E-mail riepilogo permesso"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_res_company__hr_holidays_summary_weekly_dow
|
||||
#: model:ir.model.fields,field_description:hr_holidays_summary_email.field_res_config_settings__hr_holidays_summary_weekly_dow
|
||||
msgid "Leave Weekly Summary Day of Week"
|
||||
msgstr "Giorno della settimana riepilogo settimanale permesso"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.actions.server,name:hr_holidays_summary_email.ir_cron_hr_holidays_summary_email_ir_actions_server
|
||||
#: model:ir.cron,cron_name:hr_holidays_summary_email.ir_cron_hr_holidays_summary_email
|
||||
msgid "Leaves Summary Email"
|
||||
msgstr "E-mail riepilogo permessi"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,name:hr_holidays_summary_email.hr_holidays_summary_mail_template_daily
|
||||
msgid "Leaves Summary: Daily"
|
||||
msgstr "Riepilogo assenze: giornaliero"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,name:hr_holidays_summary_email.hr_holidays_summary_mail_template_weekly
|
||||
msgid "Leaves Summary: Weekly"
|
||||
msgstr "Riepilogo assenze: settimanale"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__0
|
||||
msgid "Monday"
|
||||
msgstr "Lunedì"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee__hr_leave_summary_type__no
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_base__hr_leave_summary_type__no
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_public__hr_leave_summary_type__no
|
||||
msgid "No"
|
||||
msgstr "No"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__5
|
||||
msgid "Saturday"
|
||||
msgstr "Sabato"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model_terms:ir.ui.view,arch_db:hr_holidays_summary_email.res_config_settings_view_form
|
||||
msgid "Sending Day Of Week"
|
||||
msgstr "Giorno della settimana spedizione"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__6
|
||||
msgid "Sunday"
|
||||
msgstr "Domenica"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__3
|
||||
msgid "Thursday"
|
||||
msgstr "Giovedì"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_hr_leave
|
||||
msgid "Time Off"
|
||||
msgstr "Ferie"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__1
|
||||
msgid "Tuesday"
|
||||
msgstr "Martedì"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model,name:hr_holidays_summary_email.model_res_users
|
||||
msgid "User"
|
||||
msgstr "Utente"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__res_company__hr_holidays_summary_weekly_dow__2
|
||||
msgid "Wednesday"
|
||||
msgstr "Mercoledì"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee__hr_leave_summary_type__weekly
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_base__hr_leave_summary_type__weekly
|
||||
#: model:ir.model.fields.selection,name:hr_holidays_summary_email.selection__hr_employee_public__hr_leave_summary_type__weekly
|
||||
msgid "Weekly"
|
||||
msgstr "Settimanale"
|
||||
|
||||
#. module: hr_holidays_summary_email
|
||||
#: model:mail.template,subject:hr_holidays_summary_email.hr_holidays_summary_mail_template_weekly
|
||||
msgid "Weekly Leaves Summary"
|
||||
msgstr "Riepilogo permessi settimanale"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "<div style=\"margin: 0px; padding: 0px;\">\n"
|
||||
#~ " <p>Dear ${object.name},</p>\n"
|
||||
#~ " <br/>\n"
|
||||
#~ " <p>This is the leaves summary for this week:</p>\n"
|
||||
#~ " <br/>\n"
|
||||
#~ " <table style=\"border-spacing: 0; border-collapse: "
|
||||
#~ "collapse; width: 100%; text-align: center;\">\n"
|
||||
#~ " <tr>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">Employee</th>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">Time Off</th>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">From</th>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">To</th>\n"
|
||||
#~ " </tr>\n"
|
||||
#~ " % set timeoffs = ctx.get('time_offs', False)\n"
|
||||
#~ " % for data in timeoffs\n"
|
||||
#~ " % set d_from = data."
|
||||
#~ "format_hr_leave_summary_date()\n"
|
||||
#~ " % set d_to = data."
|
||||
#~ "format_hr_leave_summary_date(False)\n"
|
||||
#~ " <tr>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${data.employee_id.name}</td>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${data.name or ''}</td>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${d_from}</td>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${d_to}</td>\n"
|
||||
#~ " </tr>\n"
|
||||
#~ " % endfor\n"
|
||||
#~ " </table>\n"
|
||||
#~ " </div>\n"
|
||||
#~ " "
|
||||
#~ msgstr ""
|
||||
#~ "<div style=\"margin: 0px; padding: 0px;\">\n"
|
||||
#~ " <p>Spettabile ${object.name},</p>\n"
|
||||
#~ " <br/>\n"
|
||||
#~ " <p>questo è il riepilogo dei permessi di questa "
|
||||
#~ "settimana:</p>\n"
|
||||
#~ " <br/>\n"
|
||||
#~ " <table style=\"border-spacing: 0; border-collapse: "
|
||||
#~ "collapse; width: 100%; text-align: center;\">\n"
|
||||
#~ " <tr>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">Dipendente</th>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">Tempo assenza</th>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">Da</th>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">A</th>\n"
|
||||
#~ " </tr>\n"
|
||||
#~ " % set timeoffs = ctx.get('time_offs', False)\n"
|
||||
#~ " % for data in timeoffs\n"
|
||||
#~ " % set d_from = data."
|
||||
#~ "format_hr_leave_summary_date()\n"
|
||||
#~ " % set d_to = data."
|
||||
#~ "format_hr_leave_summary_date(False)\n"
|
||||
#~ " <tr>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${data.employee_id.name}</td>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${data.name or ''}</td>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${d_from}</td>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${d_to}</td>\n"
|
||||
#~ " </tr>\n"
|
||||
#~ " % endfor\n"
|
||||
#~ " </table>\n"
|
||||
#~ " </div>\n"
|
||||
#~ " "
|
||||
|
||||
#~ msgid ""
|
||||
#~ "<div style=\"margin: 0px; padding: 0px;\">\n"
|
||||
#~ " <p>Dear ${object.name},</p>\n"
|
||||
#~ " <br/>\n"
|
||||
#~ " <p>This is today's leave summary:</p>\n"
|
||||
#~ " <br/>\n"
|
||||
#~ " <table style=\"border-spacing: 0; border-collapse: "
|
||||
#~ "collapse; width: 100%; text-align: center;\">\n"
|
||||
#~ " <tr>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">Employee</th>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">Time Off</th>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">From</th>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">To</th>\n"
|
||||
#~ " </tr>\n"
|
||||
#~ " % set timeoffs = ctx.get('time_offs', False)\n"
|
||||
#~ " % for data in timeoffs\n"
|
||||
#~ " % set d_from = data."
|
||||
#~ "format_hr_leave_summary_date()\n"
|
||||
#~ " % set d_to = data."
|
||||
#~ "format_hr_leave_summary_date(False)\n"
|
||||
#~ " <tr>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${data.employee_id.name}</td>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${data.name or ''}</td>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${d_from}</td>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${d_to}</td>\n"
|
||||
#~ " </tr>\n"
|
||||
#~ " % endfor\n"
|
||||
#~ " </table>\n"
|
||||
#~ " </div>\n"
|
||||
#~ " "
|
||||
#~ msgstr ""
|
||||
#~ "<div style=\"margin: 0px; padding: 0px;\">\n"
|
||||
#~ " <p>Spetabile ${object.name},</p>\n"
|
||||
#~ " <br/>\n"
|
||||
#~ " <p>questo è il ripilogo dei permessi odierni:</p>\n"
|
||||
#~ " <br/>\n"
|
||||
#~ " <table style=\"border-spacing: 0; border-collapse: "
|
||||
#~ "collapse; width: 100%; text-align: center;\">\n"
|
||||
#~ " <tr>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">Dipndente</th>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">Tempo assenza</th>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">Da</th>\n"
|
||||
#~ " <th style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">A</th>\n"
|
||||
#~ " </tr>\n"
|
||||
#~ " % set timeoffs = ctx.get('time_offs', False)\n"
|
||||
#~ " % for data in timeoffs\n"
|
||||
#~ " % set d_from = data."
|
||||
#~ "format_hr_leave_summary_date()\n"
|
||||
#~ " % set d_to = data."
|
||||
#~ "format_hr_leave_summary_date(False)\n"
|
||||
#~ " <tr>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${data.employee_id.name}</td>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${data.name or ''}</td>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${d_from}</td>\n"
|
||||
#~ " <td style=\"padding: 5px; border: 1px solid "
|
||||
#~ "black;\">${d_to}</td>\n"
|
||||
#~ " </tr>\n"
|
||||
#~ " % endfor\n"
|
||||
#~ " </table>\n"
|
||||
#~ " </div>\n"
|
||||
#~ " "
|
||||
|
||||
#~ msgid "Display Name"
|
||||
#~ msgstr "Nome visualizzato"
|
||||
|
||||
#~ msgid "ID"
|
||||
#~ msgstr "ID"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Ultima modifica il"
|
||||
|
||||
#~ msgid "Users"
|
||||
#~ msgstr "Utenti"
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
from . import hr_leave
|
||||
from . import hr_employee
|
||||
from . import res_company
|
||||
from . import res_config_settings
|
||||
from . import res_users
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright 2023 ForgeFlow S.L.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class HrEmployeeBase(models.AbstractModel):
|
||||
_inherit = "hr.employee.base"
|
||||
|
||||
hr_leave_summary_type = fields.Selection(
|
||||
selection=[("no", "No"), ("daily", "Daily"), ("weekly", "Weekly")],
|
||||
string="Leave Summary Email",
|
||||
required=True,
|
||||
default="no",
|
||||
)
|
||||
last_hr_leave_summary_sent = fields.Date(
|
||||
string="Last Leave Summary Email Sent",
|
||||
readonly=True,
|
||||
)
|
||||
|
|
@ -0,0 +1,137 @@
|
|||
# Copyright 2023 ForgeFlow S.L.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
from odoo import api, fields, models
|
||||
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT
|
||||
|
||||
|
||||
class HrLeave(models.Model):
|
||||
_inherit = "hr.leave"
|
||||
|
||||
@api.model
|
||||
def _get_hr_leave_summary_mail_template(self, summary_type):
|
||||
return self.env.ref(
|
||||
"hr_holidays_summary_email.hr_holidays_summary_mail_template_%s"
|
||||
% summary_type,
|
||||
raise_if_not_found=False,
|
||||
)
|
||||
|
||||
@api.model
|
||||
def _get_hr_leave_summary_employee_domain(self, summary_type, company_id):
|
||||
return [
|
||||
("hr_leave_summary_type", "=", summary_type),
|
||||
("last_hr_leave_summary_sent", "!=", fields.Date.today()),
|
||||
("company_id", "=", company_id),
|
||||
]
|
||||
|
||||
@api.model
|
||||
def _get_hr_leave_summary_base_domain(self, company_id):
|
||||
return [
|
||||
("state", "=", "validate"),
|
||||
("employee_id.company_id", "=", company_id),
|
||||
]
|
||||
|
||||
@api.model
|
||||
def _get_hr_leave_summary_daily_domain(self, company_id):
|
||||
res = self._get_hr_leave_summary_base_domain(company_id)
|
||||
res += [
|
||||
("date_from", "<=", fields.Date.today()),
|
||||
("date_to", ">=", fields.Date.today()),
|
||||
]
|
||||
return res
|
||||
|
||||
@api.model
|
||||
def _get_hr_leave_summary_weekly_domain(self, company_id):
|
||||
res = self._get_hr_leave_summary_base_domain(company_id)
|
||||
date_from = fields.Date.today()
|
||||
date_to = date_from + relativedelta(days=6)
|
||||
res += [
|
||||
("date_from", "<=", date_to),
|
||||
("date_to", ">=", date_from),
|
||||
]
|
||||
return res
|
||||
|
||||
@api.model
|
||||
def _cron_send_hr_leave_summary_emails_daily(self, employees_to_notify, company):
|
||||
domain = self._get_hr_leave_summary_daily_domain(company.id)
|
||||
today_time_offs = self.env["hr.leave"].sudo().search(domain)
|
||||
template = self._get_hr_leave_summary_mail_template("daily")
|
||||
if not template:
|
||||
return
|
||||
for employee in employees_to_notify:
|
||||
template.with_context(time_offs=today_time_offs).send_mail(
|
||||
employee.id, force_send=False
|
||||
)
|
||||
employees_to_notify.write({"last_hr_leave_summary_sent": fields.Date.today()})
|
||||
|
||||
@api.model
|
||||
def _cron_send_hr_leave_summary_emails_weekly(self, employees_to_notify, company):
|
||||
if str(fields.Date.today().weekday()) != company.hr_holidays_summary_weekly_dow:
|
||||
return
|
||||
domain = self._get_hr_leave_summary_weekly_domain(company.id)
|
||||
today_time_offs = self.env["hr.leave"].sudo().search(domain)
|
||||
template = self._get_hr_leave_summary_mail_template("weekly")
|
||||
if not template:
|
||||
return
|
||||
for employee in employees_to_notify:
|
||||
template.with_context(time_offs=today_time_offs).send_mail(
|
||||
employee.id, force_send=False
|
||||
)
|
||||
employees_to_notify.write({"last_hr_leave_summary_sent": fields.Date.today()})
|
||||
|
||||
@api.model
|
||||
def _cron_send_hr_leave_summary_emails(self):
|
||||
summary_types = self.env["hr.employee"].fields_get(["hr_leave_summary_type"])[
|
||||
"hr_leave_summary_type"
|
||||
]["selection"]
|
||||
for company in self.env["res.company"].search([]):
|
||||
for stype_tuple in summary_types:
|
||||
stype = stype_tuple[0]
|
||||
employee_domain = self._get_hr_leave_summary_employee_domain(
|
||||
stype, company.id
|
||||
)
|
||||
employees_to_notify = self.env["hr.employee"].search(employee_domain)
|
||||
if employees_to_notify and hasattr(
|
||||
self, "_cron_send_hr_leave_summary_emails_%s" % stype
|
||||
):
|
||||
getattr(self, "_cron_send_hr_leave_summary_emails_%s" % stype)(
|
||||
employees_to_notify, company
|
||||
)
|
||||
|
||||
def format_hr_leave_summary_date(self, date_from=True):
|
||||
self.ensure_one()
|
||||
if date_from:
|
||||
res = self.date_from.strftime(DEFAULT_SERVER_DATE_FORMAT)
|
||||
else:
|
||||
res = self.date_to.strftime(DEFAULT_SERVER_DATE_FORMAT)
|
||||
if self.request_unit_half:
|
||||
res += (
|
||||
" %s"
|
||||
% dict(
|
||||
self.env["hr.leave"].fields_get(["request_date_from_period"])[
|
||||
"request_date_from_period"
|
||||
]["selection"]
|
||||
)[self.request_date_from_period]
|
||||
)
|
||||
elif self.request_unit_hours:
|
||||
if date_from:
|
||||
res += (
|
||||
" %s"
|
||||
% dict(
|
||||
self.env["hr.leave"].fields_get(["request_hour_from"])[
|
||||
"request_hour_from"
|
||||
]["selection"]
|
||||
)[self.request_hour_from]
|
||||
)
|
||||
else:
|
||||
res += (
|
||||
" %s"
|
||||
% dict(
|
||||
self.env["hr.leave"].fields_get(["request_hour_to"])[
|
||||
"request_hour_to"
|
||||
]["selection"]
|
||||
)[self.request_hour_to]
|
||||
)
|
||||
return res
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
# Copyright 2023 ForgeFlow S.L.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_inherit = "res.company"
|
||||
|
||||
hr_holidays_summary_weekly_dow = fields.Selection(
|
||||
selection=[
|
||||
("0", "Monday"),
|
||||
("1", "Tuesday"),
|
||||
("2", "Wednesday"),
|
||||
("3", "Thursday"),
|
||||
("4", "Friday"),
|
||||
("5", "Saturday"),
|
||||
("6", "Sunday"),
|
||||
],
|
||||
string="Leave Weekly Summary Day of Week",
|
||||
default="0",
|
||||
required=True,
|
||||
)
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# Copyright 2023 ForgeFlow S.L.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
_inherit = "res.config.settings"
|
||||
|
||||
hr_holidays_summary_weekly_dow = fields.Selection(
|
||||
related="company_id.hr_holidays_summary_weekly_dow",
|
||||
readonly=False,
|
||||
required=True,
|
||||
)
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# Copyright 2023 ForgeFlow S.L.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResUser(models.Model):
|
||||
_inherit = "res.users"
|
||||
|
||||
hr_leave_summary_type = fields.Selection(
|
||||
related="employee_id.hr_leave_summary_type", readonly=False, related_sudo=False
|
||||
)
|
||||
|
||||
@property
|
||||
def SELF_READABLE_FIELDS(self):
|
||||
return super().SELF_READABLE_FIELDS + ["hr_leave_summary_type"]
|
||||
|
||||
@property
|
||||
def SELF_WRITEABLE_FIELDS(self):
|
||||
return super().SELF_WRITEABLE_FIELDS + ["hr_leave_summary_type"]
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
* ForgeFlow <http://www.forgeflow.com>
|
||||
|
||||
* Jordi Masvidal
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
This module allows sending a daily/weekly email to employees with a summary
|
||||
of the leaves on that period of other employees in the same company.
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
For each employee, three options can be selected for the Leave Summary Email
|
||||
configuration:
|
||||
|
||||
- No: No email with the leaves summary is sent to the employee.
|
||||
- Daily: A daily email with the leaves summary is sent to the employee.
|
||||
- Weekly: A weekly email with the leaves summary is sent to the employee.
|
||||
|
||||
For the weekly email, the setting `Leave Weekly Summary Day of Week` allows
|
||||
setting the day of the week in which the email is sent.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
|
|
@ -0,0 +1,445 @@
|
|||
<!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>Holidays Summary Email</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="holidays-summary-email">
|
||||
<h1 class="title">Holidays Summary Email</h1>
|
||||
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:b07b8a34ea45e8afe8f4f1b4dbd8b5cca645ec333ddffb8a2fbb3b17285a5f53
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<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/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/hr-holidays/tree/16.0/hr_holidays_summary_email"><img alt="OCA/hr-holidays" src="https://img.shields.io/badge/github-OCA%2Fhr--holidays-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/hr-holidays-16-0/hr-holidays-16-0-hr_holidays_summary_email"><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-holidays&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 sending a daily/weekly email to employees with a summary
|
||||
of the leaves on that period of other employees in the same company.</p>
|
||||
<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>
|
||||
<p>For each employee, three options can be selected for the Leave Summary Email
|
||||
configuration:</p>
|
||||
<ul class="simple">
|
||||
<li>No: No email with the leaves summary is sent to the employee.</li>
|
||||
<li>Daily: A daily email with the leaves summary is sent to the employee.</li>
|
||||
<li>Weekly: A weekly email with the leaves summary is sent to the employee.</li>
|
||||
</ul>
|
||||
<p>For the weekly email, the setting <cite>Leave Weekly Summary Day of Week</cite> allows
|
||||
setting the day of the week in which the email is sent.</p>
|
||||
</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-holidays/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-holidays/issues/new?body=module:%20hr_holidays_summary_email%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>ForgeFlow</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
|
||||
<ul>
|
||||
<li><p class="first">ForgeFlow <<a class="reference external" href="http://www.forgeflow.com">http://www.forgeflow.com</a>></p>
|
||||
<blockquote>
|
||||
<ul class="simple">
|
||||
<li>Jordi Masvidal</li>
|
||||
</ul>
|
||||
</blockquote>
|
||||
</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>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external image-reference" href="https://github.com/JordiMForgeFlow"><img alt="JordiMForgeFlow" src="https://github.com/JordiMForgeFlow.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr-holidays/tree/16.0/hr_holidays_summary_email">OCA/hr-holidays</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 @@
|
|||
from . import test_hr_leave_summary_email
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
# Copyright 2023 ForgeFlow S.L.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
from datetime import date, datetime
|
||||
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
from odoo.tests import common
|
||||
|
||||
|
||||
class TestHrLeaveSummaryEmail(common.TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.HrLeave = cls.env["hr.leave"]
|
||||
leave_type = cls.env.ref("hr_holidays.hr_holiday_status_dv")
|
||||
# Add allocation days for the test
|
||||
leave_type.write({"requires_allocation": "no"})
|
||||
calendar = cls.env.ref("resource.resource_calendar_std")
|
||||
partner = cls.env["res.partner"].create(
|
||||
{
|
||||
"name": "Test employee",
|
||||
"type": "private",
|
||||
"country_id": cls.env.ref("base.es").id,
|
||||
}
|
||||
)
|
||||
cls.employee = cls.env["hr.employee"].create(
|
||||
{
|
||||
"name": "Test employee",
|
||||
"address_home_id": partner.id,
|
||||
"resource_calendar_id": calendar.id,
|
||||
}
|
||||
)
|
||||
# Today leave
|
||||
cls.leave_1 = (
|
||||
cls.env["hr.leave"]
|
||||
.with_context(leave_skip_state_check=True)
|
||||
.create(
|
||||
{
|
||||
"name": "Test 1",
|
||||
"employee_id": cls.employee.id,
|
||||
"holiday_status_id": leave_type.id,
|
||||
"date_from": datetime.today(),
|
||||
"date_to": (datetime.today() + relativedelta(days=1)),
|
||||
"number_of_days": 1,
|
||||
"state": "validate",
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
# Week leave
|
||||
cls.leave_2 = (
|
||||
cls.env["hr.leave"]
|
||||
.with_context(leave_skip_state_check=True)
|
||||
.create(
|
||||
{
|
||||
"name": "Test 2",
|
||||
"employee_id": cls.employee.id,
|
||||
"holiday_status_id": leave_type.id,
|
||||
"date_from": (datetime.today() + relativedelta(days=3)),
|
||||
"date_to": (datetime.today() + relativedelta(days=5)),
|
||||
"number_of_days": 2,
|
||||
"state": "validate",
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
def test_hr_leave_summary_no(self):
|
||||
"""
|
||||
No email sent with the default setting in the employee
|
||||
"""
|
||||
self.HrLeave._cron_send_hr_leave_summary_emails()
|
||||
self.assertFalse(self.employee.last_hr_leave_summary_sent)
|
||||
|
||||
def test_hr_leave_summary_daily(self):
|
||||
"""
|
||||
Today's active leave is part of the daily email, but the other not.
|
||||
"""
|
||||
domain = self.HrLeave._get_hr_leave_summary_daily_domain(self.env.company.id)
|
||||
today_time_offs = self.HrLeave.search(domain)
|
||||
self.assertIn(self.leave_1, today_time_offs)
|
||||
self.assertNotIn(self.leave_2, today_time_offs)
|
||||
self.employee.write({"hr_leave_summary_type": "daily"})
|
||||
self.HrLeave._cron_send_hr_leave_summary_emails()
|
||||
self.assertEqual(self.employee.last_hr_leave_summary_sent, date.today())
|
||||
|
||||
def test_hr_leave_summary_weekly(self):
|
||||
"""
|
||||
Today's active leave is part of the daily email, as well as the other
|
||||
in the same week.
|
||||
"""
|
||||
domain = self.HrLeave._get_hr_leave_summary_weekly_domain(self.env.company.id)
|
||||
today_time_offs = self.HrLeave.search(domain)
|
||||
self.assertIn(self.leave_1, today_time_offs)
|
||||
self.assertIn(self.leave_2, today_time_offs)
|
||||
self.employee.write(
|
||||
{"hr_leave_summary_type": "weekly", "last_hr_leave_summary_sent": False}
|
||||
)
|
||||
self.env.company.write(
|
||||
{"hr_holidays_summary_weekly_dow": str(date.today().weekday())}
|
||||
)
|
||||
self.HrLeave._cron_send_hr_leave_summary_emails()
|
||||
self.assertEqual(self.employee.last_hr_leave_summary_sent, date.today())
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" ?>
|
||||
<!--
|
||||
Copyright 2023 ForgeFlow S.L.
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo>
|
||||
<record id="view_employee_form_leave_inherit" model="ir.ui.view">
|
||||
<field name="name">hr.employee.view.form - hr_holidays_summary_email</field>
|
||||
<field name="model">hr.employee</field>
|
||||
<field name="inherit_id" ref="hr_holidays.view_employee_form_leave_inherit" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="leave_manager_id" position="after">
|
||||
<field name="hr_leave_summary_type" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
<record id="hr_employee_public_view_form" model="ir.ui.view">
|
||||
<field name="name">hr.employee.public.form - hr_holidays_summary_email</field>
|
||||
<field name="model">hr.employee.public</field>
|
||||
<field name="inherit_id" ref="hr.hr_employee_public_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="leave_manager_id" position="after">
|
||||
<field name="hr_leave_summary_type" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2023 ForgeFlow S.L.
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo>
|
||||
<record id="res_config_settings_view_form" model="ir.ui.view">
|
||||
<field name="name">res.config.settings.form - hr_holidays_summary_email</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="hr_holidays_settings.res_config_settings_view_form"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@data-key='hr_holidays']/div" position="after">
|
||||
<div class="row mt16 o_settings_container">
|
||||
<div
|
||||
class="col-12 o_setting_box"
|
||||
id="hr_holidays_summary_weekly_dow"
|
||||
>
|
||||
<div class="o_setting_right_pane">
|
||||
<span class="o_form_label">Weekly Leaves Summary</span>
|
||||
<div class="text-muted">
|
||||
Day of week when the weekly leaves summary is sent.
|
||||
</div>
|
||||
<div class="row mt16">
|
||||
<label
|
||||
for="hr_holidays_summary_weekly_dow"
|
||||
string="Sending Day Of Week"
|
||||
class="col-lg-4 o_light_label"
|
||||
/>
|
||||
<field
|
||||
name="hr_holidays_summary_weekly_dow"
|
||||
class="oe_inline"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version='1.0' encoding='utf-8' ?>
|
||||
<odoo>
|
||||
<record id="res_users_view_form_profile" model="ir.ui.view">
|
||||
<field
|
||||
name="name"
|
||||
>res.users.preferences.form.inherit - hr_holidays_summary_email</field>
|
||||
<field name="model">res.users</field>
|
||||
<field name="inherit_id" ref="hr.res_users_view_form_profile" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="email" position="after">
|
||||
<field
|
||||
name="hr_leave_summary_type"
|
||||
attrs="{'readonly': [('can_edit', '=', False)]}"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
[project]
|
||||
name = "odoo-bringout-oca-hr-holidays-hr_holidays_summary_email"
|
||||
version = "16.0.0"
|
||||
description = "Holidays Summary Email -
|
||||
Notify employees with daily or weekly leaves summaries of their company.
|
||||
"
|
||||
authors = [
|
||||
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
|
||||
]
|
||||
dependencies = [
|
||||
"odoo-bringout-oca-hr-holidays-hr_holidays>=16.0.0",
|
||||
"odoo-bringout-oca-hr-holidays-hr_holidays_settings>=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_holidays_summary_email"]
|
||||
|
||||
[tool.rye]
|
||||
managed = true
|
||||
dev-dependencies = [
|
||||
"pytest>=8.4.1",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue