diff --git a/hr_employee_birthday_mail/README.rst b/hr_employee_birthday_mail/README.rst new file mode 100644 index 00000000000..dfa23dd9079 --- /dev/null +++ b/hr_employee_birthday_mail/README.rst @@ -0,0 +1,90 @@ +========================= +HR Employee Birthday Mail +========================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:d36cbb615ef09bd9ba7f4e776801c06e79d00bad7726fb0a12af4c34afe24834 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github + :target: https://github.com/OCA/hr/tree/17.0/hr_employee_birthday_mail + :alt: OCA/hr +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/hr-17-0/hr-17-0-hr_employee_birthday_mail + :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&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +The module automates the process of sending out personalized birthday +emails to the celebrating employee while also informing their coworkers +about the special day. It encourages a culture of mutual respect, +camaraderie, and celebration within the team. + +In essence, the 'hr_employee_birthday_mail' module ensures that every +birthday is acknowledged and celebrated, thereby promoting a positive +and unified work environment. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Just install and configure in the scheduled action the hour you want to +run the check daily. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* ForgeFlow + +Contributors +------------ + +- Joan Sisquella +- Mateu Griful + +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 `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_employee_birthday_mail/__init__.py b/hr_employee_birthday_mail/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/hr_employee_birthday_mail/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/hr_employee_birthday_mail/__manifest__.py b/hr_employee_birthday_mail/__manifest__.py new file mode 100644 index 00000000000..482119a5b21 --- /dev/null +++ b/hr_employee_birthday_mail/__manifest__.py @@ -0,0 +1,22 @@ +# Copyright 2023 ForgeFlow S.L. (https://www.forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "HR Employee Birthday Mail", + "summary": """ + Automating birthday mail messages and fostering for a positive work environment. + """, + "version": "17.0.1.1.0", + "license": "AGPL-3", + "author": "ForgeFlow, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/hr", + "depends": ["hr", "mail"], + "data": [ + "data/data.xml", + "data/ir_cron.xml", + "views/hr_employee_views.xml", + "views/res_user_views.xml", + ], + "installable": True, + "application": False, + "auto_install": False, +} diff --git a/hr_employee_birthday_mail/data/data.xml b/hr_employee_birthday_mail/data/data.xml new file mode 100644 index 00000000000..0ba5961b04b --- /dev/null +++ b/hr_employee_birthday_mail/data/data.xml @@ -0,0 +1,179 @@ + + + Birthday Email 1 + + 🎂 Happy Birthday, {{ object.name }}! + {{ object.company_id.email }} + {{ object.work_email }} + +
+

Happy Birthday, !

+

Another trip around the sun, and you don't look a day older! We wish you a fantastic day full of joy and surprises. May this year bring you closer to your dreams and bless you with abundance and joy. 🎉

+

Remember, you're not getting older, you're gaining more experience. And with each passing year, you become a more valuable member of our team. Here's to an amazing birthday and a year filled with adventure! 🥳

+

Cheers to you on your special day, !

+
+
+
+ + + Birthday Email 2 + + 🎂 Celebrating You Today, {{ object.name }}! + {{ object.company_id.email }} + {{ object.work_email }} + +
+

🎉 Let's Celebrate, ! 🎉

+

Today, we celebrate not just any birthday, but YOUR birthday: a day when a truly exceptional person came into this world.

+

Age is just a number, and the wrinkles are merely where the smiles have been. Remember, you're not getting older, you're just becoming a classic!

+

Your birthday is a special milestone on this journey of life, and we're thrilled to share it with you. Today is about celebrating all that you are and all that you will be.

+

So here's to you, ! Wishing you an abundance of fun, joy and cake on your special day. Have an unforgettable birthday! 🥳🎈

+
+
+
+ + + Birthday Email 3 + + 🎂 {{ object.name }}!, It's Your Day! + {{ object.company_id.email }} + {{ object.work_email }} + +
+

🎂 Hey there, ! It's Your Special Day! 🎂

+

Birthdays are nature's way of telling us to eat more cake and ice cream. And, as it happens to be your birthday, we feel you deserve to have as much as you want!

+

Today, we're not just celebrating your birthday. We're celebrating you: the invaluable part of our team, the cheer-bringer, the problem-solver, the ray of sunshine in the office.

+

On this day, we hope you enjoy all the wonderful things life has to offer and spend it doing what you love the most. Remember, today is about you and only you. Make sure you enjoy it to the fullest!

+

So sit back, relax, and let the good vibes roll. Happy Birthday, ! We hope this day brings you nothing but joy and happiness. 🥳🎉

+
+
+
+ + + Coworker's Birthday Email 1 + + 🎉 Birthday Alert: It's {{ ctx['birthday_employee'] }}'s special day! + {{ object.company_id.email }} + {{ object.work_email }} + +
+

🎉 Birthday Alert 🎉

+

Hi ,

+

Something feels different today, right? There's an extra sparkle in the air and a spring in our steps. Wondering why?

+

It's because it's 's birthday! 🎂

+

So, let's crank up the joy and celebration in the office today. Don't forget to wish them a happy birthday and make this day even more special for them! 🎈🎁

+
+
+
+ + + Coworker's Birthday Email 2 + + 🎉 Cake Alert: {{ ctx['birthday_employee']}} + {{ object.company_id.email }} + {{ object.work_email }} + +
+

🎉 Birthday Alert: is another year wiser! 🎉

+

Hey there, ,

+

Guess what? We're fortunate enough to have a birthday in our midst today! Yes, it's 's big day!

+

Take a moment, when you can, to send them your good wishes and contribute to a positive atmosphere today. Remember, even a simple 'Happy Birthday' can make someone's day!

+

Let's all help make feel appreciated and valued on their special day! 🎈🎁

+

Thank you for your continuous effort in making our workplace a supportive and friendly environment!

+
+
+
+ + + Coworker's Birthday Email 3 + + 🎉 Time to Celebrate: {{ ctx['birthday_employee'] }}'s Birthday! + {{ object.company_id.email }} + {{ object.work_email }} + +
+

🎂 It's Time to Celebrate: 's Birthday!

+

Hello, !

+

Today, we're celebrating the birthday of a valued team member, .

+

This day is a special one, and we encourage you to reach out and wish them a 'Happy Birthday'. A small gesture can make a big difference!

+

Let's make this day memorable for ! 🎉🎁

+

Remember, our team is our greatest strength. Thanks for contributing to this wonderful work environment!

+
+
+
+ +
diff --git a/hr_employee_birthday_mail/data/ir_cron.xml b/hr_employee_birthday_mail/data/ir_cron.xml new file mode 100644 index 00000000000..75fdfd3419d --- /dev/null +++ b/hr_employee_birthday_mail/data/ir_cron.xml @@ -0,0 +1,15 @@ + + + Check Employee Birthdays + + code + model._check_birthdays() + + + 1 + days + -1 + + 5 + + diff --git a/hr_employee_birthday_mail/i18n/es.po b/hr_employee_birthday_mail/i18n/es.po new file mode 100644 index 00000000000..901e9c63c30 --- /dev/null +++ b/hr_employee_birthday_mail/i18n/es.po @@ -0,0 +1,389 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_birthday_mail +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-08-04 12:10+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: none\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_1 +msgid "" +"
\n" +"

