diff --git a/schedule_mail_to_send/README.rst b/schedule_mail_to_send/README.rst new file mode 100644 index 000000000..bc2e094e4 --- /dev/null +++ b/schedule_mail_to_send/README.rst @@ -0,0 +1,50 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Schedule Mail to Send +--------------------- +* This module allow you to schedule and send mail + +Configuration +------------- +- Additional configuration not required + +Installation +------------- +- www.odoo.com/documentation/16.0/setup/install.html +- Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer:(V16) Anjana P V, 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 https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ diff --git a/schedule_mail_to_send/__init__.py b/schedule_mail_to_send/__init__.py new file mode 100644 index 000000000..097bdb395 --- /dev/null +++ b/schedule_mail_to_send/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import models diff --git a/schedule_mail_to_send/__manifest__.py b/schedule_mail_to_send/__manifest__.py new file mode 100644 index 000000000..c653f46cb --- /dev/null +++ b/schedule_mail_to_send/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Schedule Mail to Send', + 'version': '16.0.1.0.0', + 'category': 'Discuss', + 'summary': """Easily schedule your emails for future delivery""", + 'description': """This module provides a function or feature that allows + users to specify a future date and time for sending an email.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['mail'], + 'data': [ + 'data/ir_cron_data.xml', + 'data/mail_activity_type_data.xml', + 'views/mail_compose_message_views.xml', + ], + 'assets': { + 'web.assets_backend': [ + 'schedule_mail_to_send/static/src/xml/mail_chatter.xml', + 'schedule_mail_to_send/static/src/js/chatter_topbar.js', + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/schedule_mail_to_send/data/ir_cron_data.xml b/schedule_mail_to_send/data/ir_cron_data.xml new file mode 100644 index 000000000..4533ba71f --- /dev/null +++ b/schedule_mail_to_send/data/ir_cron_data.xml @@ -0,0 +1,17 @@ + + + + + + Mail: Schedule And Send + + code + model.send_scheduled_mail() + + 1 + minutes + -1 + + + + diff --git a/schedule_mail_to_send/data/mail_activity_type_data.xml b/schedule_mail_to_send/data/mail_activity_type_data.xml new file mode 100644 index 000000000..d3cf24663 --- /dev/null +++ b/schedule_mail_to_send/data/mail_activity_type_data.xml @@ -0,0 +1,10 @@ + + + + + + Schedule mail + fa-file-text-o + + + diff --git a/schedule_mail_to_send/doc/RELEASE_NOTES.md b/schedule_mail_to_send/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..154033c2f --- /dev/null +++ b/schedule_mail_to_send/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 14.05.2024 +#### Version 16.0.1.0.0 +##### ADD +- Initial Commit for Schedule Mail to Send diff --git a/schedule_mail_to_send/models/__init__.py b/schedule_mail_to_send/models/__init__.py new file mode 100644 index 000000000..ed8e9be58 --- /dev/null +++ b/schedule_mail_to_send/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import mail_compose_message +from . import mail_activity diff --git a/schedule_mail_to_send/models/mail_activity.py b/schedule_mail_to_send/models/mail_activity.py new file mode 100644 index 000000000..1f3c4afa3 --- /dev/null +++ b/schedule_mail_to_send/models/mail_activity.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models + + +class MailActivity(models.Model): + """This class is used to exit from planned activity, if the + scheduled mail send""" + _inherit = 'mail.activity' + + schedule_mail_id = fields.Integer(string='Mail compose id', + help='Shows the id of' + 'corresponding record in the ' + 'model mail.compose.message') diff --git a/schedule_mail_to_send/models/mail_compose_message.py b/schedule_mail_to_send/models/mail_compose_message.py new file mode 100644 index 000000000..82b120a81 --- /dev/null +++ b/schedule_mail_to_send/models/mail_compose_message.py @@ -0,0 +1,121 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +import datetime +import pytz +from odoo import api, fields, models +from odoo.exceptions import UserError + + +class MailComposeMessage(models.TransientModel): + """This class add a field called schedule_time in this model, to have the + date and time for scheduling """ + _inherit = 'mail.compose.message' + + schedule_time = fields.Datetime(string='Schedule Time', + help='Schedule date and time') + + @api.onchange('schedule_time') + def _onchange_schedule_time(self): + """When the field 'schedule_time' change, it will replace the seconds + as zero""" + if self.schedule_time: + self.schedule_time = self.schedule_time.replace(second=0) + + def action_schedule_mail(self): + """This function is used to create a record in schedule.mail and + display the scheduled mail as a message in chatter """ + + email_from = self.author_id.email + attachment_list = [] + for attachment in self.attachment_ids: + attachment_list.append(attachment.id) + partner_list = [] + for partner in self.partner_ids: + partner_list.append(partner.id) + schedule_mail = self.env['mail.mail'].create({ + 'email_from': email_from, + 'subject': self.subject, + 'body_html': self.body, + 'scheduled_date': self.schedule_time, + 'recipient_ids': partner_list, + 'attachment_ids': attachment_list, + 'reply_to': email_from + }) + utc_current_datetime = fields.Datetime.now() + user_tz = pytz.timezone(self.env.context.get( + 'tz') or self.env.user.tz) # Access the time zone + date_today = pytz.utc.localize(utc_current_datetime).astimezone( + user_tz) # Access local time + user_current_datetime = date_today.strftime( + '%Y-%m-%d %H:%M:%S') # Converted to string and removed the utc time difference + user_current_date = datetime.datetime.strptime(user_current_datetime, + "%Y-%m-%d %H:%M:%S").replace( + second=0) + if not self.schedule_time: + raise UserError('Invalid Schedule time') + if self.schedule_time and self.schedule_time > user_current_date: + raise UserError('Invalid Schedule time') + model = self.env.context['default_res_model'] + model_id = self.env['ir.model'].search([('model', '=', model)], limit=1) + record_id = self.env.context['default_res_id'] + record = self.env[model].browse(record_id) + activity = { + 'activity_type_id': self.env.ref( + 'schedule_mail_to_send.mail_activity_schedule').id, + 'summary': self.subject, + 'note': self.body, + 'date_deadline': self.schedule_time, + 'res_model_id': model_id.id, + 'res_id': record.id, + 'schedule_mail_id': schedule_mail.id + } + record.activity_schedule(**activity) + return {'type': 'ir.actions.client', 'tag': 'reload'} + + def send_scheduled_mail(self): + """This function is called by a scheduled action in each minute to + send the scheduled mails""" + utc_current_datetime = fields.Datetime.now() + # Access the time zone + user_tz = pytz.timezone(self.env.context.get( + 'tz') or self.env.user.tz) + # Access local time + date_today = pytz.utc.localize(utc_current_datetime).astimezone( + user_tz) + # Converted to string and removed the utc time difference + user_current_datetime = date_today.strftime( + '%Y-%m-%d %H:%M:%S') + # Again converted to datetime type and replace the seconds with 0 + user_current_date = datetime.datetime.strptime( + user_current_datetime, + "%Y-%m-%d %H:%M:%S").replace( + second=0) + scheduled_mail_rec = self.env['mail.mail'].search( + [('scheduled_date', '<=', user_current_date)]) + if scheduled_mail_rec: + for record in scheduled_mail_rec: + record.send() + planned_activity = self.env['mail.activity'].search( + [('schedule_mail_id', '=', record.id)]) + # unlink the planned activity + planned_activity.sudo().action_feedback(self) + record.sudo().unlink() # Deleting the mail after sending diff --git a/schedule_mail_to_send/static/description/assets/icons/check.png b/schedule_mail_to_send/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/check.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/chevron.png b/schedule_mail_to_send/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/chevron.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/cogs.png b/schedule_mail_to_send/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/cogs.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/consultation.png b/schedule_mail_to_send/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/consultation.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/ecom-black.png b/schedule_mail_to_send/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/ecom-black.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/education-black.png b/schedule_mail_to_send/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/education-black.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/hotel-black.png b/schedule_mail_to_send/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/hotel-black.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/license.png b/schedule_mail_to_send/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/license.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/lifebuoy.png b/schedule_mail_to_send/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/lifebuoy.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/manufacturing-black.png b/schedule_mail_to_send/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/manufacturing-black.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/pos-black.png b/schedule_mail_to_send/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/pos-black.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/puzzle.png b/schedule_mail_to_send/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/puzzle.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/restaurant-black.png b/schedule_mail_to_send/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/restaurant-black.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/service-black.png b/schedule_mail_to_send/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/service-black.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/trading-black.png b/schedule_mail_to_send/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/trading-black.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/training.png b/schedule_mail_to_send/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/training.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/update.png b/schedule_mail_to_send/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/update.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/user.png b/schedule_mail_to_send/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/user.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/wrench.png b/schedule_mail_to_send/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/wrench.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/categories.png b/schedule_mail_to_send/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/categories.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/check-box.png b/schedule_mail_to_send/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/check-box.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/compass.png b/schedule_mail_to_send/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/compass.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/corporate.png b/schedule_mail_to_send/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/corporate.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/customer-support.png b/schedule_mail_to_send/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/customer-support.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/cybrosys-logo.png b/schedule_mail_to_send/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/cybrosys-logo.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/features.png b/schedule_mail_to_send/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/features.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/logo.png b/schedule_mail_to_send/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/logo.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/pictures.png b/schedule_mail_to_send/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/pictures.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/pie-chart.png b/schedule_mail_to_send/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/pie-chart.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/right-arrow.png b/schedule_mail_to_send/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/right-arrow.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/star.png b/schedule_mail_to_send/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/star.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/support.png b/schedule_mail_to_send/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/support.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/whatsapp.png b/schedule_mail_to_send/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/whatsapp.png differ diff --git a/schedule_mail_to_send/static/description/assets/modules/sm01.png b/schedule_mail_to_send/static/description/assets/modules/sm01.png new file mode 100644 index 000000000..9de1176ad Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/sm01.png differ diff --git a/schedule_mail_to_send/static/description/assets/modules/sm02.jpg b/schedule_mail_to_send/static/description/assets/modules/sm02.jpg new file mode 100644 index 000000000..22cfedd70 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/sm02.jpg differ diff --git a/schedule_mail_to_send/static/description/assets/modules/sm03.png b/schedule_mail_to_send/static/description/assets/modules/sm03.png new file mode 100644 index 000000000..cca5c5845 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/sm03.png differ diff --git a/schedule_mail_to_send/static/description/assets/modules/sm04.png b/schedule_mail_to_send/static/description/assets/modules/sm04.png new file mode 100644 index 000000000..42c89de23 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/sm04.png differ diff --git a/schedule_mail_to_send/static/description/assets/modules/sm05.jpg b/schedule_mail_to_send/static/description/assets/modules/sm05.jpg new file mode 100644 index 000000000..9a9c416e0 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/sm05.jpg differ diff --git a/schedule_mail_to_send/static/description/assets/screenshots/hero.gif b/schedule_mail_to_send/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..c0b23cca0 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/screenshots/hero.gif differ diff --git a/schedule_mail_to_send/static/description/assets/screenshots/sm01.png b/schedule_mail_to_send/static/description/assets/screenshots/sm01.png new file mode 100644 index 000000000..c5614d63d Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/screenshots/sm01.png differ diff --git a/schedule_mail_to_send/static/description/assets/screenshots/sm03.png b/schedule_mail_to_send/static/description/assets/screenshots/sm03.png new file mode 100644 index 000000000..7585ad5ef Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/screenshots/sm03.png differ diff --git a/schedule_mail_to_send/static/description/assets/screenshots/sm04.png b/schedule_mail_to_send/static/description/assets/screenshots/sm04.png new file mode 100644 index 000000000..8ef08fc11 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/screenshots/sm04.png differ diff --git a/schedule_mail_to_send/static/description/assets/screenshots/sm05.png b/schedule_mail_to_send/static/description/assets/screenshots/sm05.png new file mode 100644 index 000000000..1f89a7393 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/screenshots/sm05.png differ diff --git a/schedule_mail_to_send/static/description/banner.png b/schedule_mail_to_send/static/description/banner.png new file mode 100644 index 000000000..9a4e2d835 Binary files /dev/null and b/schedule_mail_to_send/static/description/banner.png differ diff --git a/schedule_mail_to_send/static/description/icon.png b/schedule_mail_to_send/static/description/icon.png new file mode 100644 index 000000000..54139f807 Binary files /dev/null and b/schedule_mail_to_send/static/description/icon.png differ diff --git a/schedule_mail_to_send/static/description/index.html b/schedule_mail_to_send/static/description/index.html new file mode 100644 index 000000000..923e7e288 --- /dev/null +++ b/schedule_mail_to_send/static/description/index.html @@ -0,0 +1,539 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Schedule Mail to Send

