diff --git a/chat_quick_reply/README.rst b/chat_quick_reply/README.rst new file mode 100755 index 000000000..746d04144 --- /dev/null +++ b/chat_quick_reply/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Chat Quick Reply +================ +This module to reply to chat from the Notification itself. + +Configuration +============= +* No additional configurations needed + +License +------- +Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: +(V15) Sahla Sherin, +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/chat_quick_reply/__init__.py b/chat_quick_reply/__init__.py new file mode 100644 index 000000000..72404a6e5 --- /dev/null +++ b/chat_quick_reply/__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 AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import controllers diff --git a/chat_quick_reply/__manifest__.py b/chat_quick_reply/__manifest__.py new file mode 100644 index 000000000..df3ee3750 --- /dev/null +++ b/chat_quick_reply/__manifest__.py @@ -0,0 +1,46 @@ +# -*- 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 AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Chat Quick Reply', + 'version': '15.0.1.0.0', + 'category': 'Extra Tools', + 'summary': """To reply to the chat from the Notification itself.""", + 'description': "This module to reply to chat from the Notification itself.", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['mail'], + 'assets': { + 'web.assets_qweb': [ + 'chat_quick_reply/static/src/core/web/messaging_menu.xml', + ], + 'web.assets_backend': [ + 'chat_quick_reply/static/src/core/web/messaging_menu.js', + ] + }, + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/chat_quick_reply/controllers/__init__.py b/chat_quick_reply/controllers/__init__.py new file mode 100644 index 000000000..8261df119 --- /dev/null +++ b/chat_quick_reply/controllers/__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 AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import main diff --git a/chat_quick_reply/controllers/main.py b/chat_quick_reply/controllers/main.py new file mode 100644 index 000000000..3b84386c9 --- /dev/null +++ b/chat_quick_reply/controllers/main.py @@ -0,0 +1,38 @@ +# -*- 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 AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +import json + +from odoo import http +from odoo.http import request + + +class MessagePost(http.Controller): + + @http.route('/message/post', methods=['POST'], type='json', auth='public') + def message_post(self, thread_model, thread_id, post_data): + """ + this function is for message sending + """ + data = json.loads(request.httprequest.data) + channel = request.env['mail.channel'].browse(int(thread_id)) + channel.message_post(body=post_data['body'], message_type='comment', + subtype_xmlid='mail.mt_comment') diff --git a/chat_quick_reply/doc/RELEASE_NOTES.md b/chat_quick_reply/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..0df859710 --- /dev/null +++ b/chat_quick_reply/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 27.04.2024 +#### Version 27.0.1.0.0 +##### ADD +- Initial commit for Chat Quick Reply diff --git a/chat_quick_reply/static/description/assets/icons/check.png b/chat_quick_reply/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/check.png differ diff --git a/chat_quick_reply/static/description/assets/icons/chevron.png b/chat_quick_reply/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/chevron.png differ diff --git a/chat_quick_reply/static/description/assets/icons/cogs.png b/chat_quick_reply/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/cogs.png differ diff --git a/chat_quick_reply/static/description/assets/icons/consultation.png b/chat_quick_reply/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/consultation.png differ diff --git a/chat_quick_reply/static/description/assets/icons/ecom-black.png b/chat_quick_reply/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/ecom-black.png differ diff --git a/chat_quick_reply/static/description/assets/icons/education-black.png b/chat_quick_reply/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/education-black.png differ diff --git a/chat_quick_reply/static/description/assets/icons/hotel-black.png b/chat_quick_reply/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/hotel-black.png differ diff --git a/chat_quick_reply/static/description/assets/icons/license.png b/chat_quick_reply/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/license.png differ diff --git a/chat_quick_reply/static/description/assets/icons/lifebuoy.png b/chat_quick_reply/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/lifebuoy.png differ diff --git a/chat_quick_reply/static/description/assets/icons/logo.png b/chat_quick_reply/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/logo.png differ diff --git a/chat_quick_reply/static/description/assets/icons/manufacturing-black.png b/chat_quick_reply/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/manufacturing-black.png differ diff --git a/chat_quick_reply/static/description/assets/icons/pos-black.png b/chat_quick_reply/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/pos-black.png differ diff --git a/chat_quick_reply/static/description/assets/icons/puzzle.png b/chat_quick_reply/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/puzzle.png differ diff --git a/chat_quick_reply/static/description/assets/icons/restaurant-black.png b/chat_quick_reply/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/restaurant-black.png differ diff --git a/chat_quick_reply/static/description/assets/icons/service-black.png b/chat_quick_reply/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/service-black.png differ diff --git a/chat_quick_reply/static/description/assets/icons/trading-black.png b/chat_quick_reply/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/trading-black.png differ diff --git a/chat_quick_reply/static/description/assets/icons/training.png b/chat_quick_reply/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/training.png differ diff --git a/chat_quick_reply/static/description/assets/icons/update.png b/chat_quick_reply/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/update.png differ diff --git a/chat_quick_reply/static/description/assets/icons/user.png b/chat_quick_reply/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/user.png differ diff --git a/chat_quick_reply/static/description/assets/icons/wrench.png b/chat_quick_reply/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/chat_quick_reply/static/description/assets/icons/wrench.png differ diff --git a/chat_quick_reply/static/description/assets/modules/approval_image.png b/chat_quick_reply/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/chat_quick_reply/static/description/assets/modules/approval_image.png differ diff --git a/chat_quick_reply/static/description/assets/modules/budget_image.png b/chat_quick_reply/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..fe6aa6fe4 Binary files /dev/null and b/chat_quick_reply/static/description/assets/modules/budget_image.png differ diff --git a/chat_quick_reply/static/description/assets/modules/gantt_image.png b/chat_quick_reply/static/description/assets/modules/gantt_image.png new file mode 100644 index 000000000..4810fc34d Binary files /dev/null and b/chat_quick_reply/static/description/assets/modules/gantt_image.png differ diff --git a/chat_quick_reply/static/description/assets/modules/library_image.png b/chat_quick_reply/static/description/assets/modules/library_image.png new file mode 100644 index 000000000..77be44d63 Binary files /dev/null and b/chat_quick_reply/static/description/assets/modules/library_image.png differ diff --git a/chat_quick_reply/static/description/assets/modules/pos_order_image.png b/chat_quick_reply/static/description/assets/modules/pos_order_image.png new file mode 100644 index 000000000..1217263a6 Binary files /dev/null and b/chat_quick_reply/static/description/assets/modules/pos_order_image.png differ diff --git a/chat_quick_reply/static/description/assets/modules/whatsapp_image.gif b/chat_quick_reply/static/description/assets/modules/whatsapp_image.gif new file mode 100644 index 000000000..4c0c52982 Binary files /dev/null and b/chat_quick_reply/static/description/assets/modules/whatsapp_image.gif differ diff --git a/chat_quick_reply/static/description/assets/screenshots/doc1.png b/chat_quick_reply/static/description/assets/screenshots/doc1.png new file mode 100644 index 000000000..25f22393b Binary files /dev/null and b/chat_quick_reply/static/description/assets/screenshots/doc1.png differ diff --git a/chat_quick_reply/static/description/assets/screenshots/doc2.png b/chat_quick_reply/static/description/assets/screenshots/doc2.png new file mode 100644 index 000000000..9b6078060 Binary files /dev/null and b/chat_quick_reply/static/description/assets/screenshots/doc2.png differ diff --git a/chat_quick_reply/static/description/assets/screenshots/doc3.png b/chat_quick_reply/static/description/assets/screenshots/doc3.png new file mode 100644 index 000000000..b5d81ca21 Binary files /dev/null and b/chat_quick_reply/static/description/assets/screenshots/doc3.png differ diff --git a/chat_quick_reply/static/description/assets/screenshots/hero.gif b/chat_quick_reply/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..a29e0f216 Binary files /dev/null and b/chat_quick_reply/static/description/assets/screenshots/hero.gif differ diff --git a/chat_quick_reply/static/description/banner.jpg b/chat_quick_reply/static/description/banner.jpg new file mode 100644 index 000000000..7184b9829 Binary files /dev/null and b/chat_quick_reply/static/description/banner.jpg differ diff --git a/chat_quick_reply/static/description/icon.png b/chat_quick_reply/static/description/icon.png new file mode 100644 index 000000000..aabc24441 Binary files /dev/null and b/chat_quick_reply/static/description/icon.png differ diff --git a/chat_quick_reply/static/description/index.html b/chat_quick_reply/static/description/index.html new file mode 100644 index 000000000..7dd772e34 --- /dev/null +++ b/chat_quick_reply/static/description/index.html @@ -0,0 +1,561 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+
+

