diff --git a/schedule_mail_to_send/README.rst b/schedule_mail_to_send/README.rst new file mode 100644 index 000000000..5dff50d29 --- /dev/null +++ b/schedule_mail_to_send/README.rst @@ -0,0 +1,53 @@ +.. 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 + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +* Developers:(V16) Anjana P V, + (V17) Sabeel B, + (V18) Manasa T P +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..6eeac8379 --- /dev/null +++ b/schedule_mail_to_send/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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..7a7b2f948 --- /dev/null +++ b/schedule_mail_to_send/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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': '18.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..01ec8bdf2 --- /dev/null +++ b/schedule_mail_to_send/data/ir_cron_data.xml @@ -0,0 +1,15 @@ + + + + + + Mail: Schedule And Send + + code + model.action_send_scheduled_mail() + + 1 + minutes + + + 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..20c69e0f4 --- /dev/null +++ b/schedule_mail_to_send/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 18.06.2025 +#### Version 18.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..698be5cd3 --- /dev/null +++ b/schedule_mail_to_send/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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..62848f94b --- /dev/null +++ b/schedule_mail_to_send/models/mail_activity.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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..fd726712e --- /dev/null +++ b/schedule_mail_to_send/models/mail_compose_message.py @@ -0,0 +1,135 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-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, + }) + # Get the user's timezone (fallback to UTC if not set) + user_tz = self.env.context.get('tz') or self.env.user.tz or 'UTC' + + # Get current UTC time and convert to user's timezone + utc_current_datetime = fields.Datetime.now() # Naive UTC datetime + local_current_datetime = fields.Datetime.context_timestamp( + self.with_context(tz=user_tz), timestamp=utc_current_datetime + ) + + # Handle schedule_time (assumed to be UTC in the database) + schedule_time = self.schedule_time + + if isinstance(schedule_time, str): + # If schedule_time is a string, parse it to datetime (assuming UTC) + schedule_time = fields.Datetime.from_string(schedule_time) + + # Convert schedule_time to user's timezone + if schedule_time: + schedule_time = fields.Datetime.context_timestamp( + self.with_context(tz=user_tz), timestamp=schedule_time + ) + else: + raise UserError('Invalid Schedule time') + # Truncate seconds for comparison (to match your original logic) + local_current_datetime = local_current_datetime.replace(second=0, + microsecond=0) + schedule_time = schedule_time.replace(second=0, microsecond=0) + # Validate schedule time + if schedule_time < local_current_datetime: + raise UserError('Scheduled time cannot be in the past') + 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 action_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/cybro-icon.png b/schedule_mail_to_send/static/description/assets/cybro-icon.png new file mode 100755 index 000000000..06e73e11d Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/cybro-icon.png differ diff --git a/schedule_mail_to_send/static/description/assets/cybro-odoo.png b/schedule_mail_to_send/static/description/assets/cybro-odoo.png new file mode 100755 index 000000000..ed02e07a4 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/cybro-odoo.png differ diff --git a/schedule_mail_to_send/static/description/assets/h2.png b/schedule_mail_to_send/static/description/assets/h2.png new file mode 100755 index 000000000..0bfc4707d Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/h2.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/arrows-repeat.svg b/schedule_mail_to_send/static/description/assets/icons/arrows-repeat.svg new file mode 100755 index 000000000..1d7efabc5 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/banner-1.png b/schedule_mail_to_send/static/description/assets/icons/banner-1.png new file mode 100755 index 000000000..c180db172 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/banner-1.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/banner-2.svg b/schedule_mail_to_send/static/description/assets/icons/banner-2.svg new file mode 100755 index 000000000..e606d97d9 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/banner-bg.png b/schedule_mail_to_send/static/description/assets/icons/banner-bg.png new file mode 100755 index 000000000..a8238d3c0 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/banner-bg.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/banner-bg.svg b/schedule_mail_to_send/static/description/assets/icons/banner-bg.svg new file mode 100755 index 000000000..b1378103e --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/banner-call.svg b/schedule_mail_to_send/static/description/assets/icons/banner-call.svg new file mode 100755 index 000000000..96c687e81 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/banner-mail.svg b/schedule_mail_to_send/static/description/assets/icons/banner-mail.svg new file mode 100755 index 000000000..cbf0d158d --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/banner-pattern.svg b/schedule_mail_to_send/static/description/assets/icons/banner-pattern.svg new file mode 100755 index 000000000..9c1c7e101 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/banner-promo.svg b/schedule_mail_to_send/static/description/assets/icons/banner-promo.svg new file mode 100755 index 000000000..d52791b11 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/brand-pair.svg b/schedule_mail_to_send/static/description/assets/icons/brand-pair.svg new file mode 100755 index 000000000..d8db7fc1e --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 100755 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 100755 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/close-icon.svg b/schedule_mail_to_send/static/description/assets/icons/close-icon.svg new file mode 100755 index 000000000..df8cce37a --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + 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 100755 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/collabarate-icon.svg b/schedule_mail_to_send/static/description/assets/icons/collabarate-icon.svg new file mode 100755 index 000000000..dd4e10518 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + 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 100755 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/cybro-logo.png b/schedule_mail_to_send/static/description/assets/icons/cybro-logo.png new file mode 100755 index 000000000..ff4b78220 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/cybro-logo.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/down.svg b/schedule_mail_to_send/static/description/assets/icons/down.svg new file mode 100755 index 000000000..f21c36271 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file 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 100755 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 100755 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/faq.png b/schedule_mail_to_send/static/description/assets/icons/faq.png new file mode 100755 index 000000000..4250b5b81 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/faq.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/feature-icon.svg b/schedule_mail_to_send/static/description/assets/icons/feature-icon.svg new file mode 100755 index 000000000..fa0ea6850 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/feature.png b/schedule_mail_to_send/static/description/assets/icons/feature.png new file mode 100755 index 000000000..ac7a785c0 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/feature.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/gear.svg b/schedule_mail_to_send/static/description/assets/icons/gear.svg new file mode 100755 index 000000000..0cc66b6ea --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/hero.gif b/schedule_mail_to_send/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..dc2b77085 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/hero.gif differ diff --git a/schedule_mail_to_send/static/description/assets/icons/hire-odoo.svg b/schedule_mail_to_send/static/description/assets/icons/hire-odoo.svg new file mode 100755 index 000000000..e1ac089b0 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + 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 100755 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 100755 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/life-ring-icon.svg b/schedule_mail_to_send/static/description/assets/icons/life-ring-icon.svg new file mode 100755 index 000000000..3ae6e1d89 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + 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 100755 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/mail.svg b/schedule_mail_to_send/static/description/assets/icons/mail.svg new file mode 100755 index 000000000..1eedde695 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + 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 100755 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/notes.png b/schedule_mail_to_send/static/description/assets/icons/notes.png new file mode 100755 index 000000000..ee5e95404 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/notes.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/notification icon.svg b/schedule_mail_to_send/static/description/assets/icons/notification icon.svg new file mode 100755 index 000000000..053189973 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/odoo-consultancy.svg b/schedule_mail_to_send/static/description/assets/icons/odoo-consultancy.svg new file mode 100755 index 000000000..e05f65bde --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/odoo-licencing.svg b/schedule_mail_to_send/static/description/assets/icons/odoo-licencing.svg new file mode 100755 index 000000000..2606c88b0 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/odoo-logo.png b/schedule_mail_to_send/static/description/assets/icons/odoo-logo.png new file mode 100755 index 000000000..0e4d0eb5a Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/odoo-logo.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/patter.svg b/schedule_mail_to_send/static/description/assets/icons/patter.svg new file mode 100755 index 000000000..25c9c0a8f --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/pattern1.png b/schedule_mail_to_send/static/description/assets/icons/pattern1.png new file mode 100755 index 000000000..09ab0fb2d Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/pattern1.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 100755 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-piece-icon.svg b/schedule_mail_to_send/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100755 index 000000000..3e9ad9373 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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 100755 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/replace-icon.svg b/schedule_mail_to_send/static/description/assets/icons/replace-icon.svg new file mode 100755 index 000000000..d0e3a7af1 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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 100755 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/screenshot-main.png b/schedule_mail_to_send/static/description/assets/icons/screenshot-main.png new file mode 100755 index 000000000..575f8e676 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/screenshot-main.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/screenshot.png b/schedule_mail_to_send/static/description/assets/icons/screenshot.png new file mode 100755 index 000000000..cef272529 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/screenshot.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 100755 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/skype-fill.svg b/schedule_mail_to_send/static/description/assets/icons/skype-fill.svg new file mode 100755 index 000000000..c17423639 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/skype.png b/schedule_mail_to_send/static/description/assets/icons/skype.png new file mode 100755 index 000000000..51b409fb3 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/skype.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/skype.svg b/schedule_mail_to_send/static/description/assets/icons/skype.svg new file mode 100755 index 000000000..df3dad39b --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/star-1.svg b/schedule_mail_to_send/static/description/assets/icons/star-1.svg new file mode 100755 index 000000000..7e55ab162 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/star-2.svg b/schedule_mail_to_send/static/description/assets/icons/star-2.svg new file mode 100755 index 000000000..5ae9f507a --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/schedule_mail_to_send/static/description/assets/icons/support.png b/schedule_mail_to_send/static/description/assets/icons/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/support.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/test-1 - Copy.png b/schedule_mail_to_send/static/description/assets/icons/test-1 - Copy.png new file mode 100755 index 000000000..f6a902663 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/test-1 - Copy.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/test-1.png b/schedule_mail_to_send/static/description/assets/icons/test-1.png new file mode 100755 index 000000000..0908add2b Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/test-1.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/test-2.png b/schedule_mail_to_send/static/description/assets/icons/test-2.png new file mode 100755 index 000000000..4671fe91e Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/test-2.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 100755 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 100755 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/translate.svg b/schedule_mail_to_send/static/description/assets/icons/translate.svg new file mode 100755 index 000000000..af9c8a1aa --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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 100755 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 100755 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/video.png b/schedule_mail_to_send/static/description/assets/icons/video.png new file mode 100755 index 000000000..576705b17 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/video.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/whatsapp.png b/schedule_mail_to_send/static/description/assets/icons/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/icons/whatsapp.png differ diff --git a/schedule_mail_to_send/static/description/assets/icons/wrench-icon.svg b/schedule_mail_to_send/static/description/assets/icons/wrench-icon.svg new file mode 100755 index 000000000..174b5a465 --- /dev/null +++ b/schedule_mail_to_send/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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 100755 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/modules/1.jpg b/schedule_mail_to_send/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..3cb15fe01 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/1.jpg differ diff --git a/schedule_mail_to_send/static/description/assets/modules/2.jpg b/schedule_mail_to_send/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..662cadcc3 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/2.jpg differ diff --git a/schedule_mail_to_send/static/description/assets/modules/3.jpg b/schedule_mail_to_send/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..717a00443 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/3.jpg differ diff --git a/schedule_mail_to_send/static/description/assets/modules/4.png b/schedule_mail_to_send/static/description/assets/modules/4.png new file mode 100644 index 000000000..00ebf54ad Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/4.png differ diff --git a/schedule_mail_to_send/static/description/assets/modules/5.jpg b/schedule_mail_to_send/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..7c67e2eec Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/5.jpg differ diff --git a/schedule_mail_to_send/static/description/assets/modules/6.gif b/schedule_mail_to_send/static/description/assets/modules/6.gif new file mode 100644 index 000000000..a35ece8df Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/modules/6.gif differ diff --git a/schedule_mail_to_send/static/description/assets/screenshots/1.png b/schedule_mail_to_send/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..deb5efa64 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/screenshots/1.png differ diff --git a/schedule_mail_to_send/static/description/assets/screenshots/2.png b/schedule_mail_to_send/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..cfa0a3eca Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/screenshots/2.png differ diff --git a/schedule_mail_to_send/static/description/assets/screenshots/3.png b/schedule_mail_to_send/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..f7fe2bf0a Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/screenshots/3.png differ diff --git a/schedule_mail_to_send/static/description/assets/screenshots/4.png b/schedule_mail_to_send/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..8181a1ce3 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/screenshots/4.png differ diff --git a/schedule_mail_to_send/static/description/assets/y18.jpg b/schedule_mail_to_send/static/description/assets/y18.jpg new file mode 100755 index 000000000..eea1714f2 Binary files /dev/null and b/schedule_mail_to_send/static/description/assets/y18.jpg 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..304cae8a1 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..496e4bf9a 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..fef25f827 --- /dev/null +++ b/schedule_mail_to_send/static/description/index.html @@ -0,0 +1,998 @@ + + + + + + Schedule Mail to Send + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+
+

