diff --git a/task_deadline_reminder/README.rst b/task_deadline_reminder/README.rst new file mode 100644 index 000000000..8844f6bb1 --- /dev/null +++ b/task_deadline_reminder/README.rst @@ -0,0 +1,61 @@ +Task DeadLine Reminder v15 +========================== +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. + +Usage +===== + +To use this functionality, you need to: + +#. Create a project to which the new tasks will be related. +#. Add a name, deadline date, who the task will be assigned to, etc... +#. In order to send email reminder to responsible user,you have to set reminder box (Project > Task > Reminder ) +#. Go to the Scheduled Action(Settings > Technical > Automation > Scheduled Action) and edit the time at which Deadline Reminder Action is to be done + +The cron job will do the rest. + +Installation +============ +- www.odoo.com/documentation/15.0/setup/install.html +- Install our custom addon + +Bug Tracker +=========== +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Credits +======= +Cybrosys Techno Solutions + +Author +------ +* Developer v9: Saritha @ cybrosys +v10, v11: Niyas Raphy @ cybrosys +V13: Nimisha @ cybrosys +v14: Jibin James @ cybrosys +v15: Aneesh @ cybrosys + +Maintainer +---------- + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com. + + + + + + + + diff --git a/task_deadline_reminder/__init__.py b/task_deadline_reminder/__init__.py new file mode 100644 index 000000000..3fa052bcc --- /dev/null +++ b/task_deadline_reminder/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# Author: odoo@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 . +# +############################################################################# + +from . import models + + + diff --git a/task_deadline_reminder/__manifest__.py b/task_deadline_reminder/__manifest__.py new file mode 100755 index 000000000..970bdbd51 --- /dev/null +++ b/task_deadline_reminder/__manifest__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# Author: odoo@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 . +# +############################################################################# + +{ + 'name': "Task Deadline Reminder", + 'version': "15.0.1.0.0", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'summary': '''Automatically Send Mail To Responsible User if Deadline Of Task is Today''', + 'description': '''Automatically Send Mail To Responsible User if Deadline Of Task is Today''', + 'category': "Project", + 'depends': ['project'], + 'license': 'AGPL-3', + 'data': [ + 'views/deadline_reminder_view.xml', + 'views/deadline_reminder_cron.xml', + 'data/deadline_reminder_action_data.xml' + ], + 'images': ['static/description/banner.png'], + 'installable': True, + 'auto_install': False +} diff --git a/task_deadline_reminder/data/deadline_reminder_action_data.xml b/task_deadline_reminder/data/deadline_reminder_action_data.xml new file mode 100644 index 000000000..70da45004 --- /dev/null +++ b/task_deadline_reminder/data/deadline_reminder_action_data.xml @@ -0,0 +1,52 @@ + + + + + + Deadline Reminder...!! + "{{object.company_id.name}}"<{{object.company_id.email}}> + {{ctx.get('email_to')}} + Today Due Task -{{object.date_deadline or 'n/a' }} + + + +
+

Hi,

+

This Email Is To Remind You That You Have Task As Below Listed Which Are Due On Today.