Happy " +"Birthday, !

\n" +"

Another " +"trip around the sun, and you don't look a day older! We wish you a fantastic " +"day full of joy and surprises. May this year bring you closer to your dreams " +"and bless you with abundance and joy. 🎉

\n" +"

Remember, you're not getting older, you're gaining more experience. And " +"with each passing year, you become a more valuable member of our team. " +"Here's to an amazing birthday and a year filled with adventure! 🥳

\n" +"

Cheers " +"to you on your special day, !

\n" +"
\n" +" " +msgstr "" +"
\n" +"

Feliz " +"cumpleaños, !

\n" +"

Otra " +"vuelta al sol, ¡y no pareces ni un día más viejo! Te deseamos un día " +"fantástico lleno de alegría y sorpresas. Que este año te acerque a tus " +"sueños y te bendiga con abundancia y disfrute . 🎉

\n" +"

Recuerda " +"que no envejeces, sino que adquieres más experiencia. Y con cada año que " +"pasa, te conviertes en un miembro más valioso de nuestro equipo. ¡Brindo por " +"un cumpleaños increíble y un año lleno de aventuras! 🥳

\n" +"

Salud en " +"tu día especial, !

\n" +"
\n" +" " + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_3 +msgid "" +"
\n" +"

🎂 Hey " +"there, ! It's Your Special Day! 🎂

\n" +"

Birthdays are nature's way of telling us to eat more cake and ice cream. " +"And, as it happens to be your birthday, we feel you deserve to have as much " +"as you want!

\n" +"

Today, " +"we're not just celebrating your birthday. We're celebrating you: the " +"invaluable part of our team, the cheer-bringer, the problem-solver, the ray " +"of sunshine in the office.

\n" +"

On this " +"day, we hope you enjoy all the wonderful things life has to offer and spend " +"it doing what you love the most. Remember, today is about you and only you. " +"Make sure you enjoy it to the fullest!

\n" +"

So sit " +"back, relax, and let the good vibes roll. Happy Birthday, ! We hope this day brings you nothing but joy and happiness. 🥳🎉" +"

\n" +"
\n" +" " +msgstr "" +"
\n" +"

🎂 ¡Hola, ! ¡Es " +"tu día especial! 🎂

\n" +"

Cumplir años es la forma que tiene la " +"naturaleza de decirnos que comamos más tarta y helado. Y, como es tu " +"cumpleaños, creemos que te mereces comer todo lo que quieras.

\n" +"

Hoy no sólo celebramos tu cumpleaños. Te estamos " +"celebrando a ti: la parte inestimable de nuestro equipo, la que anima, la " +"que resuelve problemas, el rayo de sol de la oficina.

\n" +"

En este día, esperamos que disfrutes de " +"todas las cosas maravillosas que te ofrece la vida y que lo pases haciendo " +"lo que más te gusta. Recuerda que el día de hoy es para ti y sólo para ti. " +"Asegúrate de disfrutarlo al máximo.

\n" +"

Así que siéntate, relájate y déjate llevar " +"por el buen rollo. ¡Feliz cumpleaños, ! " +"Esperamos que este día no te traiga más que alegría y felicidad. 🥳🎉

\n" +"
\n" +" " + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "" +"
\n" +"

🎂 It's " +"Time to Celebrate: 's Birthday!\n" +"

Hello, " +"!

\n" +"

Today, " +"we're celebrating the birthday of a valued team member, .

\n" +"

This day " +"is a special one, and we encourage you to reach out and wish them a 'Happy " +"Birthday'. A small gesture can make a big difference!

\n" +"

Let's " +"make this day memorable for ! 🎉🎁" +"

\n" +"

Remember, our team is our greatest strength. Thanks for contributing to " +"this wonderful work environment!

\n" +"

\n" +" " +msgstr "" +"
\n" +"

🎂 Es " +"tiempo para celebrar: 's " +"Cumpleaños!

\n" +"

Hola, !

\n" +"

Hoy " +"celebramos el cumpleaños de un valioso miembro del equipo, .

\n" +"

Este día " +"es especial, y te animamos a que te acerques a ellos y les desees un \"Feliz " +"Cumpleaños\". ¡Un pequeño gesto puede marcar una gran diferencia!

\n" +"

Hagamos " +"que este día sea memorable para> ! " +"🎉🎁

\n" +"

Recuerda, nuestro equipo es nuestra mayor fuerza. ¡Gracias por contribuir " +"a este maravilloso entorno de trabajo!

\n" +"
\n" +" " + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "" +"
\n" +"

🎉 " +"Birthday Alert 🎉

\n" +"

Hi ,

\n" +"

Something feels different today, right? There's an extra sparkle in the " +"air and a spring in our steps. Wondering why?

\n" +"

It's " +"because it's 's birthday! 🎂" +"

\n" +"

So, " +"let's crank up the joy and celebration in the office today. Don't forget to " +"wish them a happy birthday and make this day even more special for them! 🎈🎁" +"

\n" +"
\n" +" " +msgstr "" +"
\n" +"

🎉 " +"Alerta de cumpleaños 🎉

\n" +"

Hola ,

\n" +"

Algo se " +"siente diferente hoy, ¿verdad? Hay un brillo extra en el aire y un resorte " +"en nuestros pasos. ¿Por qué?

\n" +"

Es " +"porque son los cumpleaños de 's ! 🎂

\n" +"

Así que, " +"hoy, vamos a dar rienda suelta a la alegría y a la celebración en la " +"oficina. No olvides desearles un feliz cumpleaños y hacer que este día sea " +"aún más especial para ellos. 🎈🎁

\n" +"
\n" +" " + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "" +"
\n" +"

🎉 " +"Birthday Alert: is another year " +"wiser! 🎉

\n" +"

Hey " +"there, ,

\n" +"

Guess " +"what? We're fortunate enough to have a birthday in our midst today! Yes, " +"it's 's big day!

\n" +"

Take a " +"moment, when you can, to send them your good wishes and contribute to a " +"positive atmosphere today. Remember, even a simple 'Happy Birthday' can make " +"someone's day!

\n" +"

Let's " +"all help make feel appreciated " +"and valued on their special day! 🎈🎁

\n" +"

Thank " +"you for your continuous effort in making our workplace a supportive and " +"friendly environment!

\n" +"
\n" +" " +msgstr "" +"
\n" +"

🎉 " +"Alerta de cumpleaños: es otro " +"desea del año! 🎉

\n" +"

Hola, ,

\n" +"

¿Adivináis qué? Hoy tenemos la suerte de celebrar un cumpleaños. Si, es " +"el gran día de's !

\n" +"

Tómese " +"un momento, cuando pueda, para enviarles sus buenos deseos y contribuir hoy " +"a crear un ambiente positivo. ¡Recuerda que un simple \"Feliz cumpleaños\" " +"puede alegrarle el día a alguien!

\n" +"

Ayuden " +"todos a hacer sentirse valorado y " +"apreciado en su día ! 🎈🎁

\n" +"

¡Gracias " +"por vuestro esfuerzo continuo para hacer de nuestro lugar de trabajo un " +"entorno solidario y agradable!\"

\n" +"
\n" +" " + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_2 +msgid "" +"
\n" +"