+

Schedule and send mail

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

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This module provides a function or feature that allows + users to specify a future date and time for sending an email. +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Can easily schedule a mail +
+
+ + Can see the scheduled mail in the planned activity +
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+
+

Schedule Mail button

+

+ On the top of chatter we can see a button named Scheduled Mail

+ +
+
+

A popup wizard

+

+ A wizard will open and in that, specify scheduled time and content of mail

+ +
+
+

In planned activity

+

+ We can see the scheduled mail in the planned activity

+ +
+
+

Received mail

+

+ We can see the mail received on time in our inbox

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

Related + 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

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

Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/schedule_mail_to_send/static/src/js/chatter_topbar.js b/schedule_mail_to_send/static/src/js/chatter_topbar.js new file mode 100644 index 000000000..7079b9a44 --- /dev/null +++ b/schedule_mail_to_send/static/src/js/chatter_topbar.js @@ -0,0 +1,30 @@ +/** @odoo-module **/ +import { registerPatch } from '@mail/model/model_core'; +import core from 'web.core'; +import rpc from 'web.rpc'; +registerPatch({ + name: 'Chatter', + recordMethods: { + //This function is used to open the mail compose window with corresponding followers as recipient of mail + async onClickScheduleMail(ev) { + var followers_list=[] + $.each(this.thread.followers,(index,follower) => { + followers_list.push(follower.partner.id) + }); + const action = { + type: 'ir.actions.act_window', + res_model: 'mail.compose.message', + view_mode: 'form', + views: [[false, 'form']], + name: this.env._t("Send Mail"), + target: 'new', + context: { + default_res_model: this.thread.model, + default_res_id: this.thread.id, + default_partner_ids:followers_list, + }, + }; + this.env.services.action.doAction(action); + }, + }, +}); diff --git a/schedule_mail_to_send/static/src/xml/mail_chatter.xml b/schedule_mail_to_send/static/src/xml/mail_chatter.xml new file mode 100644 index 000000000..3a21df212 --- /dev/null +++ b/schedule_mail_to_send/static/src/xml/mail_chatter.xml @@ -0,0 +1,22 @@ + + + + + + + + + + diff --git a/schedule_mail_to_send/views/mail_compose_message_views.xml b/schedule_mail_to_send/views/mail_compose_message_views.xml new file mode 100644 index 000000000..3782b4406 --- /dev/null +++ b/schedule_mail_to_send/views/mail_compose_message_views.xml @@ -0,0 +1,21 @@ + + + + + + mail.compose.message.view.form.inherit.schedule.mail.to.send + + mail.compose.message + + + + + + +