diff --git a/odoo_advanced_chatter/README.rst b/odoo_advanced_chatter/README.rst new file mode 100644 index 000000000..6d155ed59 --- /dev/null +++ b/odoo_advanced_chatter/README.rst @@ -0,0 +1,43 @@ +.. 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 + +Odoo Advanced Chatter +===================== +This module facilitates effortless scheduling of logs and sending messages. +Additionally, it streamlines recipient management by allowing easy selection from the followers list when sending messages. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: (V17) NIHALA KP, Contact: odoo@cybrosys.com + + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/odoo_advanced_chatter/__init__.py b/odoo_advanced_chatter/__init__.py new file mode 100644 index 000000000..b13e3fa07 --- /dev/null +++ b/odoo_advanced_chatter/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: NIHALA KP() +# +# 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/odoo_advanced_chatter/__manifest__.py b/odoo_advanced_chatter/__manifest__.py new file mode 100644 index 000000000..db4bc8290 --- /dev/null +++ b/odoo_advanced_chatter/__manifest__.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: NIHALA KP() +# +# 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': 'Odoo Advanced Chatter', + 'version': '17.0.1.0.0', + 'category': 'Discuss', + 'summary': 'Schedule Log note and Send Message in Chatter', + 'description': """We have the capability to schedule log notes and send + messages within Chatter.Additionally, followers can be + managed both from the followers list + and directly within the Schedule form.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['web', 'base', 'mail'], + 'data': [ + 'security/ir.model.access.csv', + 'data/ir_cron_data.xml', + 'views/schedule_log_views.xml', + ], + "assets": { + "web.assets_backend": + [ + 'odoo_advanced_chatter/static/src/xml/schedule_log.xml', + 'odoo_advanced_chatter/static/src/js/schedule_mail.js', + 'odoo_advanced_chatter/static/src/xml/followers_check.xml', + 'odoo_advanced_chatter/static/src/js/recipient_list.js', + ] + }, + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/odoo_advanced_chatter/data/ir_cron_data.xml b/odoo_advanced_chatter/data/ir_cron_data.xml new file mode 100644 index 000000000..4fce4400c --- /dev/null +++ b/odoo_advanced_chatter/data/ir_cron_data.xml @@ -0,0 +1,16 @@ + + + + + + Schedule Log Note + + code + model.schedule() + + 1 + minutes + -1 + + + diff --git a/odoo_advanced_chatter/doc/RELEASE_NOTES.md b/odoo_advanced_chatter/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..45af27afa --- /dev/null +++ b/odoo_advanced_chatter/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 22.04.2024 +#### Version 17.0.1.0.0 +#### ADD +- Initial Commit Odoo Advanced Chatter diff --git a/odoo_advanced_chatter/models/__init__.py b/odoo_advanced_chatter/models/__init__.py new file mode 100644 index 000000000..418a18b36 --- /dev/null +++ b/odoo_advanced_chatter/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: NIHALA KP() +# +# 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 schedule_log diff --git a/odoo_advanced_chatter/models/schedule_log.py b/odoo_advanced_chatter/models/schedule_log.py new file mode 100644 index 000000000..253ccc702 --- /dev/null +++ b/odoo_advanced_chatter/models/schedule_log.py @@ -0,0 +1,168 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: NIHALA KP() +# +# 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 models, fields +import datetime + + +class ScheduleLog(models.Model): + """To schedule the log note and message inside the chatter""" + _name = 'schedule.log' + _description = "Schedule log note in chatter" + + body = fields.Html(string="Body", help="Content of the log", required="1") + partner_ids = fields.Many2many('res.partner', string='Recipients', + help='To whom the log is Mentioned') + time = fields.Datetime( + default=lambda self: fields.datetime.now().strftime( + '%Y-%m-%d %H:%M:%S'), + string="Scheduled Time", + help="Time at which the log is scheduled", + required="1") + attachment_ids = fields.Many2many(comodel_name='ir.attachment', + string="Attachments", help="Attachments") + is_log = fields.Boolean(string='Is Log', default=False, + help="To check whether log note or scheduled " + "messages") + model = fields.Char(string='Related Model', help="Related Model") + model_reference = fields.Integer(string="Related Document Id", + help="Related Document Id") + status = fields.Selection([('draft', "Schedule"), ('post', "Post")], + string='Status', default='draft', + help="Status of the Message") + + def action_save(self): + """Display notification when messages are scheduled""" + if self.body: + self.env.registry.clear_cache() + current_time = fields.Datetime.now().replace(second=0) + scheduled_time = fields.Datetime.from_string(self.time).replace( + second=0) + time_difference = abs( + (current_time - scheduled_time).total_seconds()) + acceptable_difference = 5 + if time_difference <= acceptable_difference: + user_id = self.env.user.commercial_partner_id + partner_ids = self.partner_ids.ids + if user_id.id in self.partner_ids.ids: + partner_ids.remove(user_id.id) + model = self.env[self.model].sudo().browse( + self.model_reference) + if not self.is_log: + message = model.message_post( + author_id=self.create_uid.partner_id.id, + email_from=self.create_uid.partner_id.email, + body=self.body, + attachment_ids=self.attachment_ids.ids, + message_type='comment', + subtype_xmlid='mail.mt_comment' + ) + for mail in message.mail_ids: + mail.send() + self.status = 'post' + return { + 'type': 'ir.actions.client', + 'tag': 'reload_context', + } + + else: + message = model.message_post( + author_id=self.create_uid.partner_id.id, + email_from=self.create_uid.partner_id.email, + body=self.body, + partner_ids=partner_ids, + attachment_ids=self.attachment_ids.ids, + ) + + message.notification_ids = [fields.Command.clear()] + message.notification_ids = [fields.Command.create({ + 'res_partner_id': pid + }) for pid in partner_ids] + self.status = 'post' + return { + 'type': 'ir.actions.client', + 'tag': 'reload_context', + } + else: + return { + 'type': 'ir.actions.client', + 'tag': 'display_notification', + 'params': { + 'title': 'Title', + 'message': "Message scheduled successfully.", + 'sticky': True, + 'next': {'type': 'ir.actions.act_window_close'}, + } + } + + def schedule(self): + """To schedule the log note""" + date = datetime.datetime.now() + date_sec = date.replace(second=0).strftime('%Y-%m-%d %H:%M:%S') + date_max = date.replace(second=59).strftime('%Y-%m-%d %H:%M:%S') + scheduled_lognotes = self.env['schedule.log'].search( + [ + ('status', '=', 'draft'), + ('time', '>=', date_sec), + ('time', '<=', date_max), + ] + ) + for rec in scheduled_lognotes: + user_id = rec.env.user.commercial_partner_id + partner_ids = rec.partner_ids.ids + if user_id.id in rec.partner_ids.ids: + partner_ids.remove(user_id.id) + model = self.env[rec.model].sudo().browse( + rec.model_reference) + if not rec.is_log: + message = model.message_post( + author_id=rec.create_uid.partner_id.id, + email_from=rec.create_uid.partner_id.email, + body=rec.body, + attachment_ids=rec.attachment_ids.ids, + message_type='comment', + subtype_xmlid='mail.mt_comment' + ) + for mail in message.mail_ids: + mail.send() + rec.status = 'post' + return { + 'type': 'ir.actions.client', + 'tag': 'reload', + } + else: + message = model.message_post( + author_id=rec.create_uid.partner_id.id, + email_from=rec.create_uid.partner_id.email, + body=rec.body, + partner_ids=partner_ids, + attachment_ids=rec.attachment_ids.ids, + ) + message.notification_ids = [fields.Command.clear()] + message.notification_ids = [fields.Command.create({ + 'res_partner_id': pid + }) for pid in partner_ids] + rec.status = 'post' + return { + 'type': 'ir.actions.client', + 'tag': 'reload_context', + } diff --git a/odoo_advanced_chatter/security/ir.model.access.csv b/odoo_advanced_chatter/security/ir.model.access.csv new file mode 100644 index 000000000..be6bd0bfe --- /dev/null +++ b/odoo_advanced_chatter/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink +access_schedule_log,access_schedule_log,model_schedule_log,base.group_user,1,1,1,1 diff --git a/odoo_advanced_chatter/static/description/assets/icons/check.png b/odoo_advanced_chatter/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/check.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/chevron.png b/odoo_advanced_chatter/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/chevron.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/cogs.png b/odoo_advanced_chatter/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/cogs.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/consultation.png b/odoo_advanced_chatter/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/consultation.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/ecom-black.png b/odoo_advanced_chatter/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/ecom-black.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/education-black.png b/odoo_advanced_chatter/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/education-black.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/hotel-black.png b/odoo_advanced_chatter/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/hotel-black.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/license.png b/odoo_advanced_chatter/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/license.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/lifebuoy.png b/odoo_advanced_chatter/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/lifebuoy.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/manufacturing-black.png b/odoo_advanced_chatter/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/manufacturing-black.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/pos-black.png b/odoo_advanced_chatter/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/pos-black.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/puzzle.png b/odoo_advanced_chatter/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/puzzle.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/restaurant-black.png b/odoo_advanced_chatter/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/restaurant-black.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/service-black.png b/odoo_advanced_chatter/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/service-black.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/trading-black.png b/odoo_advanced_chatter/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/trading-black.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/training.png b/odoo_advanced_chatter/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/training.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/update.png b/odoo_advanced_chatter/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/update.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/user.png b/odoo_advanced_chatter/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/user.png differ diff --git a/odoo_advanced_chatter/static/description/assets/icons/wrench.png b/odoo_advanced_chatter/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/icons/wrench.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/Cybrosys R.png b/odoo_advanced_chatter/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/Cybrosys R.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/categories.png b/odoo_advanced_chatter/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/categories.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/check-box.png b/odoo_advanced_chatter/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/check-box.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/compass.png b/odoo_advanced_chatter/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/compass.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/corporate.png b/odoo_advanced_chatter/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/corporate.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/customer-support.png b/odoo_advanced_chatter/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/customer-support.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/cybrosys-logo.png b/odoo_advanced_chatter/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/cybrosys-logo.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/email.svg b/odoo_advanced_chatter/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/odoo_advanced_chatter/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/odoo_advanced_chatter/static/description/assets/misc/features.png b/odoo_advanced_chatter/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/features.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/logo.png b/odoo_advanced_chatter/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/logo.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/phone.svg b/odoo_advanced_chatter/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/odoo_advanced_chatter/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/odoo_advanced_chatter/static/description/assets/misc/pictures.png b/odoo_advanced_chatter/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/pictures.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/pie-chart.png b/odoo_advanced_chatter/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/pie-chart.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/right-arrow.png b/odoo_advanced_chatter/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/right-arrow.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/star (1) 2.svg b/odoo_advanced_chatter/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/odoo_advanced_chatter/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/odoo_advanced_chatter/static/description/assets/misc/star.png b/odoo_advanced_chatter/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/star.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/support (1) 1.svg b/odoo_advanced_chatter/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/odoo_advanced_chatter/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/odoo_advanced_chatter/static/description/assets/misc/support-email.svg b/odoo_advanced_chatter/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/odoo_advanced_chatter/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/odoo_advanced_chatter/static/description/assets/misc/support.png b/odoo_advanced_chatter/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/support.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/tick-mark.svg b/odoo_advanced_chatter/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/odoo_advanced_chatter/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/odoo_advanced_chatter/static/description/assets/misc/whatsapp 1.svg b/odoo_advanced_chatter/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/odoo_advanced_chatter/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/odoo_advanced_chatter/static/description/assets/misc/whatsapp.png b/odoo_advanced_chatter/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/misc/whatsapp.png differ diff --git a/odoo_advanced_chatter/static/description/assets/misc/whatsapp.svg b/odoo_advanced_chatter/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/odoo_advanced_chatter/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/odoo_advanced_chatter/static/description/assets/modules/1.jpg b/odoo_advanced_chatter/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..0b59ec131 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/modules/1.jpg differ diff --git a/odoo_advanced_chatter/static/description/assets/modules/2.jpg b/odoo_advanced_chatter/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..efebcb605 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/modules/2.jpg differ diff --git a/odoo_advanced_chatter/static/description/assets/modules/3.jpg b/odoo_advanced_chatter/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..1e087eed6 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/modules/3.jpg differ diff --git a/odoo_advanced_chatter/static/description/assets/modules/4.png b/odoo_advanced_chatter/static/description/assets/modules/4.png new file mode 100644 index 000000000..d324f5993 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/modules/4.png differ diff --git a/odoo_advanced_chatter/static/description/assets/modules/5.png b/odoo_advanced_chatter/static/description/assets/modules/5.png new file mode 100644 index 000000000..7cea975b4 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/modules/5.png differ diff --git a/odoo_advanced_chatter/static/description/assets/modules/6.jpg b/odoo_advanced_chatter/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..f0e51267e Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/modules/6.jpg differ diff --git a/odoo_advanced_chatter/static/description/assets/screenshots/hero-v17.gif b/odoo_advanced_chatter/static/description/assets/screenshots/hero-v17.gif new file mode 100644 index 000000000..95420cffc Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/screenshots/hero-v17.gif differ diff --git a/odoo_advanced_chatter/static/description/assets/screenshots/screenshot1.png b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot1.png new file mode 100644 index 000000000..d7aa6f8e4 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot1.png differ diff --git a/odoo_advanced_chatter/static/description/assets/screenshots/screenshot2.png b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot2.png new file mode 100644 index 000000000..c4fb509c5 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot2.png differ diff --git a/odoo_advanced_chatter/static/description/assets/screenshots/screenshot3.png b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot3.png new file mode 100644 index 000000000..57735c506 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot3.png differ diff --git a/odoo_advanced_chatter/static/description/assets/screenshots/screenshot4.png b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot4.png new file mode 100644 index 000000000..bfd935528 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot4.png differ diff --git a/odoo_advanced_chatter/static/description/assets/screenshots/screenshot5.png b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot5.png new file mode 100644 index 000000000..875158c12 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot5.png differ diff --git a/odoo_advanced_chatter/static/description/assets/screenshots/screenshot6.png b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot6.png new file mode 100644 index 000000000..5e41c53f6 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot6.png differ diff --git a/odoo_advanced_chatter/static/description/assets/screenshots/screenshot7.png b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot7.png new file mode 100644 index 000000000..85755b633 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot7.png differ diff --git a/odoo_advanced_chatter/static/description/assets/screenshots/screenshot8.png b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot8.png new file mode 100644 index 000000000..be01eed7b Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot8.png differ diff --git a/odoo_advanced_chatter/static/description/assets/screenshots/screenshot9.png b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot9.png new file mode 100644 index 000000000..5d00f0812 Binary files /dev/null and b/odoo_advanced_chatter/static/description/assets/screenshots/screenshot9.png differ diff --git a/odoo_advanced_chatter/static/description/banner.jpg b/odoo_advanced_chatter/static/description/banner.jpg new file mode 100644 index 000000000..bb668e760 Binary files /dev/null and b/odoo_advanced_chatter/static/description/banner.jpg differ diff --git a/odoo_advanced_chatter/static/description/icon.png b/odoo_advanced_chatter/static/description/icon.png new file mode 100644 index 000000000..53c8270ae Binary files /dev/null and b/odoo_advanced_chatter/static/description/icon.png differ diff --git a/odoo_advanced_chatter/static/description/index.html b/odoo_advanced_chatter/static/description/index.html new file mode 100644 index 000000000..c18570a35 --- /dev/null +++ b/odoo_advanced_chatter/static/description/index.html @@ -0,0 +1,791 @@ + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Odoo Advanced Chatter