🎉 Let's " +"Celebrate, ! 🎉

\n" +"

Today, " +"we celebrate not just any birthday, but YOUR birthday: a day when a truly " +"exceptional person came into this world.

\n" +"

Age is " +"just a number, and the wrinkles are merely where the smiles have been. " +"Remember, you're not getting older, you're just becoming a classic!

\n" +"

Your " +"birthday is a special milestone on this journey of life, and we're thrilled " +"to share it with you. Today is about celebrating all that you are and all " +"that you will be.

\n" +"

So " +"here's to you, ! Wishing you an abundance of " +"fun, joy and cake on your special day. Have an unforgettable birthday! 🥳🎈\n" +"

\n" +" " +msgstr "" +"
\n" +"

🎉 Vamos " +"a celebrar, ! 🎉

\n" +"

Hoy no " +"celebramos un cumpleaños cualquiera, sino TU cumpleaños: el día en que vino " +"al mundo una persona verdaderamente excepcional..

\n" +"

La edad " +"es sólo un número, y las arrugas están simplemente donde han estado las " +"sonrisas. Recuerda que no envejeces, ¡solo te conviertes en un clásico!

\n" +"

Tu " +"cumpleaños es un hito especial en este viaje de la vida, y estamos " +"encantados de compartirlo contigo. Hoy celebramos todo lo que eres y todo lo " +"que serás,

\n" +"

Así que " +"por ti, !Te deseamos mucha diversión, alegría y " +"tarta en tu día especial. ¡ Que pases un cumpleaños inolvidable! 🥳🎈

\n" +"
\n" +" " + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_hr_employee__allow_birthday_wishes +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_res_users__allow_birthday_wishes +msgid "Allow Birthday Wishes" +msgstr "Permitir deseos de cumpleaños" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_1 +msgid "Birthday Email 1" +msgstr "Correo electrónico de cumpleaños 1" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_2 +msgid "Birthday Email 2" +msgstr "Correo electrónico de cumpleaños 2" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_3 +msgid "Birthday Email 3" +msgstr "Correo electrónico de cumpleaños 3" + +#. module: hr_employee_birthday_mail +#: model_terms:ir.ui.view,arch_db:hr_employee_birthday_mail.view_employee_form_inherit_birthday_notifications +msgid "Birthdays Notifications" +msgstr "Notificaciones de cumpleaños" + +#. module: hr_employee_birthday_mail +#: model:ir.actions.server,name:hr_employee_birthday_mail.ir_cron_check_employee_birthdays_ir_actions_server +#: model:ir.cron,cron_name:hr_employee_birthday_mail.ir_cron_check_employee_birthdays +msgid "Check Employee Birthdays" +msgstr "Comprobar los cumpleaños de los empleados" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_hr_employee__allow_birthday_wishes +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_res_users__allow_birthday_wishes +msgid "" +"Check this box if you want to allow birthday wishes from our company and " +"allow the others to be notified of your birthday." +msgstr "" +"Marque esta casilla si desea permitir que nuestra empresa le envíe " +"felicitaciones de cumpleaños y que se notifique su cumpleaños a los demás." + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_hr_employee__notify_others_birthday +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_res_users__notify_others_birthday +msgid "" +"Check this box if you want to be notified about other coworkers' birthdays." +msgstr "" +"Marque esta casilla si desea que se le notifiquen los cumpleaños de otros " +"compañeros de trabajo." + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "Coworker's Birthday Email 1" +msgstr "Cumpleaños de un compañero de trabajo Correo electrónico 1" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "Coworker's Birthday Email 2" +msgstr "Cumpleaños de un compañero de trabajo Correo electrónico 2" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "Coworker's Birthday Email 3" +msgstr "Cumpleaños de un compañero de trabajo Correo electrónico 3" + +#. module: hr_employee_birthday_mail +#: model:ir.model,name:hr_employee_birthday_mail.model_hr_employee +msgid "Employee" +msgstr "Empleado/a" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_hr_employee__notify_others_birthday +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_res_users__notify_others_birthday +msgid "Notify Others Birthday" +msgstr "Notificar el cumpleaños a otros" + +#. module: hr_employee_birthday_mail +#: model:ir.model,name:hr_employee_birthday_mail.model_res_users +msgid "User" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_2 +msgid "🎂 Celebrating You Today, {{ object.name }}!" +msgstr "🎂 ¡Hoy te celebramos, {{ object.name }}!" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_1 +msgid "🎂 Happy Birthday, {{ object.name }}!" +msgstr "🎂 Feliz cumpleaños, {{ object.name }}!" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_3 +msgid "🎂 {{ object.name }}!, It's Your Day!" +msgstr "¡🎂 {{ object.name }}!, ¡Es tu día!" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "🎉 Birthday Alert: It's {{ ctx['birthday_employee'] }}'s special day!" +msgstr "" +"🎉 Alerta de cumpleaños: ¡Es el día especial de " +"{{ ctx['birthday_employee'] }}!" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "🎉 Cake Alert: {{ ctx['birthday_employee']}}" +msgstr "🎉 Alerta de pastel: {{ ctx['birthday_employee']}}" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "🎉 Time to Celebrate: {{ ctx['birthday_employee'] }}'s Birthday!" +msgstr "" +"🎉 Tiempo para celebrar el cumpleaños de: {{ ctx['birthday_employee'] }}!" diff --git a/hr_employee_birthday_mail/i18n/fr.po b/hr_employee_birthday_mail/i18n/fr.po new file mode 100644 index 00000000000..8555066f513 --- /dev/null +++ b/hr_employee_birthday_mail/i18n/fr.po @@ -0,0 +1,269 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_birthday_mail +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-02-22 16:37+0000\n" +"Last-Translator: \"Guillaume Vandamme (ACSONE)\" \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.17\n" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_1 +msgid "" +"
\n" +"

Happy " +"Birthday, !

\n" +"

Another " +"trip around the sun, and you don't look a day older! We wish you a fantastic " +"day full of joy and surprises. May this year bring you closer to your dreams " +"and bless you with abundance and joy. 🎉

\n" +"

Remember, you're not getting older, you're gaining more experience. And " +"with each passing year, you become a more valuable member of our team. " +"Here's to an amazing birthday and a year filled with adventure! 🥳

\n" +"

Cheers " +"to you on your special day, !

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_3 +msgid "" +"
\n" +"

🎂 Hey " +"there, ! It's Your Special Day! 🎂

\n" +"

Birthdays are nature's way of telling us to eat more cake and ice cream. " +"And, as it happens to be your birthday, we feel you deserve to have as much " +"as you want!

\n" +"

Today, " +"we're not just celebrating your birthday. We're celebrating you: the " +"invaluable part of our team, the cheer-bringer, the problem-solver, the ray " +"of sunshine in the office.

\n" +"

On this " +"day, we hope you enjoy all the wonderful things life has to offer and spend " +"it doing what you love the most. Remember, today is about you and only you. " +"Make sure you enjoy it to the fullest!

\n" +"

So sit " +"back, relax, and let the good vibes roll. Happy Birthday, ! We hope this day brings you nothing but joy and happiness. 🥳🎉" +"

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "" +"
\n" +"

🎂 It's " +"Time to Celebrate: 's Birthday!\n" +"

