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

[18.0][MIG] mail_activity_reminder: Migration to 18.0 #36

Open
wants to merge 57 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
9dcf8a4
Initial commit
OCA-git-bot Oct 8, 2024
8153025
[IMP] update dotfiles
OCA-git-bot Oct 20, 2024
4302296
mail_thread_create_nolog: display create msg on the fly
sebalix Apr 24, 2023
00ad4d4
[UPD] Update mail_thread_create_nolog.pot
Oct 12, 2023
1a64cb1
[BOT] post-merge updates
OCA-git-bot Oct 12, 2023
ce1f9ae
Added translation using Weblate (Spanish)
Ivorra78 Jan 28, 2024
1e1de16
Translated using Weblate (Spanish)
Ivorra78 Jan 28, 2024
70eb481
Replace 'Camptocamp SA' with 'Camptocamp'
vvrossem Jun 13, 2024
eb43fc6
[BOT] post-merge updates
OCA-git-bot Jul 22, 2024
1daeb05
[IMP] mail_thread_create_nolog: pre-commit auto fixes
chaule97 Oct 9, 2024
d080700
[MIG] mail_thread_create_nolog: Migration to 18.0
chaule97 Oct 10, 2024
f7362c5
[UPD] Update mail_thread_create_nolog.pot
Oct 28, 2024
f1c6a09
[BOT] post-merge updates
OCA-git-bot Oct 28, 2024
c8b96f0
Update translation files
weblate Oct 28, 2024
611148a
Added translation using Weblate (Italian)
mymage Oct 29, 2024
770985b
Translated using Weblate (Italian)
mymage Oct 29, 2024
deb820a
Add module mail_notification_with_history
TDu Jun 16, 2022
977ef27
[UPD] Update mail_notification_with_history.pot
Dec 30, 2022
3edee06
[UPD] README.rst
OCA-git-bot Dec 30, 2022
c2a5e8d
[ADD] icon.png
OCA-git-bot Dec 30, 2022
afc1e12
mail_notification_with_history: not all messages have a 'model' defined
sebalix Aug 21, 2023
efc4f0a
mail_notification_with_history 14.0.1.0.1
OCA-git-bot Aug 22, 2023
6eeed0a
[UPD] README.rst
OCA-git-bot Sep 3, 2023
f082aff
Added translation using Weblate (Spanish)
Ivorra78 Jan 28, 2024
e1dcc70
Translated using Weblate (Spanish)
Ivorra78 Jan 28, 2024
5e6f715
Replace 'Camptocamp SA' with 'Camptocamp'
vvrossem Jun 13, 2024
ef4308f
[BOT] post-merge updates
OCA-git-bot Jul 22, 2024
e5a58bb
[IMP] mail_notification_with_history: pre-commit execution
trisdoan Oct 28, 2024
edb12c5
[MIG] mail_notification_with_history: Migration to 18.0
trisdoan Oct 28, 2024
ef985d0
[UPD] Update mail_notification_with_history.pot
Nov 4, 2024
803bc24
[BOT] post-merge updates
OCA-git-bot Nov 4, 2024
5d563be
Update translation files
weblate Nov 4, 2024
8c7d413
Added translation using Weblate (Italian)
mymage Nov 5, 2024
56f01c7
Translated using Weblate (Italian)
mymage Nov 5, 2024
7c67789
[ADD] mail_activity_reminder
alexey-pelykh Feb 13, 2020
6ecd6a7
[UPD] Update mail_activity_reminder.pot
oca-travis May 7, 2020
854666a
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 4, 2020
1520042
Added translation using Weblate (Portuguese)
pedrocs-exo May 11, 2021
fada70e
Translated using Weblate (Portuguese)
pedrocs-exo May 11, 2021
d109c32
Added translation using Weblate (French)
ypapouin Oct 20, 2022
ac71450
Translated using Weblate (French)
ypapouin Oct 20, 2022
70dbc1f
[IMP] mail_activity_reminder: black, isort, prettier
rousseldenis Apr 21, 2023
44a4f37
[MIG][13.0] mail_activity_reminder
rousseldenis Apr 21, 2023
d637098
[IMP] mail_activity_reminder: Group sendings per user and activity type
rousseldenis Apr 22, 2023
53c0608
[IMP] mail_activity_reminder: pre-commit stuff
sebalix Oct 9, 2023
1b47233
[MIG] mail_activity_reminder: Migration to 16.0
sebalix Oct 9, 2023
cee26e8
Added translation using Weblate (Spanish)
Ivorra78 Nov 8, 2023
9bded3b
Translated using Weblate (Spanish)
Ivorra78 Nov 8, 2023
a569220
Added translation using Weblate (Italian)
mymage Dec 1, 2023
8fd40dc
Translated using Weblate (Italian)
mymage Dec 7, 2023
de5287a
[IMP] mail_activity_reminder: pre-commit auto fixes
bizzappdev Apr 9, 2024
a92d49b
[MIG] mail_activity_reminder: Migration to 17.0
bizzappdev Apr 9, 2024
7bc0a39
Translated using Weblate (Italian)
mymage Aug 30, 2024
0f5afce
[IMP] mail_activity_reminder: pre-commit auto fixes
ellbristow Jan 9, 2025
c5be6ca
[MIG] mail_activity_reminder: Migration to 18.0
ellbristow Jan 9, 2025
29c107e
[FIX] Fix deprecated method in unit test
ellbristow Jan 10, 2025
d8c1a2f
Pre-Commit Fixed
ellbristow Feb 14, 2025
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
1 change: 0 additions & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ repo_slug: mail
repo_website: https://github.com/OCA/mail
use_pyproject_toml: true
use_ruff: true