+

+ This module simplifies log scheduling, enables easy message + sending, and streamlines recipient selection + from the followers list.

+ +
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Schedule Log Notes

+

This module + allows for the scheduling of log notes + within the Chatter.

+
+
+
+
+
+
+ +
+
+

+ Schedule Send Message.

+

+ This module allows for the scheduling of Send + Messages within the Chatter . +

+
+
+
+
+
+
+ +
+
+

+ Manage Followers.

+

Recipients + can be managed seamlessly from the Followers + list + when sending messages using this module. +

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

+ Add button inside the chatter schedule send + message and log notes.

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

+ A wizard, accessible by clicking the icon, + opens + up, providing a user-friendly interface + for setting the date.

+
+
+
+
+
+
+ +
+
+

+ We can see the scheduled message in the + chatter.

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

+ Clicking the icon within the log note opens + a + wizard, facilitating the scheduling of the + log note.

+
+
+
+
+
+
+ +
+
+

+ An added feature includes a checkbox in the + followers list, offering the option to + disable it if one chooses not to send a + message.."

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

+ In the recipient list, the disabled option + is no + longer visible, signifying its + removal.

+
+
+
+
+ +
+
+
    +
  • + Schedule Log + note +
  • +
  • + Schdeule Send + Messages + Structure. +
  • +
  • + Manage the + Recipients from the followers list + Slips. +
      +
    • +
    • +
    +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on: 30th May 2024 +