+ Schedule and send mail +

+

Schedule Mail to Send +

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

Key + Highlights

+
+
+
+
+ +
+
+ Easy Mail Scheduling +
+

+ Allows users to schedule emails effortlessly + for future delivery directly from the + chatter.

+
+
+
+
+
+ +
+
+ Integration with Planned Activities +
+

+ Displays the scheduled email as a planned + activity in the chatter, ensuring visibility + and timely follow-up. +

+
+
+
+
+ +
+
+
+ Schedule Mail to Send +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

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

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

+ Easily schedule emails to be + sent at a later time from any + record. +

+
+ +
+
+
+
+
+
+ +
+

+ View scheduled emails as planned + activities in the chatter. +

+
+
+
+
+
+
+
+ +
+

+ Available in Odoo 18.0 Community + and Enterprise.

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

+ It allows users to + schedule emails to + be sent at a later + date and time, and + shows them as + planned activities + in the chatter.

+
+
+ +
+ +
+

+ Yes, you can select + multiple partners as + recipients when + scheduling the + email. +

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

+ Latest Release 18.0.1.0.0 +

+ + 18th June, 2025 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + 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..1d4b4a660 --- /dev/null +++ b/schedule_mail_to_send/static/src/js/chatter_topbar.js @@ -0,0 +1,29 @@ +/** @odoo-module **/ +import { Chatter } from "@mail/chatter/web_portal/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) { + console.log('onClickScheduleMail') + const followers_list = this.state.thread.followers.map(follower => 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..1cb64cb30 --- /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 + + + + + + +