8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,9 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Update .pot files
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }}
run:
oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN
}}@github.com/${{ github.repository }}
if:
${{ matrix.makepot == 'true' && github.event_name == 'push' &&
github.repository_owner == 'OCA' }}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

[![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=18.0)
[![Pre-commit Status](https://github.com/OCA/mail/actions/workflows/pre-commit.yml/badge.svg?branch=18.0)](https://github.com/OCA/mail/actions/workflows/pre-commit.yml?query=branch%3A18.0)
[![Build Status](https://github.com/OCA/mail/actions/workflows/test.yml/badge.svg?branch=18.0)](https://github.com/OCA/mail/actions/workflows/test.yml?query=branch%3A18.0)
Expand Down Expand Up @@ -39,11 +38,12 @@ addon | version | maintainers | summary

This repository is licensed under [AGPL-3.0](LICENSE).

However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA)
policy. Consult each module's `__manifest__.py` file, which contains a `license` key
that explains its license.
However, each module can have a totally different license, as long as they adhere to
Odoo Community Association (OCA) policy. Consult each module's `__manifest__.py` file,
which contains a `license` key that explains its license.

---

----
OCA, or the [Odoo Community Association](http://odoo-community.org/), is a nonprofit
organization whose mission is to support the collaborative development of Odoo features
and promote its widespread use.
92 changes: 92 additions & 0 deletions mail_activity_reminder/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
======================
Mail Activity Reminder
======================

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

.. |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%2Fmail-lightgray.png?logo=github
:target: https://github.com/OCA/mail/tree/18.0/mail_activity_reminder
:alt: OCA/mail
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/mail-18-0/mail-18-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/mail&target_branch=18.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/mail/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/mail/issues/new?body=module:%20mail_activity_reminder%0Aversion:%2018.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>
- Elliott Bristow <elliott@glo.systems>

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/mail <https://github.com/OCA/mail/tree/18.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": "18.0.1.0.0",
"category": "Discuss",
"website": "https://github.com/OCA/mail",
"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",
],
}
16 changes: 16 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,16 @@
<?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>
</record>
</odoo>
42 changes: 42 additions & 0 deletions mail_activity_reminder/data/mail_activity_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?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>
106 changes: 106 additions & 0 deletions mail_activity_reminder/i18n/es.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 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,name:mail_activity_reminder.model_mail_thread
msgid "Email Thread"
msgstr ""

#. 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
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"
Loading
Loading