diff --git a/schedule_mail_to_send/README.rst b/schedule_mail_to_send/README.rst new file mode 100644 index 000000000..daf613261 --- /dev/null +++ b/schedule_mail_to_send/README.rst @@ -0,0 +1,52 @@ +.. 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/17.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, + (V17) Sabeel B +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..4f9260ff0 --- /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': '17.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.jpg'], + '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..0bb05f5bb --- /dev/null +++ b/schedule_mail_to_send/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 19.04.2024 +#### Version 17.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..f32e3f319 --- /dev/null +++ b/schedule_mail_to_send/models/mail_compose_message.py @@ -0,0 +1,118 @@ +# -*- 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, + }) + 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_ids'] + 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) diff --git a/schedule_mail_to_send/static/description/assets/icons/capture (1).png b/schedule_mail_to_send/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/capture (1).png differ 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/img.png b/schedule_mail_to_send/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/img.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/photo-capture.png b/schedule_mail_to_send/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/photo-capture.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/Cybrosys R.png b/schedule_mail_to_send/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/misc/Cybrosys R.png differ diff --git a/schedule_mail_to_send/static/description/assets/misc/email.svg b/schedule_mail_to_send/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/misc/phone.svg b/schedule_mail_to_send/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/schedule_mail_to_send/static/description/assets/misc/star (1) 2.svg b/schedule_mail_to_send/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/misc/support (1) 1.svg b/schedule_mail_to_send/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/misc/support-email.svg b/schedule_mail_to_send/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/misc/tick-mark.svg b/schedule_mail_to_send/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/misc/whatsapp 1.svg b/schedule_mail_to_send/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/misc/whatsapp.svg b/schedule_mail_to_send/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/modules/1.png b/schedule_mail_to_send/static/description/assets/modules/1.png new file mode 100644 index 000000000..0e311ca87 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/1.png differ diff --git a/schedule_mail_to_send/static/description/assets/modules/2.png b/schedule_mail_to_send/static/description/assets/modules/2.png new file mode 100644 index 000000000..a0ac2d840 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/2.png differ diff --git a/schedule_mail_to_send/static/description/assets/modules/3.png b/schedule_mail_to_send/static/description/assets/modules/3.png new file mode 100644 index 000000000..cb17cf612 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/3.png differ diff --git a/schedule_mail_to_send/static/description/assets/modules/4.jpg b/schedule_mail_to_send/static/description/assets/modules/4.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/4.jpg differ diff --git a/schedule_mail_to_send/static/description/assets/modules/5.png b/schedule_mail_to_send/static/description/assets/modules/5.png new file mode 100644 index 000000000..8513873ea Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/5.png differ diff --git a/schedule_mail_to_send/static/description/assets/modules/6.jpg b/schedule_mail_to_send/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..73781cf50 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/6.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..7f656d22d 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/scrn_001.png b/schedule_mail_to_send/static/description/assets/screenshots/scrn_001.png new file mode 100644 index 000000000..b417a55a0 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/screenshots/scrn_001.png differ diff --git a/schedule_mail_to_send/static/description/assets/screenshots/scrn_002.png b/schedule_mail_to_send/static/description/assets/screenshots/scrn_002.png new file mode 100644 index 000000000..e50c61dae Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/screenshots/scrn_002.png differ diff --git a/schedule_mail_to_send/static/description/assets/screenshots/scrn_003.png b/schedule_mail_to_send/static/description/assets/screenshots/scrn_003.png new file mode 100644 index 000000000..5ada70b03 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/screenshots/scrn_003.png differ diff --git a/schedule_mail_to_send/static/description/assets/screenshots/scrn_004.png b/schedule_mail_to_send/static/description/assets/screenshots/scrn_004.png new file mode 100644 index 000000000..35f9c581f Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/screenshots/scrn_004.png 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.jpg b/schedule_mail_to_send/static/description/banner.jpg new file mode 100644 index 000000000..2b194cb14 Binary files /dev/null and b/schedule_mail_to_send/static/description/banner.jpg 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..d345e4478 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..577806d0d --- /dev/null +++ b/schedule_mail_to_send/static/description/index.html @@ -0,0 +1,570 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Schedule Mail to Send

+

+ Schedule and send mail. +

+
+ +
+
+
+
+
+

Key Highlights +

+
+
+
+
+
+ +
+
+

Can easily schedule a mail

+ +
+
+
+
+
+
+ +
+
+

Can see the scheduled mail in the planned activity

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

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

+
+
+
+
+
+
+
    +
  • + Easy Configuration. +
  • +
  • + Schedule a Mail to Send +
  • +
  • + Display in Planned Activity. +
  • + +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:04th April 2024 +
+

+ + Initial Commit for Schedule Mail to Send.

+
+
+
+
+
+
+
+

Related Products

+
+
+ +
+
+

Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686
+
+
+
+
+
+
+
+
+ + + + + + 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..9f267967a --- /dev/null +++ b/schedule_mail_to_send/static/src/js/chatter_topbar.js @@ -0,0 +1,31 @@ +/** @odoo-module **/ +import { Chatter } from "@mail/core/web/chatter"; +import { patch } from "@web/core/utils/patch"; +import { _t } from "@web/core/l10n/translation"; + +patch(Chatter.prototype, { + /** + * @override + * @param {onClickScheduleMail} ev + */ + async onClickScheduleMail(ev) { + var followers_list=[] + $.each(this.state.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: _t("Send Mail"), + target: 'new', + context: { + default_res_model: this.state.thread.model, + default_res_ids: [this.state.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..598f7b9aa --- /dev/null +++ b/schedule_mail_to_send/static/src/xml/mail_chatter.xml @@ -0,0 +1,21 @@ + + + + + + + + + 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..4d7c13a19 --- /dev/null +++ b/schedule_mail_to_send/views/mail_compose_message_views.xml @@ -0,0 +1,22 @@ + + + + + + mail.compose.message.view.form.inherit.schedule.mail.to.send + + mail.compose.message + + + + + + +