Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[17.0][MIG] mail_activity_reminder: Migration to 17.0 #1433

Open
wants to merge 25 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1671bcb
[ADD] mail_activity_reminder
alexey-pelykh Feb 13, 2020
8708676
[UPD] Update mail_activity_reminder.pot
oca-travis May 7, 2020
ed8c100
[UPD] README.rst
OCA-git-bot May 7, 2020
7abfb54
[ADD] icon.png
OCA-git-bot May 7, 2020
431247d
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 4, 2020
b50546b
[UPD] README.rst
OCA-git-bot Nov 10, 2020
41b1f0f
mail_activity_reminder 12.0.1.0.1
OCA-git-bot Nov 10, 2020
6b71ba3
Added translation using Weblate (Portuguese)
pedrocs-exo May 11, 2021
fc86153
Translated using Weblate (Portuguese)
pedrocs-exo May 11, 2021
fca2d6e
Added translation using Weblate (French)
ypapouin Oct 20, 2022
9ecfbb3
Translated using Weblate (French)
ypapouin Oct 20, 2022
549752a
[IMP] mail_activity_reminder: black, isort, prettier
rousseldenis Apr 21, 2023
2e4bf79
[MIG][13.0] mail_activity_reminder
rousseldenis Apr 21, 2023
21609a6
[IMP] mail_activity_reminder: Group sendings per user and activity type
rousseldenis Apr 22, 2023
2d8f16b
[IMP] mail_activity_reminder: pre-commit stuff
sebalix Oct 9, 2023
875b1b6
[MIG] mail_activity_reminder: Migration to 16.0
sebalix Oct 9, 2023
499b449
[UPD] Update mail_activity_reminder.pot
Oct 13, 2023
d61a7a3
[BOT] post-merge updates
OCA-git-bot Oct 13, 2023
0ec89e1
Update translation files
weblate Oct 13, 2023
3b0ae5a
Added translation using Weblate (Spanish)
Ivorra78 Nov 8, 2023
4e01689
Translated using Weblate (Spanish)
Ivorra78 Nov 8, 2023
77d558b
Added translation using Weblate (Italian)
mymage Dec 1, 2023
d9eb2d2
Translated using Weblate (Italian)
mymage Dec 7, 2023
b6a984a
[IMP] mail_activity_reminder: pre-commit auto fixes
cuongnmtm Aug 9, 2024
d15c1e2
[MIG] mail_activity_reminder: Migration to 17.0
cuongnmtm Aug 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions mail_activity_reminder/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
======================
Mail Activity Reminder
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d6d84b98e72a7142b96255d66b7ace192dfa9c32b5c0857fd5817361358860bc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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%2Fsocial-lightgray.png?logo=github
:target: https://github.com/OCA/social/tree/17.0/mail_activity_reminder
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_activity_reminder
: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/social&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows setting reminders for various Activity Types.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure reminders for specific Activity Type:

1. Go to *Settings > Technical > Activity Types*
2. Open a specific activity type
3. Fill *Reminders* field with a non-digit-separated list of offsets (in
days) when reminders should be fired: e.g. 0 means "on the deadline
day" while 5 means "5 calendar days before the deadline".

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/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/social/issues/new?body=module:%20mail_activity_reminder%0Aversion:%2017.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
-------

* CorporateHub

Contributors
------------

- `CorporateHub <https://corporatehub.eu/>`__

- Alexey Pelykh <alexey.pelykh@corphub.eu>