Hello, " +"!

\n" +"

Today, " +"we're celebrating the birthday of a valued team member, .

\n" +"

This day " +"is a special one, and we encourage you to reach out and wish them a 'Happy " +"Birthday'. A small gesture can make a big difference!

\n" +"

Let's " +"make this day memorable for ! 🎉🎁" +"

\n" +"

Remember, our team is our greatest strength. Thanks for contributing to " +"this wonderful work environment!

\n" +"

\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "" +"
\n" +"

🎉 " +"Birthday Alert 🎉

\n" +"

Hi ,

\n" +"

Something feels different today, right? There's an extra sparkle in the " +"air and a spring in our steps. Wondering why?

\n" +"

It's " +"because it's 's birthday! 🎂" +"

\n" +"

So, " +"let's crank up the joy and celebration in the office today. Don't forget to " +"wish them a happy birthday and make this day even more special for them! 🎈🎁" +"

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "" +"
\n" +"

🎉 " +"Birthday Alert: is another year " +"wiser! 🎉

\n" +"

Hey " +"there, ,

\n" +"

Guess " +"what? We're fortunate enough to have a birthday in our midst today! Yes, " +"it's 's big day!

\n" +"

Take a " +"moment, when you can, to send them your good wishes and contribute to a " +"positive atmosphere today. Remember, even a simple 'Happy Birthday' can make " +"someone's day!

\n" +"

Let's " +"all help make feel appreciated " +"and valued on their special day! 🎈🎁

\n" +"

Thank " +"you for your continuous effort in making our workplace a supportive and " +"friendly environment!

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_2 +msgid "" +"
\n" +"

🎉 Let's " +"Celebrate, ! 🎉

\n" +"

Today, " +"we celebrate not just any birthday, but YOUR birthday: a day when a truly " +"exceptional person came into this world.

\n" +"

Age is " +"just a number, and the wrinkles are merely where the smiles have been. " +"Remember, you're not getting older, you're just becoming a classic!

\n" +"

Your " +"birthday is a special milestone on this journey of life, and we're thrilled " +"to share it with you. Today is about celebrating all that you are and all " +"that you will be.

\n" +"

So " +"here's to you, ! Wishing you an abundance of " +"fun, joy and cake on your special day. Have an unforgettable birthday! 🥳🎈\n" +"

\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_hr_employee__allow_birthday_wishes +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_res_users__allow_birthday_wishes +msgid "Allow Birthday Wishes" +msgstr "Autoriser les souhaits d'anniversaire" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_1 +msgid "Birthday Email 1" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_2 +msgid "Birthday Email 2" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_3 +msgid "Birthday Email 3" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model_terms:ir.ui.view,arch_db:hr_employee_birthday_mail.view_employee_form_inherit_birthday_notifications +msgid "Birthdays Notifications" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.actions.server,name:hr_employee_birthday_mail.ir_cron_check_employee_birthdays_ir_actions_server +#: model:ir.cron,cron_name:hr_employee_birthday_mail.ir_cron_check_employee_birthdays +msgid "Check Employee Birthdays" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_hr_employee__allow_birthday_wishes +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_res_users__allow_birthday_wishes +msgid "" +"Check this box if you want to allow birthday wishes from our company and " +"allow the others to be notified of your birthday." +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_hr_employee__notify_others_birthday +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_res_users__notify_others_birthday +msgid "" +"Check this box if you want to be notified about other coworkers' birthdays." +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "Coworker's Birthday Email 1" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "Coworker's Birthday Email 2" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "Coworker's Birthday Email 3" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model,name:hr_employee_birthday_mail.model_hr_employee +msgid "Employee" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_hr_employee__notify_others_birthday +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_res_users__notify_others_birthday +msgid "Notify Others Birthday" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model,name:hr_employee_birthday_mail.model_res_users +msgid "User" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_2 +msgid "🎂 Celebrating You Today, {{ object.name }}!" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_1 +msgid "🎂 Happy Birthday, {{ object.name }}!" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_3 +msgid "🎂 {{ object.name }}!, It's Your Day!" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "🎉 Birthday Alert: It's {{ ctx['birthday_employee'] }}'s special day!" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "🎉 Cake Alert: {{ ctx['birthday_employee']}}" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "🎉 Time to Celebrate: {{ ctx['birthday_employee'] }}'s Birthday!" +msgstr "" diff --git a/hr_employee_birthday_mail/i18n/fr_FR.po b/hr_employee_birthday_mail/i18n/fr_FR.po new file mode 100644 index 00000000000..dc418be70a3 --- /dev/null +++ b/hr_employee_birthday_mail/i18n/fr_FR.po @@ -0,0 +1,266 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_birthday_mail +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: fr_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" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_1 +msgid "" +"
\n" +"

Happy " +"Birthday, !

\n" +"

Another " +"trip around the sun, and you don't look a day older! We wish you a fantastic " +"day full of joy and surprises. May this year bring you closer to your dreams " +"and bless you with abundance and joy. 🎉

\n" +"

Remember, you're not getting older, you're gaining more experience. And " +"with each passing year, you become a more valuable member of our team. " +"Here's to an amazing birthday and a year filled with adventure! 🥳

\n" +"

Cheers " +"to you on your special day, !

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_3 +msgid "" +"
\n" +"

🎂 Hey " +"there, ! It's Your Special Day! 🎂

\n" +"

Birthdays are nature's way of telling us to eat more cake and ice cream. " +"And, as it happens to be your birthday, we feel you deserve to have as much " +"as you want!

\n" +"

Today, " +"we're not just celebrating your birthday. We're celebrating you: the " +"invaluable part of our team, the cheer-bringer, the problem-solver, the ray " +"of sunshine in the office.

\n" +"

On this " +"day, we hope you enjoy all the wonderful things life has to offer and spend " +"it doing what you love the most. Remember, today is about you and only you. " +"Make sure you enjoy it to the fullest!

\n" +"

So sit " +"back, relax, and let the good vibes roll. Happy Birthday, ! We hope this day brings you nothing but joy and happiness. 🥳🎉" +"

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "" +"
\n" +"

🎂 It's " +"Time to Celebrate: 's Birthday!\n" +"

Hello, " +"!

\n" +"

Today, " +"we're celebrating the birthday of a valued team member, .

\n" +"

This day " +"is a special one, and we encourage you to reach out and wish them a 'Happy " +"Birthday'. A small gesture can make a big difference!

\n" +"

Let's " +"make this day memorable for ! 🎉🎁" +"

\n" +"

Remember, our team is our greatest strength. Thanks for contributing to " +"this wonderful work environment!

\n" +"

\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "" +"
\n" +"

🎉 " +"Birthday Alert 🎉

\n" +"

Hi ,

\n" +"

Something feels different today, right? There's an extra sparkle in the " +"air and a spring in our steps. Wondering why?

\n" +"

It's " +"because it's 's birthday! 🎂" +"

\n" +"

So, " +"let's crank up the joy and celebration in the office today. Don't forget to " +"wish them a happy birthday and make this day even more special for them! 🎈🎁" +"

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "" +"
\n" +"

🎉 " +"Birthday Alert: is another year " +"wiser! 🎉

\n" +"

Hey " +"there, ,

\n" +"