+
+
+ + + + + + + + + + + + + + + + + + + +
TaskProjectDeadlineAssigned ToLink
+ + + , + + + View Now
+
+ + ]]> +
+
+ +
+
diff --git a/task_deadline_reminder/doc/RELEASE_NOTES.md b/task_deadline_reminder/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..91357ce15 --- /dev/null +++ b/task_deadline_reminder/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 30.10.2021 +#### Version 15.0.1.0.0 +#### ADD +Initial Commit diff --git a/task_deadline_reminder/models/__init__.py b/task_deadline_reminder/models/__init__.py new file mode 100644 index 000000000..54bbb447b --- /dev/null +++ b/task_deadline_reminder/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# Author: odoo@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 . +# +############################################################################# + +from . import deadline_reminder + + diff --git a/task_deadline_reminder/models/deadline_reminder.py b/task_deadline_reminder/models/deadline_reminder.py new file mode 100644 index 000000000..64f482c74 --- /dev/null +++ b/task_deadline_reminder/models/deadline_reminder.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# Author: odoo@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 . +# +############################################################################# + +import datetime +from datetime import datetime +from odoo import api, fields, models, _ + + +class DeadLineReminder(models.Model): + _inherit = "project.task" + + task_reminder = fields.Boolean("Reminder") + + @api.model + def _cron_deadline_reminder(self): + for task in self.env['project.task'].search( + [('date_deadline', '!=', None), + ('task_reminder', '=', True), ('user_ids', '!=', None)]): + reminder_date = task.date_deadline + today = datetime.now().date() + + if reminder_date == today and task: + template_id = self.env['ir.model.data']._xmlid_lookup( + 'task_deadline_reminder.email_template_edi_deadline_reminder')[2] + if template_id: + email_template_obj = self.env['mail.template'].browse( + template_id) + for usr in task.user_ids: + data = {'email_to': usr.email} + values = email_template_obj.with_context(data).generate_email(task.id, + ['subject', 'body_html', 'email_from', 'email_to', + 'partner_to', 'email_cc', 'reply_to','scheduled_date']) + msg_id = self.env['mail.mail'].create(values) + if msg_id: + msg_id._send() + return True diff --git a/task_deadline_reminder/static/description/assets/icons/check.png b/task_deadline_reminder/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/check.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/chevron.png b/task_deadline_reminder/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/chevron.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/cogs.png b/task_deadline_reminder/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/cogs.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/consultation.png b/task_deadline_reminder/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/consultation.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/ecom-black.png b/task_deadline_reminder/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/ecom-black.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/education-black.png b/task_deadline_reminder/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/education-black.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/hotel-black.png b/task_deadline_reminder/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/hotel-black.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/license.png b/task_deadline_reminder/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/license.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/lifebuoy.png b/task_deadline_reminder/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/lifebuoy.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/manufacturing-black.png b/task_deadline_reminder/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/manufacturing-black.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/pos-black.png b/task_deadline_reminder/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/pos-black.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/puzzle.png b/task_deadline_reminder/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/puzzle.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/restaurant-black.png b/task_deadline_reminder/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/restaurant-black.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/service-black.png b/task_deadline_reminder/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/service-black.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/trading-black.png b/task_deadline_reminder/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/trading-black.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/training.png b/task_deadline_reminder/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/training.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/update.png b/task_deadline_reminder/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/update.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/user.png b/task_deadline_reminder/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/user.png differ diff --git a/task_deadline_reminder/static/description/assets/icons/wrench.png b/task_deadline_reminder/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/task_deadline_reminder/static/description/assets/icons/wrench.png differ diff --git a/task_deadline_reminder/static/description/assets/modules/approval_image.png b/task_deadline_reminder/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/task_deadline_reminder/static/description/assets/modules/approval_image.png differ diff --git a/task_deadline_reminder/static/description/assets/modules/dynamic_image.png b/task_deadline_reminder/static/description/assets/modules/dynamic_image.png new file mode 100644 index 000000000..f55c47e0f Binary files /dev/null and b/task_deadline_reminder/static/description/assets/modules/dynamic_image.png differ diff --git a/task_deadline_reminder/static/description/assets/modules/list_view_image.png b/task_deadline_reminder/static/description/assets/modules/list_view_image.png new file mode 100644 index 000000000..510d36ae9 Binary files /dev/null and b/task_deadline_reminder/static/description/assets/modules/list_view_image.png differ diff --git a/task_deadline_reminder/static/description/assets/modules/multiple_ref_image.png b/task_deadline_reminder/static/description/assets/modules/multiple_ref_image.png new file mode 100644 index 000000000..3fe90e552 Binary files /dev/null and b/task_deadline_reminder/static/description/assets/modules/multiple_ref_image.png differ diff --git a/task_deadline_reminder/static/description/assets/modules/print_image.png b/task_deadline_reminder/static/description/assets/modules/print_image.png new file mode 100644 index 000000000..b470725a1 Binary files /dev/null and b/task_deadline_reminder/static/description/assets/modules/print_image.png differ diff --git a/task_deadline_reminder/static/description/assets/modules/product_return_image.png b/task_deadline_reminder/static/description/assets/modules/product_return_image.png new file mode 100644 index 000000000..3afc14722 Binary files /dev/null and b/task_deadline_reminder/static/description/assets/modules/product_return_image.png differ diff --git a/task_deadline_reminder/static/description/assets/screenshots/1.png b/task_deadline_reminder/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..fe11d4725 Binary files /dev/null and b/task_deadline_reminder/static/description/assets/screenshots/1.png differ diff --git a/task_deadline_reminder/static/description/assets/screenshots/2.png b/task_deadline_reminder/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..6fadb4cfb Binary files /dev/null and b/task_deadline_reminder/static/description/assets/screenshots/2.png differ diff --git a/task_deadline_reminder/static/description/assets/screenshots/3.png b/task_deadline_reminder/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..22133666a Binary files /dev/null and b/task_deadline_reminder/static/description/assets/screenshots/3.png differ diff --git a/task_deadline_reminder/static/description/assets/screenshots/hero.png b/task_deadline_reminder/static/description/assets/screenshots/hero.png new file mode 100644 index 000000000..992fdaafe Binary files /dev/null and b/task_deadline_reminder/static/description/assets/screenshots/hero.png differ diff --git a/task_deadline_reminder/static/description/banner.png b/task_deadline_reminder/static/description/banner.png new file mode 100644 index 000000000..c128be58a Binary files /dev/null and b/task_deadline_reminder/static/description/banner.png differ diff --git a/task_deadline_reminder/static/description/icon.png b/task_deadline_reminder/static/description/icon.png new file mode 100644 index 000000000..a01a86737 Binary files /dev/null and b/task_deadline_reminder/static/description/icon.png differ diff --git a/task_deadline_reminder/static/description/index.html b/task_deadline_reminder/static/description/index.html new file mode 100644 index 000000000..8079ce8b4 --- /dev/null +++ b/task_deadline_reminder/static/description/index.html @@ -0,0 +1,580 @@ +
+
+
+