- Denis Roussel <denis.roussel@acsone.eu>

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/social <https://github.com/OCA/social/tree/17.0/mail_activity_reminder>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions mail_activity_reminder/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import models
19 changes: 19 additions & 0 deletions mail_activity_reminder/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2020 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Mail Activity Reminder",
"version": "17.0.1.0.0",
"category": "Discuss",
"website": "https://github.com/OCA/social",
"author": "CorporateHub, Odoo Community Association (OCA)",
"license": "AGPL-3",
"summary": "Reminder notifications about planned activities",
"depends": ["mail"],
"data": [
"data/mail_activity_reminder_cron.xml",
"views/mail_activity_type.xml",
"data/mail_activity_template.xml",
],
}
20 changes: 20 additions & 0 deletions mail_activity_reminder/data/mail_activity_reminder_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2020 Brainbean Apps (https://brainbeanapps.com)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo noupdate="1">

<record id="mail_activity_reminder" model="ir.cron">
<field name="name">Mail Activity: Reminders</field>
<field name="model_id" ref="model_mail_activity" />
<field name="state">code</field>
<field name="code">model._process_reminders()</field>
<field name="interval_number">1</field>
<field name="interval_type">hours</field>
<field name="nextcall">2020-01-01 00:01:00</field>
<field name="numbercall">-1</field>
<field name="doall" eval="True" />
</record>

</odoo>
43 changes: 43 additions & 0 deletions mail_activity_reminder/data/mail_activity_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright ACSONE SA/NV
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
-->
<odoo noupdate="1">

<template id="message_activity_assigned">
<div style="margin: 0px; padding: 0px; font-size: 13px;">
<span>You have some activities assigned that expire soon:</span>

<t t-foreach="activities.mapped('activity_type_id')" t-as="activity_type">
<h3><span t-field="activity_type.display_name">:</span></h3>
<t
t-foreach="activities.filtered(lambda activity: activity.activity_type_id == activity_type)"
t-as="activity"
>
<span
t-field="activity.create_uid.name"
/> assigned you an activity <span
t-field="activity.activity_type_id.name"
/>
<t t-if="activity.summary">(<span
t-field="activity.summary"
/>)</t>
on <span t-field="activity.res_name" />
to close for <span t-field="activity.date_deadline" />.<br />
<p style="margin: 16px 0px 16px 0px;">
<a
t-att-href="'/mail/view?model=%s&amp;res_id=%s' % (activity.res_model, activity.res_id)"
style="background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;"
>
View
<t t-esc="model_description or 'document'" />
</a>
</p>
</t>
</t>
</div>

</template>

</odoo>
102 changes: 102 additions & 0 deletions mail_activity_reminder/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_activity_reminder
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-08 13:36+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: mail_activity_reminder
#: model_terms:ir.ui.view,arch_db:mail_activity_reminder.message_activity_assigned
msgid ".<br/>"
msgstr ".<br/>"

#. module: mail_activity_reminder
#: model_terms:ir.ui.view,arch_db:mail_activity_reminder.message_activity_assigned
msgid "<span>You have some activities assigned that expire soon:</span>"
msgstr "<span>Tienes algunas actividades asignadas que expiran pronto:</span>"

#. module: mail_activity_reminder
#: model:ir.model.fields,help:mail_activity_reminder.field_mail_activity_type__reminders
msgid ""
"A non-digit-separated list of offsets (in days) when reminders should be "
"fired: e.g. 0 means \"on the deadline day\" while 5 means \"5 calendar days "
"before the deadline\"."
msgstr ""
"Una lista no separada por dígitos de las fechas (en días) en las que deben "
"enviarse los recordatorios: por ejemplo, 0 significa \"el día de la fecha "
"límite\", mientras que 5 significa \"5 días naturales antes de la fecha "
"límite\"."

#. module: mail_activity_reminder
#: model:ir.model,name:mail_activity_reminder.model_mail_activity
msgid "Activity"
msgstr "Actividad"

#. module: mail_activity_reminder
#: model:ir.model,name:mail_activity_reminder.model_mail_activity_type
msgid "Activity Type"
msgstr "Tipo de Actividad"

#. module: mail_activity_reminder
#: model:ir.model.fields,field_description:mail_activity_reminder.field_mail_activity__deadline
msgid "Deadline"
msgstr "Fecha límite"

#. module: mail_activity_reminder
#: model:ir.model.fields,field_description:mail_activity_reminder.field_mail_activity__last_reminder_local
msgid "Last reminder (local)"
msgstr "Último recordatorio (local)"

#. module: mail_activity_reminder
#: model:ir.actions.server,name:mail_activity_reminder.mail_activity_reminder_ir_actions_server
#: model:ir.cron,cron_name:mail_activity_reminder.mail_activity_reminder
msgid "Mail Activity: Reminders"
msgstr "Actividad de correo: Recordatorios"

#. module: mail_activity_reminder
#: model:ir.model.fields,field_description:mail_activity_reminder.field_mail_activity__next_reminder
msgid "Next reminder"
msgstr "Siguiente recordatorio"

#. module: mail_activity_reminder
#: model:ir.model.fields,field_description:mail_activity_reminder.field_mail_activity_type__reminders
msgid "Reminders"
msgstr "Recordatorios"

#. module: mail_activity_reminder
#. odoo-python
#: code:addons/mail_activity_reminder/models/mail_activity.py:0
#, python-format
msgid "Some activities you are assigned too expire soon."
msgstr "Algunas actividades que se te asignan también caducan pronto."

#. module: mail_activity_reminder
#: model_terms:ir.ui.view,arch_db:mail_activity_reminder.message_activity_assigned
msgid "View"
msgstr "Vista"

#. module: mail_activity_reminder
#: model_terms:ir.ui.view,arch_db:mail_activity_reminder.message_activity_assigned
msgid "assigned you an activity"
msgstr "te ha asignado una actividad"

#. module: mail_activity_reminder
#: model_terms:ir.ui.view,arch_db:mail_activity_reminder.message_activity_assigned
msgid "on"
msgstr "sobre"

#. module: mail_activity_reminder
#: model_terms:ir.ui.view,arch_db:mail_activity_reminder.message_activity_assigned
msgid "to close for"
msgstr "para cerrar por"
106 changes: 106 additions & 0 deletions mail_activity_reminder/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_activity_reminder
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-10-20 09:44+0000\n"
"Last-Translator: Yann Papouin <ypa@decgroupe.com>\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: mail_activity_reminder
#: model_terms:ir.ui.view,arch_db:mail_activity_reminder.message_activity_assigned
msgid ".<br/>"
msgstr ""

#. module: mail_activity_reminder
#: model_terms:ir.ui.view,arch_db:mail_activity_reminder.message_activity_assigned
msgid "<span>You have some activities assigned that expire soon:</span>"
msgstr ""

#. module: mail_activity_reminder
#: model:ir.model.fields,help:mail_activity_reminder.field_mail_activity_type__reminders
msgid ""
"A non-digit-separated list of offsets (in days) when reminders should be "
"fired: e.g. 0 means \"on the deadline day\" while 5 means \"5 calendar days "
"before the deadline\"."
msgstr ""
"Une liste de nombres de jours (séparés par tout caractère autre que des "
"chiffres) qui indique quand les rappels doivent être déclenchés : par ex. 0 "
"signifie \"le jour de l'échéance\" tandis que 5 signifie \"5 jours "
"calendaires avant l'échéance\"."

#. module: mail_activity_reminder
#: model:ir.model,name:mail_activity_reminder.model_mail_activity
msgid "Activity"
msgstr "Activité"

#. module: mail_activity_reminder
#: model:ir.model,name:mail_activity_reminder.model_mail_activity_type
msgid "Activity Type"
msgstr "Type d'activité"

#. module: mail_activity_reminder
#: model:ir.model.fields,field_description:mail_activity_reminder.field_mail_activity__deadline
msgid "Deadline"
msgstr "Echéance"

#. module: mail_activity_reminder
#: model:ir.model.fields,field_description:mail_activity_reminder.field_mail_activity__last_reminder_local
msgid "Last reminder (local)"
msgstr "Dernier rappel (local)"

#. module: mail_activity_reminder
#: model:ir.actions.server,name:mail_activity_reminder.mail_activity_reminder_ir_actions_server
#: model:ir.cron,cron_name:mail_activity_reminder.mail_activity_reminder
msgid "Mail Activity: Reminders"
msgstr "Activité : Rappels"

#. module: mail_activity_reminder
#: model:ir.model.fields,field_description:mail_activity_reminder.field_mail_activity__next_reminder
msgid "Next reminder"
msgstr "Rappel suivant"

#. module: mail_activity_reminder
#: model:ir.model.fields,field_description:mail_activity_reminder.field_mail_activity_type__reminders
msgid "Reminders"
msgstr "Rappels"

#. module: mail_activity_reminder
#. odoo-python
#: code:addons/mail_activity_reminder/models/mail_activity.py:0
#, python-format
msgid "Some activities you are assigned too expire soon."
msgstr ""

#. module: mail_activity_reminder
#: model_terms:ir.ui.view,arch_db:mail_activity_reminder.message_activity_assigned
msgid "View"
msgstr ""

#. module: mail_activity_reminder
#: model_terms:ir.ui.view,arch_db:mail_activity_reminder.message_activity_assigned
msgid "assigned you an activity"
msgstr ""

#. module: mail_activity_reminder
#: model_terms:ir.ui.view,arch_db:mail_activity_reminder.message_activity_assigned
msgid "on"
msgstr ""

#. module: mail_activity_reminder
#: model_terms:ir.ui.view,arch_db:mail_activity_reminder.message_activity_assigned
msgid "to close for"
msgstr ""

#, python-format
#~ msgid "%s: %s assigned to you, %d day(s) remaining"
#~ msgstr "%s : %s assigné à vous, %d jour(s) restant(s)"
Loading
Loading