+

+ + Initial Commit for Odoo Advanced Chatter

+
+
+
+
+
+
+
+

+ 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/odoo_advanced_chatter/static/src/js/recipient_list.js b/odoo_advanced_chatter/static/src/js/recipient_list.js new file mode 100644 index 000000000..39598858c --- /dev/null +++ b/odoo_advanced_chatter/static/src/js/recipient_list.js @@ -0,0 +1,23 @@ +/** @odoo-module **/ +import { FollowerList } from "@mail/core/web/follower_list"; +import { patch } from "@web/core/utils/patch"; +import { useState } from "@odoo/owl"; +//----select the followers from the list +patch(FollowerList.prototype, { + setup() { + super.setup(); + this.state = useState({ + id:[] + }); + }, + async check(ev, follower){ + var index = this.state.id.indexOf(follower.partner.id) + if (this.state.id.includes(follower.partner.id)){ + this.state.id.splice(index, 1) + } + else{ + this.state.id.push(follower.partner.id) + } + this.threadService.check = this.state.id + } +}) \ No newline at end of file diff --git a/odoo_advanced_chatter/static/src/js/schedule_mail.js b/odoo_advanced_chatter/static/src/js/schedule_mail.js new file mode 100644 index 000000000..b5e909a4e --- /dev/null +++ b/odoo_advanced_chatter/static/src/js/schedule_mail.js @@ -0,0 +1,90 @@ +/** @odoo-module **/ +import { Composer } from "@mail/core/common/composer"; +import { patch } from "@web/core/utils/patch"; +import { prettifyMessageContent, escapeAndCompactTextContent } from "@mail/utils/common/format"; +import { useRef } from "@odoo/owl"; +patch(Composer.prototype, { +setup() { + super.setup(); + }, + async scheduleLogNote(){ + // ------to schedule lognote ------------- + const model = this.thread.model; + const id = this.thread.id; + const message = this.props.composer.textInputContent; + const attachments = this.props.composer.attachments.map((attachment) => attachment.id); + const recipient = this.threadService.check; + const mentioned_list = []; + const validMentions = this.store.user + ? this.messageService.getMentionsFromText(message, { + mentionedChannels: this.props.composer.mentionedChannels, + mentionedPartners: this.props.composer.mentionedPartners, + }) + : undefined; + $.each(validMentions.partners,(index,mentions) => { + mentioned_list.push(mentions.id) + }); + var followers_list=[] + $.each( this.props.composer.thread.followers,(index,follower) => { + followers_list.push(follower.partner.id) + }); + if (recipient){ + recipient.forEach(item=>{ + const index = followers_list.indexOf(item); + if (index !== -1) { + followers_list.splice(index, 1); + } + }) + } + if (this.props.type === "note" ){ + const action = { + type: 'ir.actions.act_window', + res_model:'schedule.log', + domain: [], + views: [ [false, "form"],[false, "list"],], + name: "Schedule log", + target: 'new', + context: { + default_body: await prettifyMessageContent(message, validMentions), + default_attachment_ids:attachments , + default_partner_ids:mentioned_list, + default_is_log:1, + default_model:model, + default_model_reference:id, + default_subtype_xmlid: "mail.mt_note", + }, + }; + this.env.services.action.doAction( + action, + { + } + ); + this.clear() + } + else{ + const action = { + type: 'ir.actions.act_window', + res_model:'schedule.log', + domain: [], + views: [ [false, "form"],[false, "list"],], + name: "Schedule Message", + target: 'new', + context: { + default_body:message, + default_attachment_ids:attachments , + default_partner_ids:followers_list, + default_is_log:0, + default_model:model, + default_model_reference:id, + }, + }; + this.env.services.action.doAction( + action, + { + } + ); + this.clear() + } + } + +}) \ No newline at end of file diff --git a/odoo_advanced_chatter/static/src/xml/followers_check.xml b/odoo_advanced_chatter/static/src/xml/followers_check.xml new file mode 100644 index 000000000..3bb440d84 --- /dev/null +++ b/odoo_advanced_chatter/static/src/xml/followers_check.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/odoo_advanced_chatter/static/src/xml/schedule_log.xml b/odoo_advanced_chatter/static/src/xml/schedule_log.xml new file mode 100644 index 000000000..57cdf8143 --- /dev/null +++ b/odoo_advanced_chatter/static/src/xml/schedule_log.xml @@ -0,0 +1,10 @@ + + + + + +