+ Task Deadline Reminder

+

+ Helps to send reminder emails for Project Tasks on deadline. +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ This module send auto reminder to responsible user of task if the deadline is today. Cron job will + run everyday and search for task which due today and send reminder email to employee. +

+ +
+
+ +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Enable and disable the reminder

+

+ Reminder can be enabled for required tasks only.

+
+
+ +
+
+ +
+
+

+ Daily Scheduled mail

+

+ Automatic mail will be send to assignees of the task daily.

+
+
+ + +
+
+ +
+
+

+ Reminder mail with task details

+

+ Reminder email with task details like Project, Deadline, Assigned To.

+
+
+ +
+ +
+
+

+ Screenshots +

+
+ +
+

+ Project Task Form - Configuration of Task Deadline Reminder

+

+ Tasks with the reminder box checked will be considered for reminder.

+ +
+ +
+

+ Scheduled Action - Task Deadline Reminder

+

+ Scheduled action for daily reminder.

+ +
+ + +
+

+ Email Template

+

+ Email template of the task deadline reminder.

+ +
+ +
+ + + +
+
+

Suggested Products

+
+ + +
+
+ + + + +
+
+
+

Our Services

+
+
+ +
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+
+

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+ +
+
+ + + + + +
+
+
+

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/task_deadline_reminder/views/deadline_reminder_cron.xml b/task_deadline_reminder/views/deadline_reminder_cron.xml new file mode 100644 index 000000000..67274a8da --- /dev/null +++ b/task_deadline_reminder/views/deadline_reminder_cron.xml @@ -0,0 +1,16 @@ + + + + + Task Deadline Reminder + + code + model._cron_deadline_reminder() + + 1 + days + -1 + + + + diff --git a/task_deadline_reminder/views/deadline_reminder_view.xml b/task_deadline_reminder/views/deadline_reminder_view.xml new file mode 100644 index 000000000..c9512c95e --- /dev/null +++ b/task_deadline_reminder/views/deadline_reminder_view.xml @@ -0,0 +1,15 @@ + + + + + ProjectTaskRemainder + project.task + + + + + + + + + \ No newline at end of file