Guess " +"what? We're fortunate enough to have a birthday in our midst today! Yes, " +"it's 's big day!

\n" +"

Take a " +"moment, when you can, to send them your good wishes and contribute to a " +"positive atmosphere today. Remember, even a simple 'Happy Birthday' can make " +"someone's day!

\n" +"

Let's " +"all help make feel appreciated " +"and valued on their special day! 🎈🎁

\n" +"

Thank " +"you for your continuous effort in making our workplace a supportive and " +"friendly environment!

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_2 +msgid "" +"
\n" +"

🎉 Let's " +"Celebrate, ! 🎉

\n" +"

Today, " +"we celebrate not just any birthday, but YOUR birthday: a day when a truly " +"exceptional person came into this world.

\n" +"

Age is " +"just a number, and the wrinkles are merely where the smiles have been. " +"Remember, you're not getting older, you're just becoming a classic!

\n" +"

Your " +"birthday is a special milestone on this journey of life, and we're thrilled " +"to share it with you. Today is about celebrating all that you are and all " +"that you will be.

\n" +"

So " +"here's to you, ! Wishing you an abundance of " +"fun, joy and cake on your special day. Have an unforgettable birthday! 🥳🎈\n" +"

\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_hr_employee__allow_birthday_wishes +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_res_users__allow_birthday_wishes +msgid "Allow Birthday Wishes" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_1 +msgid "Birthday Email 1" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_2 +msgid "Birthday Email 2" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_3 +msgid "Birthday Email 3" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model_terms:ir.ui.view,arch_db:hr_employee_birthday_mail.view_employee_form_inherit_birthday_notifications +msgid "Birthdays Notifications" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.actions.server,name:hr_employee_birthday_mail.ir_cron_check_employee_birthdays_ir_actions_server +#: model:ir.cron,cron_name:hr_employee_birthday_mail.ir_cron_check_employee_birthdays +msgid "Check Employee Birthdays" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_hr_employee__allow_birthday_wishes +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_res_users__allow_birthday_wishes +msgid "" +"Check this box if you want to allow birthday wishes from our company and " +"allow the others to be notified of your birthday." +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_hr_employee__notify_others_birthday +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_res_users__notify_others_birthday +msgid "" +"Check this box if you want to be notified about other coworkers' birthdays." +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "Coworker's Birthday Email 1" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "Coworker's Birthday Email 2" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "Coworker's Birthday Email 3" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model,name:hr_employee_birthday_mail.model_hr_employee +msgid "Employee" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_hr_employee__notify_others_birthday +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_res_users__notify_others_birthday +msgid "Notify Others Birthday" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model,name:hr_employee_birthday_mail.model_res_users +msgid "User" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_2 +msgid "🎂 Celebrating You Today, {{ object.name }}!" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_1 +msgid "🎂 Happy Birthday, {{ object.name }}!" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_3 +msgid "🎂 {{ object.name }}!, It's Your Day!" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "🎉 Birthday Alert: It's {{ ctx['birthday_employee'] }}'s special day!" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "🎉 Cake Alert: {{ ctx['birthday_employee']}}" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "🎉 Time to Celebrate: {{ ctx['birthday_employee'] }}'s Birthday!" +msgstr "" diff --git a/hr_employee_birthday_mail/i18n/hr_employee_birthday_mail.pot b/hr_employee_birthday_mail/i18n/hr_employee_birthday_mail.pot new file mode 100644 index 00000000000..3f95b6160b9 --- /dev/null +++ b/hr_employee_birthday_mail/i18n/hr_employee_birthday_mail.pot @@ -0,0 +1,201 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_birthday_mail +# +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_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_1 +msgid "" +"
\n" +"

Happy Birthday, !

\n" +"

Another trip around the sun, and you don't look a day older! We wish you a fantastic day full of joy and surprises. May this year bring you closer to your dreams and bless you with abundance and joy. 🎉

\n" +"

Remember, you're not getting older, you're gaining more experience. And with each passing year, you become a more valuable member of our team. Here's to an amazing birthday and a year filled with adventure! 🥳

\n" +"

Cheers to you on your special day, !

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_3 +msgid "" +"
\n" +"

🎂 Hey there, ! It's Your Special Day! 🎂

\n" +"

Birthdays are nature's way of telling us to eat more cake and ice cream. And, as it happens to be your birthday, we feel you deserve to have as much as you want!

\n" +"

Today, we're not just celebrating your birthday. We're celebrating you: the invaluable part of our team, the cheer-bringer, the problem-solver, the ray of sunshine in the office.

\n" +"

On this day, we hope you enjoy all the wonderful things life has to offer and spend it doing what you love the most. Remember, today is about you and only you. Make sure you enjoy it to the fullest!

\n" +"

So sit back, relax, and let the good vibes roll. Happy Birthday, ! We hope this day brings you nothing but joy and happiness. 🥳🎉

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "" +"
\n" +"

🎂 It's Time to Celebrate: 's Birthday!

\n" +"

Hello, !

\n" +"

Today, we're celebrating the birthday of a valued team member, .

\n" +"

This day is a special one, and we encourage you to reach out and wish them a 'Happy Birthday'. A small gesture can make a big difference!

\n" +"

Let's make this day memorable for ! 🎉🎁

\n" +"

Remember, our team is our greatest strength. Thanks for contributing to this wonderful work environment!

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "" +"
\n" +"

🎉 Birthday Alert 🎉

\n" +"

Hi ,

\n" +"

Something feels different today, right? There's an extra sparkle in the air and a spring in our steps. Wondering why?

\n" +"

It's because it's 's birthday! 🎂

\n" +"

So, let's crank up the joy and celebration in the office today. Don't forget to wish them a happy birthday and make this day even more special for them! 🎈🎁

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "" +"
\n" +"

🎉 Birthday Alert: is another year wiser! 🎉

\n" +"

Hey there, ,

\n" +"

Guess what? We're fortunate enough to have a birthday in our midst today! Yes, it's 's big day!

\n" +"

Take a moment, when you can, to send them your good wishes and contribute to a positive atmosphere today. Remember, even a simple 'Happy Birthday' can make someone's day!

\n" +"

Let's all help make feel appreciated and valued on their special day! 🎈🎁

\n" +"

Thank you for your continuous effort in making our workplace a supportive and friendly environment!

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_2 +msgid "" +"
\n" +"

🎉 Let's Celebrate, ! 🎉

\n" +"

Today, we celebrate not just any birthday, but YOUR birthday: a day when a truly exceptional person came into this world.

\n" +"

Age is just a number, and the wrinkles are merely where the smiles have been. Remember, you're not getting older, you're just becoming a classic!

\n" +"

Your birthday is a special milestone on this journey of life, and we're thrilled to share it with you. Today is about celebrating all that you are and all that you will be.

\n" +"

So here's to you, ! Wishing you an abundance of fun, joy and cake on your special day. Have an unforgettable birthday! 🥳🎈

