@ -0,0 +1,57 @@ |
|||
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg |
|||
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html |
|||
:alt: License: AGPL-3 |
|||
|
|||
Task DeadLine Reminder |
|||
====================== |
|||
This module extends the functionality of project module to allow to send deadline reminder emails on task deadline day. |
|||
|
|||
Configuration |
|||
============= |
|||
By default, a cron job named "Task DeadLine Reminder" will be created while installing this module. |
|||
This cron job can be found in: |
|||
|
|||
**Settings > Technical > Automation > Scheduled Actions** |
|||
|
|||
This job runs daily by default. |
|||
|
|||
Company |
|||
------- |
|||
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
|||
|
|||
License |
|||
------- |
|||
General Public License, Version 3 (AGPL v3). |
|||
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
|||
|
|||
Credits |
|||
======= |
|||
Developer (v9): Saritha , |
|||
Version (10,11): Niyas Raphy, |
|||
Version 13: Nimisha , |
|||
Version 14: Jibin James , |
|||
Version 15: Aneesh , |
|||
Version 16: Robin , |
|||
Version 17: Anjhana A K , |
|||
Contact: odoo@cybrosys.com |
|||
|
|||
Contacts |
|||
-------- |
|||
* Mail Contact : odoo@cybrosys.com |
|||
* Website : https://cybrosys.com |
|||
|
|||
Bug Tracker |
|||
----------- |
|||
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
|||
|
|||
Maintainer |
|||
========== |
|||
.. image:: https://cybrosys.com/images/logo.png |
|||
:target: https://cybrosys.com |
|||
|
|||
This module is maintained by Cybrosys Technologies. |
|||
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
|||
|
|||
Further information |
|||
=================== |
|||
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Unnimaya C O(<https://www.cybrosys.com>) |
|||
# You can modify it under the terms of the GNU AFFERO |
|||
# GENERAL PUBLIC LICENSE (AGPL v3) Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import models |
@ -0,0 +1,45 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Unnimaya C O(<https://www.cybrosys.com>) |
|||
# You can modify it under the terms of the GNU AFFERO |
|||
# GENERAL PUBLIC LICENSE (AGPL v3) Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
{ |
|||
'name': "Task Deadline Reminder", |
|||
'version': '18.0.1.0.0', |
|||
'category': "Project", |
|||
'summary': """Automatically Send Mail To Responsible User if Deadline Of |
|||
Task is Today""", |
|||
'description': """This app sends an email to the person in charge whenever |
|||
a task deadline is today. This helps in keeping everyone updated and |
|||
ensures tasks are completed on time.""", |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': 'https://www.cybrosys.com', |
|||
'depends': ['project'], |
|||
'data': [ |
|||
'views/project_task_views.xml', |
|||
'data/ir_cron_data.xml', |
|||
'data/mail_template_data.xml', |
|||
], |
|||
'images': ['static/description/banner.png'], |
|||
'license': 'AGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': False, |
|||
} |
@ -0,0 +1,13 @@ |
|||
<?xml version="1.0" encoding='UTF-8'?> |
|||
<odoo> |
|||
<!--Cron Action that daily checks each tasks deadline--> |
|||
<record id="availability_create_cron" model="ir.cron"> |
|||
<field name="name">Task Deadline Reminder</field> |
|||
<field name="model_id" ref="project.model_project_task"/> |
|||
<field name="state">code</field> |
|||
<field name="code">model._cron_deadline_reminder()</field> |
|||
<field name="user_id" ref="base.user_root"/> |
|||
<field name="interval_number">1</field> |
|||
<field name="interval_type">days</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,55 @@ |
|||
<?xml version="1.0" ?> |
|||
<odoo> |
|||
<data noupdate="1"> |
|||
<!-- Email template--> |
|||
<record id="email_template_deadline_reminder" model="mail.template"> |
|||
<field name="name">Deadline Reminder...!!</field> |
|||
<field name="subject">Task due today -{{object.date_deadline or 'n/a' }}</field> |
|||
<field name="model_id" ref="task_deadline_reminder.model_project_task" /> |
|||
<field name="auto_delete" eval="True" /> |
|||
<field name="body_html"><![CDATA[ |
|||
<div class="page"> |
|||
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; "> |
|||
<p>Hi,</p> |
|||
<p> This email is to remind you that the tasks listed below are due today. </p> |
|||
</div> |
|||
<div> |
|||
<table class="table table-condensed"> |
|||
<thead> |
|||
<tr> |
|||
<th style="background-color:#9b9da0 !important;">Task</th> |
|||
<th style="background-color:#9b9da0 !important;">Project</th> |
|||
<th style="background-color:#9b9da0 !important;">Deadline</th> |
|||
<th style="background-color:#9b9da0 !important;">Assigned To</th> |
|||
<th style="background-color:#9b9da0 !important;">Link</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<tr> |
|||
<td><span><t t-out="object.name"/></span></td> |
|||
<td><span><t t-out="object.project_id.name"/></span></td> |
|||
<td><span><t t-out="object.date_deadline"/></span></td> |
|||
<td> |
|||
<span> |
|||
<t t-foreach="object.user_ids" t-as="user"> |
|||
<t t-out="user.name"/>, |
|||
</t> |
|||
</span> |
|||
</td> |
|||
<td style="padding: 7px;"> |
|||
<a href="/web/login/" style="background-color: #743f74; height:18px; |
|||
width:80px; color: white; padding-top:1px; |
|||
border: none; border-radius: 5px; |
|||
text-align: center; text-decoration: none; |
|||
display: inline-block; font-size: 12px;">View Task</a> |
|||
</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
]]> |
|||
</field> |
|||
</record> |
|||
</data> |
|||
</odoo> |
@ -0,0 +1,6 @@ |
|||
## Module <task_deadline_reminder> |
|||
|
|||
#### 03.24.2024 |
|||
#### Version 18.0.1.0.0 |
|||
#### ADD |
|||
- Initial Commit for Task Deadline Reminder |
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Unnimaya C O(<https://www.cybrosys.com>) |
|||
# You can modify it under the terms of the GNU AFFERO |
|||
# GENERAL PUBLIC LICENSE (AGPL v3) Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import project_task |
@ -0,0 +1,56 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Unnimaya C O(<https://www.cybrosys.com>) |
|||
# You can modify it under the terms of the GNU AFFERO |
|||
# GENERAL PUBLIC LICENSE (AGPL v3) Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import api, fields, models |
|||
|
|||
|
|||
class ProjectTask(models.Model): |
|||
"""inherited to add reminder field""" |
|||
_inherit = "project.task" |
|||
|
|||
is_task_reminder = fields.Boolean(string="Reminder", |
|||
help='Task deadline reminder') |
|||
|
|||
@api.model |
|||
def _cron_deadline_reminder(self): |
|||
"""Checks daily , if the task reaches deadline it will send the |
|||
mail to assignee """ |
|||
for task in self.search([('date_deadline', '!=', None), |
|||
('is_task_reminder', '=', True), |
|||
('user_ids', '!=', None)]): |
|||
if task.date_deadline.date() == fields.Date.today() and task: |
|||
template_id = self.env.ref( |
|||
'task_deadline_reminder.email_template_deadline_reminder') |
|||
if template_id: |
|||
email_template_obj = self.env['mail.template'].browse( |
|||
template_id.id) |
|||
emails = [user.email for user in task.user_ids] |
|||
email_to = ', '.join(emails) |
|||
email_values = { |
|||
'email_to': email_to, |
|||
'email_cc': False, |
|||
'scheduled_date': False, |
|||
'recipient_ids': [], |
|||
'partner_ids': [], |
|||
'auto_delete': True, |
|||
} |
|||
email_template_obj.send_mail( |
|||
task.id, force_send=True, email_values=email_values) |
|||
return True |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 209 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 929 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 738 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 600 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 926 B |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 800 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 875 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 110 KiB |
After Width: | Height: | Size: 138 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 84 KiB |
After Width: | Height: | Size: 110 KiB |
After Width: | Height: | Size: 65 KiB |
After Width: | Height: | Size: 98 KiB |
After Width: | Height: | Size: 91 KiB |
@ -0,0 +1,16 @@ |
|||
<?xml version="1.0" encoding='UTF-8'?> |
|||
<odoo> |
|||
<!-- Added reminder field--> |
|||
<record id="view_task_form2" model="ir.ui.view"> |
|||
<field name="name"> |
|||
project.task.view.form.inherit.task.deadline.reminder |
|||
</field> |
|||
<field name="model">project.task</field> |
|||
<field name="inherit_id" ref="project.view_task_form2"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="tag_ids" position="after"> |
|||
<field name="is_task_reminder"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
</odoo> |