+ Chat Quick Reply

+

+ To reply to the chat from the Notification itself. +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ This module helps to send the reply quickly to the chatter +

+ +
+
+ +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Chat Qick Reply

+

+ This Module helps us to give quick reply to the chat

+
+
+ +
+ +
+
+

+ Screenshots +

+
+ +
+

+ Along with the received message, there's a 'Reply' button. By using that button, you can easily send a reply."

+ +
+ +
+

+ You can type your message and press the enter key on the keyboard. +

+ +
+ + +
+

+ Once the key is pressed, you could see the replied message in the chat +

+ +
+ +
+ + +
+
+

Suggested Products

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

Our Services

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

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

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

+ Mobile + friendly, + awe-inspiring product pages

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

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

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

+ An + all-inclusive + hotel management application

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/chat_quick_reply/static/src/core/web/messaging_menu.js b/chat_quick_reply/static/src/core/web/messaging_menu.js new file mode 100644 index 000000000..636579d78 --- /dev/null +++ b/chat_quick_reply/static/src/core/web/messaging_menu.js @@ -0,0 +1,52 @@ +/** @odoo-module **/ + +import * as mailUtils from '@mail/js/utils'; + +import { useService } from "@web/core/utils/hooks"; +const { Component } = owl; +import { ThreadPreview } from '@mail/components/thread_preview/thread_preview' +import { patch } from 'web.utils'; +import emojis from '@mail/js/emojis'; +patch(ThreadPreview.prototype, 'chat_quick_reply', { + + setup() { + this._super(); + this.emojis = emojis + this.rpc = useService("rpc"); + + }, + _onClickQuickReply(ev) { + this.el.querySelector('.quick_reply').style.display = 'flex'; + }, + composeMessage(ev){ + }, + onClickEmoji(ev){ + $('#EmojiContainer')[0].classList.toggle('d-none') + var div_display = this.el.querySelector('#EmojiContainer').style + div_display.display = "block"; + }, + emojiSelect(emoji) { + const currentValue = $('#reply_message').val(); + const updatedValue = currentValue + emoji.unicode; + this.inputValue = updatedValue + $('#reply_message').val(updatedValue); + }, + get_thread() { + return this.messaging && this.messaging.models['mail.thread'].get(this.props.threadLocalId); + }, + + async onClickSendReply(ev) { + const body = $('#reply_message').val() + this.rpc({route:'/message/post', params:{ + 'post_data': {'body': body}, + 'thread_id': this.get_thread().id, + 'subtype_xmlid': 'mail.mt_comment', + 'thread_model': 'mail.channel', + }}).then(() =>{ + this.el.querySelector('.quick_reply').style.display = 'none'; + this.el.querySelector('#EmojiContainer').style.display = 'none'; + this.el.querySelector('#reply_message').value = ''; + }) + + }, +}) diff --git a/chat_quick_reply/static/src/core/web/messaging_menu.xml b/chat_quick_reply/static/src/core/web/messaging_menu.xml new file mode 100644 index 000000000..3491ca939 --- /dev/null +++ b/chat_quick_reply/static/src/core/web/messaging_menu.xml @@ -0,0 +1,80 @@ + + + + + + +
+
+ + + + + + () + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + +
+ + +
+
+
+