\n" +"
\n" +" " +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_hr_employee__allow_birthday_wishes +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_res_users__allow_birthday_wishes +msgid "Allow Birthday Wishes" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_1 +msgid "Birthday Email 1" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_2 +msgid "Birthday Email 2" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_3 +msgid "Birthday Email 3" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model_terms:ir.ui.view,arch_db:hr_employee_birthday_mail.view_employee_form_inherit_birthday_notifications +msgid "Birthdays Notifications" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.actions.server,name:hr_employee_birthday_mail.ir_cron_check_employee_birthdays_ir_actions_server +#: model:ir.cron,cron_name:hr_employee_birthday_mail.ir_cron_check_employee_birthdays +msgid "Check Employee Birthdays" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_hr_employee__allow_birthday_wishes +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_res_users__allow_birthday_wishes +msgid "" +"Check this box if you want to allow birthday wishes from our company and " +"allow the others to be notified of your birthday." +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_hr_employee__notify_others_birthday +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_res_users__notify_others_birthday +msgid "" +"Check this box if you want to be notified about other coworkers' birthdays." +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "Coworker's Birthday Email 1" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "Coworker's Birthday Email 2" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "Coworker's Birthday Email 3" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model,name:hr_employee_birthday_mail.model_hr_employee +msgid "Employee" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_hr_employee__notify_others_birthday +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_res_users__notify_others_birthday +msgid "Notify Others Birthday" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:ir.model,name:hr_employee_birthday_mail.model_res_users +msgid "User" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_2 +msgid "🎂 Celebrating You Today, {{ object.name }}!" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_1 +msgid "🎂 Happy Birthday, {{ object.name }}!" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_3 +msgid "🎂 {{ object.name }}!, It's Your Day!" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "🎉 Birthday Alert: It's {{ ctx['birthday_employee'] }}'s special day!" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "🎉 Cake Alert: {{ ctx['birthday_employee']}}" +msgstr "" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "🎉 Time to Celebrate: {{ ctx['birthday_employee'] }}'s Birthday!" +msgstr "" diff --git a/hr_employee_birthday_mail/i18n/it.po b/hr_employee_birthday_mail/i18n/it.po new file mode 100644 index 00000000000..4d2063c551b --- /dev/null +++ b/hr_employee_birthday_mail/i18n/it.po @@ -0,0 +1,386 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_birthday_mail +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-12-11 10:06+0000\n" +"Last-Translator: mymage \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_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_1 +msgid "" +"
\n" +"

Happy " +"Birthday, !

\n" +"

Another " +"trip around the sun, and you don't look a day older! We wish you a fantastic " +"day full of joy and surprises. May this year bring you closer to your dreams " +"and bless you with abundance and joy. 🎉

\n" +"

Remember, you're not getting older, you're gaining more experience. And " +"with each passing year, you become a more valuable member of our team. " +"Here's to an amazing birthday and a year filled with adventure! 🥳

\n" +"

Cheers " +"to you on your special day, !

\n" +"
\n" +" " +msgstr "" +"
\n" +"

Buon " +"compleanno, !

\n" +"

Un altro " +"giro intorno al sole e non sembri invecchiato di un solo giorno! Ti " +"auguriamo un fantastico giorno pieno di gioia e sorprese. Possa quest'anno " +"avvicinarti ai tuoi sogni e donarti ricchezza e gioia. 🎉

\n" +"

Ricorda, " +"non stai invecchiando, sti diventando più esperto. E ogni anno che passa " +"diventi un membro sempre più prezioso del nostro gruppo. Ecco un fantastico " +"compleanno è un anno pieno di avventure! 🥳

\n" +"

Un " +"brindisi per il tuo giorno speciale, !

\n" +"
\n" +" " + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_3 +msgid "" +"
\n" +"

🎂 Hey " +"there, ! It's Your Special Day! 🎂

\n" +"

Birthdays are nature's way of telling us to eat more cake and ice cream. " +"And, as it happens to be your birthday, we feel you deserve to have as much " +"as you want!

\n" +"

Today, " +"we're not just celebrating your birthday. We're celebrating you: the " +"invaluable part of our team, the cheer-bringer, the problem-solver, the ray " +"of sunshine in the office.

\n" +"

On this " +"day, we hope you enjoy all the wonderful things life has to offer and spend " +"it doing what you love the most. Remember, today is about you and only you. " +"Make sure you enjoy it to the fullest!

\n" +"

So sit " +"back, relax, and let the good vibes roll. Happy Birthday, ! We hope this day brings you nothing but joy and happiness. 🥳🎉" +"

\n" +"
\n" +" " +msgstr "" +"
\n" +"

🎂 " +"Salve, ! È il tuo giorno speciale! 🎂

\n" +"

Il " +"compleanno è il modo che ha la natura per dirci ti mangiare più torte e " +"gelati. E, visto che è il tuo compleanno, sentiamo che meriti di averne " +"quanto vuoi!

\n" +"

Oggi non " +"stiamo festeggiando solo il tuo compleanno. Stiamo festeggiando te: " +"inestimabile parte del nostro gruppo, l'animatore, il problem-solver, il " +"raggio di sole nell'ufficio.

\n" +"

In " +"questo giorno, speriamo che ti possa godere tutte le cose meravigliose che " +"la vita offre e trascorrerlo facendo quello che ti piace di più. Ricorda, " +"oggi è per te e solo te. Assicurati di godertelo in pieno!

\n" +"

Quindi " +"siediti, rilassati e lasciati prendere dalle sensazioni positive. Buon " +"compleanno, ! Speriamo che questo giorno ti " +"posti solo gioia e felicità.. 🥳🎉

\n" +"
\n" +" " + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "" +"
\n" +"

🎂 It's " +"Time to Celebrate: 's Birthday!\n" +"

Hello, " +"!

\n" +"

Today, " +"we're celebrating the birthday of a valued team member, .

\n" +"

This day " +"is a special one, and we encourage you to reach out and wish them a 'Happy " +"Birthday'. A small gesture can make a big difference!

\n" +"

Let's " +"make this day memorable for ! 🎉🎁" +"

\n" +"

Remember, our team is our greatest strength. Thanks for contributing to " +"this wonderful work environment!

\n" +"

\n" +" " +msgstr "" +"
\n" +"

🎂 È il " +"momento di festeggiare: compleanno di !

\n" +"

Salve, " +"!

\n" +"

Oggi " +"festeggiamo il compleanno di un valido membro del gruppo, .

\n" +"

Questo è " +"un giorno speciale e ti invitiamo a raggiungerlo e augurargli un 'Buon " +"compleanno' Un piccolo gesto può fare una grande differenza!

\n" +"

Rendi " +"memorabile questo giorno per ! 🎉🎁" +"

\n" +"

Ricorda, " +"il nostro gruppo è la nostra forza. Grazie per contribuire a questo clima " +"meraviglioso!

\n" +"
\n" +" " + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "" +"
\n" +"

🎉 " +"Birthday Alert 🎉

\n" +"

Hi ,

\n" +"

Something feels different today, right? There's an extra sparkle in the " +"air and a spring in our steps. Wondering why?

\n" +"

It's " +"because it's 's birthday! 🎂" +"

\n" +"

So, " +"let's crank up the joy and celebration in the office today. Don't forget to " +"wish them a happy birthday and make this day even more special for them! 🎈🎁" +"

\n" +"
\n" +" " +msgstr "" +"
\n" +"

🎉 " +"Avviso compleanno 🎉

\n" +"

Salve ,

\n" +"

Oggi c'è " +"qualcosa di diverso, giusto? C'è più energia nell'aria e forza nei nostri " +"passi. Sai perché?

\n" +"

Perché è " +"il compleanno di ! 🎂

\n" +"

Quindi " +"oggi rallegriamoci e festeggiamo in ufficio. Non dimentichiamoci di " +"augurargli un buon compleanno e renderlo un giorno speciale! 🎈🎁

\n" +"
\n" +" " + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "" +"
\n" +"

🎉 " +"Birthday Alert: is another year " +"wiser! 🎉

\n" +"

Hey " +"there, ,

\n" +"

Guess " +"what? We're fortunate enough to have a birthday in our midst today! Yes, " +"it's 's big day!

\n" +"

Take a " +"moment, when you can, to send them your good wishes and contribute to a " +"positive atmosphere today. Remember, even a simple 'Happy Birthday' can make " +"someone's day!

\n" +"

Let's " +"all help make feel appreciated " +"and valued on their special day! 🎈🎁

\n" +"

Thank " +"you for your continuous effort in making our workplace a supportive and " +"friendly environment!

\n" +"
\n" +" " +msgstr "" +"
\n" +"

🎉 " +"Avviso compleanno: è un anno più " +"saggio! 🎉

\n" +"

Salve, " +",

\n" +"

Indovina? Abbiamo la fortuna di avere un compleanno tra noi oggi! Sì, è " +"il grande giorno di 's!\n" +"

Prenditi " +"un attimo, quando puoi, e inviagli gli auguri contribuendo a rendere un " +"clima migliore oggi. Ricorda, anche un semplice 'buon compleanno' può fare " +"la differenza!

\n" +"

Contribuiamo tutti nel far sentire apprezzato e importante nel suo giorno " +"speciale! 🎈🎁

\n" +"

Grazie " +"per contribuire nel rendere il nostro ambiente di lavoro incoraggiante e " +"amichevole!

\n" +"
\n" +" " + +#. module: hr_employee_birthday_mail +#: model:mail.template,body_html:hr_employee_birthday_mail.email_template_birthday_2 +msgid "" +"
\n" +"

🎉 Let's " +"Celebrate, ! 🎉

\n" +"

Today, " +"we celebrate not just any birthday, but YOUR birthday: a day when a truly " +"exceptional person came into this world.

\n" +"

Age is " +"just a number, and the wrinkles are merely where the smiles have been. " +"Remember, you're not getting older, you're just becoming a classic!

\n" +"

Your " +"birthday is a special milestone on this journey of life, and we're thrilled " +"to share it with you. Today is about celebrating all that you are and all " +"that you will be.

\n" +"

So " +"here's to you, ! Wishing you an abundance of " +"fun, joy and cake on your special day. Have an unforgettable birthday! 🥳🎈\n" +"

\n" +" " +msgstr "" +"
\n" +"

🎉 " +"Festeggiamo, ! 🎉

\n" +"

Oggi non " +"festeggiamo solo un compleanno, ma il TUO compleanno: il giorno in cui una " +"persona veramente eccezionale è venuta al mondo.

\n" +"

L'età è " +"solo un numero e le rughe sono solo dove ci sono stati i sorrisi. Ricorda, " +"non sti invecchiando, stai solo diventando un classico!

\n" +"

Il tuo " +"compleanno è una pietra miliare speciale in questo viaggio della vita, e " +"siamo eccitati nel condividerlo con te. Oggi festeggiamo tutto quello che " +"sei e quello che diventerai..

\n" +"

Quindi " +"questo è per te, ! Ti auguriamo abbondanza di " +"divertimento, gioia e torte nel tuo giorno speciale. Che sia un compleanno " +"indimenticabile! 🥳🎈

\n" +"
\n" +" " + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_hr_employee__allow_birthday_wishes +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_res_users__allow_birthday_wishes +msgid "Allow Birthday Wishes" +msgstr "Attiva gli auguri di compleanno" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_1 +msgid "Birthday Email 1" +msgstr "E-mail 1 compleanno" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_2 +msgid "Birthday Email 2" +msgstr "E-mail 2 compleanno" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_birthday_3 +msgid "Birthday Email 3" +msgstr "E-mail 3 compleanno" + +#. module: hr_employee_birthday_mail +#: model_terms:ir.ui.view,arch_db:hr_employee_birthday_mail.view_employee_form_inherit_birthday_notifications +msgid "Birthdays Notifications" +msgstr "Notifiche compleanni" + +#. module: hr_employee_birthday_mail +#: model:ir.actions.server,name:hr_employee_birthday_mail.ir_cron_check_employee_birthdays_ir_actions_server +#: model:ir.cron,cron_name:hr_employee_birthday_mail.ir_cron_check_employee_birthdays +msgid "Check Employee Birthdays" +msgstr "Controlla compleanni dipendenti" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_hr_employee__allow_birthday_wishes +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_res_users__allow_birthday_wishes +msgid "" +"Check this box if you want to allow birthday wishes from our company and " +"allow the others to be notified of your birthday." +msgstr "" +"Selezionare questa opzione per consentire gli auguri da parte della tua " +"azienda e avvisare gli altri del tuo compleanno." + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_hr_employee__notify_others_birthday +#: model:ir.model.fields,help:hr_employee_birthday_mail.field_res_users__notify_others_birthday +msgid "" +"Check this box if you want to be notified about other coworkers' birthdays." +msgstr "" +"Selezionare questa opzione per ricevere notifiche dei compleanni dei " +"colleghi." + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "Coworker's Birthday Email 1" +msgstr "E-mail 1 compleanno collega" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "Coworker's Birthday Email 2" +msgstr "E-mail 2 compleanno collega" + +#. module: hr_employee_birthday_mail +#: model:mail.template,name:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "Coworker's Birthday Email 3" +msgstr "E-mail 3 compleanno collega" + +#. module: hr_employee_birthday_mail +#: model:ir.model,name:hr_employee_birthday_mail.model_hr_employee +msgid "Employee" +msgstr "Dipendente" + +#. module: hr_employee_birthday_mail +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_hr_employee__notify_others_birthday +#: model:ir.model.fields,field_description:hr_employee_birthday_mail.field_res_users__notify_others_birthday +msgid "Notify Others Birthday" +msgstr "Notifica altri compleanni" + +#. module: hr_employee_birthday_mail +#: model:ir.model,name:hr_employee_birthday_mail.model_res_users +msgid "User" +msgstr "Utente" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_2 +msgid "🎂 Celebrating You Today, {{ object.name }}!" +msgstr "🎂 Oggi festeggiamo te, {{ object.name }}!" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_1 +msgid "🎂 Happy Birthday, {{ object.name }}!" +msgstr "🎂 Buon compleanno, {{ object.name }}!" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_birthday_3 +msgid "🎂 {{ object.name }}!, It's Your Day!" +msgstr "🎂 {{ object.name }}!, è il tuo giorno!" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_1 +msgid "🎉 Birthday Alert: It's {{ ctx['birthday_employee'] }}'s special day!" +msgstr "" +"🎉 Avviso compleanno: è il giorno speciale di {{ ctx['birthday_employee'] }}!" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_2 +msgid "🎉 Cake Alert: {{ ctx['birthday_employee']}}" +msgstr "🎉 Avviso torta: {{ ctx['birthday_employee']}}" + +#. module: hr_employee_birthday_mail +#: model:mail.template,subject:hr_employee_birthday_mail.email_template_coworkers_3 +msgid "🎉 Time to Celebrate: {{ ctx['birthday_employee'] }}'s Birthday!" +msgstr "🎉 Tempo di festeggiare: compleanno di {{ ctx['birthday_employee'] }}!" diff --git a/hr_employee_birthday_mail/models/__init__.py b/hr_employee_birthday_mail/models/__init__.py new file mode 100644 index 00000000000..529f9e93739 --- /dev/null +++ b/hr_employee_birthday_mail/models/__init__.py @@ -0,0 +1,2 @@ +from . import hr_employee +from . import res_user diff --git a/hr_employee_birthday_mail/models/hr_employee.py b/hr_employee_birthday_mail/models/hr_employee.py new file mode 100644 index 00000000000..8cb9ac49257 --- /dev/null +++ b/hr_employee_birthday_mail/models/hr_employee.py @@ -0,0 +1,62 @@ +# Copyright 2023 ForgeFlow S.L. (https://www.forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +import random + +from odoo import api, fields, models + + +class HrEmployee(models.Model): + _inherit = "hr.employee" + + allow_birthday_wishes = fields.Boolean( + default=False, + help="Check this box if you want to allow birthday wishes from our company " + "and allow the others to be notified of your birthday.", + groups="hr.group_hr_user", + ) + notify_others_birthday = fields.Boolean( + default=False, + help="Check this box if you want to be notified " + "about other coworkers' birthdays.", + groups="hr.group_hr_user", + ) + + @api.model + def _check_birthdays(self): + today = fields.Date.today() + employees = self.env["hr.employee"].search([]) + for employee in employees: + if ( + employee.birthday + and employee.birthday.day == today.day + and employee.birthday.month == today.month + and employee.allow_birthday_wishes + ): + templates_data = self.env["ir.model.data"].search( + [ + ("module", "=", "hr_employee_birthday_mail"), + ("name", "like", "email_template_birthday_"), + ] + ) + templates = self.env["mail.template"].browse( + [data.res_id for data in templates_data] + ) + template = random.choice(templates) + template.send_mail(employee.id) + templates_coworkers_data = self.env["ir.model.data"].search( + [ + ("module", "=", "hr_employee_birthday_mail"), + ("name", "like", "email_template_coworkers_"), + ] + ) + templates_coworkers = self.env["mail.template"].browse( + [data.res_id for data in templates_coworkers_data] + ) + if len(employees) > 1: + for coworker in employees - employee: + if coworker.notify_others_birthday: + template_coworkers = random.choice(templates_coworkers) + template_coworkers.with_context( + birthday_employee=employee.name + ).send_mail(coworker.id) diff --git a/hr_employee_birthday_mail/models/res_user.py b/hr_employee_birthday_mail/models/res_user.py new file mode 100644 index 00000000000..fbbe5b52dba --- /dev/null +++ b/hr_employee_birthday_mail/models/res_user.py @@ -0,0 +1,29 @@ +# Copyright 2023 ForgeFlow S.L. (https://www.forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class User(models.Model): + _inherit = ["res.users"] + + allow_birthday_wishes = fields.Boolean( + related="employee_id.allow_birthday_wishes", readonly=False, related_sudo=False + ) + notify_others_birthday = fields.Boolean( + related="employee_id.notify_others_birthday", readonly=False, related_sudo=False + ) + + @property + def SELF_READABLE_FIELDS(self): + return super().SELF_READABLE_FIELDS + [ + "allow_birthday_wishes", + "notify_others_birthday", + ] + + @property + def SELF_WRITEABLE_FIELDS(self): + return super().SELF_WRITEABLE_FIELDS + [ + "allow_birthday_wishes", + "notify_others_birthday", + ] diff --git a/hr_employee_birthday_mail/pyproject.toml b/hr_employee_birthday_mail/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/hr_employee_birthday_mail/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/hr_employee_birthday_mail/readme/CONTRIBUTORS.md b/hr_employee_birthday_mail/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..3cffdd48587 --- /dev/null +++ b/hr_employee_birthday_mail/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +- Joan Sisquella \<\> +- Mateu Griful \<\> diff --git a/hr_employee_birthday_mail/readme/DESCRIPTION.md b/hr_employee_birthday_mail/readme/DESCRIPTION.md new file mode 100644 index 00000000000..8f0b0c4c1aa --- /dev/null +++ b/hr_employee_birthday_mail/readme/DESCRIPTION.md @@ -0,0 +1,8 @@ +The module automates the process of sending out personalized birthday +emails to the celebrating employee while also informing their coworkers +about the special day. It encourages a culture of mutual respect, +camaraderie, and celebration within the team. + +In essence, the 'hr_employee_birthday_mail' module ensures that every +birthday is acknowledged and celebrated, thereby promoting a positive +and unified work environment. diff --git a/hr_employee_birthday_mail/readme/USAGE.md b/hr_employee_birthday_mail/readme/USAGE.md new file mode 100644 index 00000000000..d5dc971fe03 --- /dev/null +++ b/hr_employee_birthday_mail/readme/USAGE.md @@ -0,0 +1,2 @@ +Just install and configure in the scheduled action the hour you want to +run the check daily. diff --git a/hr_employee_birthday_mail/static/description/icon.png b/hr_employee_birthday_mail/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/hr_employee_birthday_mail/static/description/icon.png differ diff --git a/hr_employee_birthday_mail/static/description/index.html b/hr_employee_birthday_mail/static/description/index.html new file mode 100644 index 00000000000..a35688bee0e --- /dev/null +++ b/hr_employee_birthday_mail/static/description/index.html @@ -0,0 +1,436 @@ + + + + + +HR Employee Birthday Mail + + + +
+

HR Employee Birthday Mail

+ + +

Beta License: AGPL-3 OCA/hr Translate me on Weblate Try me on Runboat

+

The module automates the process of sending out personalized birthday +emails to the celebrating employee while also informing their coworkers +about the special day. It encourages a culture of mutual respect, +camaraderie, and celebration within the team.

+

In essence, the ‘hr_employee_birthday_mail’ module ensures that every +birthday is acknowledged and celebrated, thereby promoting a positive +and unified work environment.

+

Table of contents

+ +
+

Usage

+

Just install and configure in the scheduled action the hour you want to +run the check daily.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ForgeFlow
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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 project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/hr_employee_birthday_mail/views/hr_employee_views.xml b/hr_employee_birthday_mail/views/hr_employee_views.xml new file mode 100644 index 00000000000..d2181c9d62f --- /dev/null +++ b/hr_employee_birthday_mail/views/hr_employee_views.xml @@ -0,0 +1,21 @@ + + + + hr.employee.form.inherit.birthday.notifications + hr.employee + + + + + + + + + + + + + diff --git a/hr_employee_birthday_mail/views/res_user_views.xml b/hr_employee_birthday_mail/views/res_user_views.xml new file mode 100644 index 00000000000..051a5cc6e60 --- /dev/null +++ b/hr_employee_birthday_mail/views/res_user_views.xml @@ -0,0 +1,18 @@ + + + + res.users.birthday.mail.inherit + res.users + + + + + + + + +