diff --git a/pos_custom_message/README.rst b/pos_custom_message/README.rst new file mode 100644 index 000000000..dc364ecba --- /dev/null +++ b/pos_custom_message/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 + +POS Custom Message +================== +This module helps you to show custom popup messages at pos screen. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Gnu Affero General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developer : (V16) Muhsina V, + (V15) Adarsh K, + 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/pos_custom_message/__init__.py b/pos_custom_message/__init__.py new file mode 100644 index 000000000..289f0ee22 --- /dev/null +++ b/pos_custom_message/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Adarsh K () +# +# 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 models diff --git a/pos_custom_message/__manifest__.py b/pos_custom_message/__manifest__.py new file mode 100644 index 000000000..839a7002b --- /dev/null +++ b/pos_custom_message/__manifest__.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Adarsh K () +# +# 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': 'POS Custom Message', + 'version': '15.0.1.0.0', + 'category': 'Point of Sale', + 'summary': 'Custom popup messages in pos screen', + 'description': "This Module allows you to create custom messages that " + "will be displayed at a specific time on the Point of Sale " + "(POS) screen. These messages can be used to remind users " + "of important tasks, warn them about potential problems, " + "or provide them with other information.", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'point_of_sale'], + 'data': [ + 'security/ir.model.access.csv', + 'views/pos_custom_message_views.xml', + 'views/pos_config_views.xml', + ], + 'assets': { + 'point_of_sale.assets': [ + 'pos_custom_message/static/src/js/*.js', + ], + 'web.assets_qweb': [ + 'pos_custom_message/static/src/xml/AlertPopup.xml', + 'pos_custom_message/static/src/xml/InfoPopup.xml', + 'pos_custom_message/static/src/xml/WarningPopup.xml', + ], + }, + 'images': ['static/description/banner.png'], + 'licence': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/pos_custom_message/doc/RELEASE_NOTES.md b/pos_custom_message/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..de4ec5df6 --- /dev/null +++ b/pos_custom_message/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 23.07.2024 +#### Version 15.0.1.0.0 +##### ADD +- Initial Commit for POS Custom Message \ No newline at end of file diff --git a/pos_custom_message/models/__init__.py b/pos_custom_message/models/__init__.py new file mode 100644 index 000000000..e8bf24fbc --- /dev/null +++ b/pos_custom_message/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Adarsh K () +# +# 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 pos_custom_message +from . import pos_config diff --git a/pos_custom_message/models/pos_config.py b/pos_custom_message/models/pos_config.py new file mode 100644 index 000000000..d960462ec --- /dev/null +++ b/pos_custom_message/models/pos_config.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Adarsh K () +# +# 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 odoo import fields, models + + +class PosConfig(models.Model): + """Inherited the pos.config model to add a field to select the + messages""" + _inherit = 'pos.config' + + message_ids = fields.Many2many('pos.custom.message', + string="Messages to popup", + help="Choose the messages to show as popup") diff --git a/pos_custom_message/models/pos_custom_message.py b/pos_custom_message/models/pos_custom_message.py new file mode 100644 index 000000000..6bc5b3268 --- /dev/null +++ b/pos_custom_message/models/pos_custom_message.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Adarsh K () +# +# 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 odoo import fields, models + + +class PosCustomMessage(models.Model): + """Model to manage custom popup messages for the Point of Sale system.""" + _name = 'pos.custom.message' + _description = "Custom Popup Messages in Pos Screen" + _rec_name = 'title' + + message_type = fields.Selection([('alert', 'Alert'), ('warn', 'Warning'), + ('info', 'Information')], default='alert', + string="Message Type", + help="Choose the message type") + title = fields.Char(string="Title", help="Title of the message") + message_text = fields.Char(string="Message Text", + help="Content of the message") + execution_time = fields.Float(string="Execution Time", + help="Choose the time in 24-hour format at " + "which the popup should be shown.") + pos_config_ids = fields.Many2many('pos.config', string="Point of sale", + help="Choose the point of sale") diff --git a/pos_custom_message/security/ir.model.access.csv b/pos_custom_message/security/ir.model.access.csv new file mode 100644 index 000000000..3ded42ae7 --- /dev/null +++ b/pos_custom_message/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_pos_custom_message,access.pos.custom.message,model_pos_custom_message,base.group_user,1,1,1,1 diff --git a/pos_custom_message/static/description/assets/icons/check.png b/pos_custom_message/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/check.png differ diff --git a/pos_custom_message/static/description/assets/icons/chevron.png b/pos_custom_message/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/chevron.png differ diff --git a/pos_custom_message/static/description/assets/icons/cogs.png b/pos_custom_message/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/cogs.png differ diff --git a/pos_custom_message/static/description/assets/icons/consultation.png b/pos_custom_message/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/consultation.png differ diff --git a/pos_custom_message/static/description/assets/icons/ecom-black.png b/pos_custom_message/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/ecom-black.png differ diff --git a/pos_custom_message/static/description/assets/icons/education-black.png b/pos_custom_message/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/education-black.png differ diff --git a/pos_custom_message/static/description/assets/icons/hotel-black.png b/pos_custom_message/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/hotel-black.png differ diff --git a/pos_custom_message/static/description/assets/icons/license.png b/pos_custom_message/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/license.png differ diff --git a/pos_custom_message/static/description/assets/icons/lifebuoy.png b/pos_custom_message/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/lifebuoy.png differ diff --git a/pos_custom_message/static/description/assets/icons/manufacturing-black.png b/pos_custom_message/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/manufacturing-black.png differ diff --git a/pos_custom_message/static/description/assets/icons/pos-black.png b/pos_custom_message/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/pos-black.png differ diff --git a/pos_custom_message/static/description/assets/icons/puzzle.png b/pos_custom_message/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/puzzle.png differ diff --git a/pos_custom_message/static/description/assets/icons/restaurant-black.png b/pos_custom_message/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/restaurant-black.png differ diff --git a/pos_custom_message/static/description/assets/icons/service-black.png b/pos_custom_message/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/service-black.png differ diff --git a/pos_custom_message/static/description/assets/icons/trading-black.png b/pos_custom_message/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/trading-black.png differ diff --git a/pos_custom_message/static/description/assets/icons/training.png b/pos_custom_message/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/training.png differ diff --git a/pos_custom_message/static/description/assets/icons/update.png b/pos_custom_message/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/update.png differ diff --git a/pos_custom_message/static/description/assets/icons/user.png b/pos_custom_message/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/user.png differ diff --git a/pos_custom_message/static/description/assets/icons/wrench.png b/pos_custom_message/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/pos_custom_message/static/description/assets/icons/wrench.png differ diff --git a/pos_custom_message/static/description/assets/misc/categories.png b/pos_custom_message/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/categories.png differ diff --git a/pos_custom_message/static/description/assets/misc/check-box.png b/pos_custom_message/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/check-box.png differ diff --git a/pos_custom_message/static/description/assets/misc/compass.png b/pos_custom_message/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/compass.png differ diff --git a/pos_custom_message/static/description/assets/misc/corporate.png b/pos_custom_message/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/corporate.png differ diff --git a/pos_custom_message/static/description/assets/misc/customer-support.png b/pos_custom_message/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/customer-support.png differ diff --git a/pos_custom_message/static/description/assets/misc/cybrosys-logo.png b/pos_custom_message/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/cybrosys-logo.png differ diff --git a/pos_custom_message/static/description/assets/misc/features.png b/pos_custom_message/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/features.png differ diff --git a/pos_custom_message/static/description/assets/misc/logo.png b/pos_custom_message/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/logo.png differ diff --git a/pos_custom_message/static/description/assets/misc/pictures.png b/pos_custom_message/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/pictures.png differ diff --git a/pos_custom_message/static/description/assets/misc/pie-chart.png b/pos_custom_message/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/pie-chart.png differ diff --git a/pos_custom_message/static/description/assets/misc/right-arrow.png b/pos_custom_message/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/right-arrow.png differ diff --git a/pos_custom_message/static/description/assets/misc/star.png b/pos_custom_message/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/star.png differ diff --git a/pos_custom_message/static/description/assets/misc/support.png b/pos_custom_message/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/support.png differ diff --git a/pos_custom_message/static/description/assets/misc/whatsapp.png b/pos_custom_message/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/pos_custom_message/static/description/assets/misc/whatsapp.png differ diff --git a/pos_custom_message/static/description/assets/modules/1.png b/pos_custom_message/static/description/assets/modules/1.png new file mode 100644 index 000000000..5238bdeab Binary files /dev/null and b/pos_custom_message/static/description/assets/modules/1.png differ diff --git a/pos_custom_message/static/description/assets/modules/2.png b/pos_custom_message/static/description/assets/modules/2.png new file mode 100644 index 000000000..707e2b7ed Binary files /dev/null and b/pos_custom_message/static/description/assets/modules/2.png differ diff --git a/pos_custom_message/static/description/assets/modules/3.png b/pos_custom_message/static/description/assets/modules/3.png new file mode 100644 index 000000000..9c34fd89f Binary files /dev/null and b/pos_custom_message/static/description/assets/modules/3.png differ diff --git a/pos_custom_message/static/description/assets/modules/4.png b/pos_custom_message/static/description/assets/modules/4.png new file mode 100644 index 000000000..a477d967f Binary files /dev/null and b/pos_custom_message/static/description/assets/modules/4.png differ diff --git a/pos_custom_message/static/description/assets/modules/5.gif b/pos_custom_message/static/description/assets/modules/5.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/pos_custom_message/static/description/assets/modules/5.gif differ diff --git a/pos_custom_message/static/description/assets/modules/6.png b/pos_custom_message/static/description/assets/modules/6.png new file mode 100644 index 000000000..7f2815273 Binary files /dev/null and b/pos_custom_message/static/description/assets/modules/6.png differ diff --git a/pos_custom_message/static/description/assets/screenshots/1.png b/pos_custom_message/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..b7760e720 Binary files /dev/null and b/pos_custom_message/static/description/assets/screenshots/1.png differ diff --git a/pos_custom_message/static/description/assets/screenshots/2.png b/pos_custom_message/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..1ce6e0a24 Binary files /dev/null and b/pos_custom_message/static/description/assets/screenshots/2.png differ diff --git a/pos_custom_message/static/description/assets/screenshots/3.png b/pos_custom_message/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..b6894502e Binary files /dev/null and b/pos_custom_message/static/description/assets/screenshots/3.png differ diff --git a/pos_custom_message/static/description/assets/screenshots/4.png b/pos_custom_message/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..d231d5a37 Binary files /dev/null and b/pos_custom_message/static/description/assets/screenshots/4.png differ diff --git a/pos_custom_message/static/description/assets/screenshots/5.png b/pos_custom_message/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..8ac2d0dff Binary files /dev/null and b/pos_custom_message/static/description/assets/screenshots/5.png differ diff --git a/pos_custom_message/static/description/assets/screenshots/6.png b/pos_custom_message/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..82029b8a9 Binary files /dev/null and b/pos_custom_message/static/description/assets/screenshots/6.png differ diff --git a/pos_custom_message/static/description/assets/screenshots/7.png b/pos_custom_message/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..bfefcc82b Binary files /dev/null and b/pos_custom_message/static/description/assets/screenshots/7.png differ diff --git a/pos_custom_message/static/description/assets/screenshots/8.png b/pos_custom_message/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..abaef1c4d Binary files /dev/null and b/pos_custom_message/static/description/assets/screenshots/8.png differ diff --git a/pos_custom_message/static/description/assets/screenshots/9.png b/pos_custom_message/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..c4927d184 Binary files /dev/null and b/pos_custom_message/static/description/assets/screenshots/9.png differ diff --git a/pos_custom_message/static/description/assets/screenshots/hero.gif b/pos_custom_message/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..0f60ee5d9 Binary files /dev/null and b/pos_custom_message/static/description/assets/screenshots/hero.gif differ diff --git a/pos_custom_message/static/description/banner.png b/pos_custom_message/static/description/banner.png new file mode 100644 index 000000000..b8c9d0f6f Binary files /dev/null and b/pos_custom_message/static/description/banner.png differ diff --git a/pos_custom_message/static/description/icon.png b/pos_custom_message/static/description/icon.png new file mode 100644 index 000000000..84772afe3 Binary files /dev/null and b/pos_custom_message/static/description/icon.png differ diff --git a/pos_custom_message/static/description/index.html b/pos_custom_message/static/description/index.html new file mode 100644 index 000000000..aa30cce24 --- /dev/null +++ b/pos_custom_message/static/description/index.html @@ -0,0 +1,550 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+
+ +
+
+
+ +

+ POS Custom Message +

+

Custom Popup Messages in POS Screen +

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

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This Module helps to display custom messages at specific times in POS + system. This allows users to create three types of custom messages, + namely Alert, Warning, and Information. Users can specify the message + title, text, and the time at which they want the message to be displayed + in the POS screen. Once the custom messages have been created , + they can be selected to be displayed in the POS system. + At the specified time, the custom message will be displayed as a pop-up in + the POS system, providing the user with important information or alerts. +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Three Type of Custom Messages like Alert, Warning and Information. + +
+
+ + User Can Set Specific Execution time for Each Message. +
+
+ + Select Custom Messages to Show In POS. +
+
+ + User Can See Popup Custom Messages at specific time in POS. +
+
+
+
+ + Available in Odoo 15.0 + Community and Enterprise. +
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+
+

Configure Custom Messages. +

+

Under POS Configuration User Can Configure POS Custom Messages.

+ +
+
+

Three Types Of Messages +

+

User Can Create Three Types of Messages like Alert, Warning And Information, + Also Can set Title, Message Content as well as Execution Time.

+ + + +
+
+

Select Custom Messages from POS Configuration. +

+

User Can Select Messages in the POS Configuration to Show in POS Screen .

+ + +
+
+

Alert Message Popup. +

+

User Can See The Custom Message Popup At The Execution Time Configured In the Backend.

+ +
+
+

Warning Message Popup. +

+

User Can See The Custom Message Popup At The Execution Time Configured In the Backend.

+ +
+
+

Information Message Popup. +

+

User Can See The Custom Message Popup At The Execution Time Configured In the Backend.

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

Related + Products +

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

Our Services +

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

Our + Industries +

+
+
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

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

+ Mobile + friendly, + awe-inspiring product pages

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/pos_custom_message/static/src/js/AlertPopup.js b/pos_custom_message/static/src/js/AlertPopup.js new file mode 100644 index 000000000..65955be99 --- /dev/null +++ b/pos_custom_message/static/src/js/AlertPopup.js @@ -0,0 +1,23 @@ +odoo.define('pos_custom_message.CustomMessageAlertPopup', function (require) { + "use strict"; + + const AbstractAwaitablePopup = require('point_of_sale.AbstractAwaitablePopup'); + const Registries = require('point_of_sale.Registries'); + const { _t } = require('web.core'); + /** + * CustomMessageAlertPopup component for displaying custom messages as an alert popup. + * Inherits from AbstractAwaitablePopup. + */ + class CustomMessageAlertPopup extends AbstractAwaitablePopup {} + + CustomMessageAlertPopup.template = 'CustomMessageAlertPopup'; + CustomMessageAlertPopup.defaultProps = { + confirmText: _t('Ok'), + title: _t(''), + body: '', + }; + + Registries.Component.add(CustomMessageAlertPopup); + + return CustomMessageAlertPopup; +}); diff --git a/pos_custom_message/static/src/js/InfoPopup.js b/pos_custom_message/static/src/js/InfoPopup.js new file mode 100644 index 000000000..588739cbf --- /dev/null +++ b/pos_custom_message/static/src/js/InfoPopup.js @@ -0,0 +1,23 @@ +odoo.define('pos_custom_message.CustomMessageInfoPopup', function (require) { + "use strict"; + + const AbstractAwaitablePopup = require('point_of_sale.AbstractAwaitablePopup'); + const Registries = require('point_of_sale.Registries'); + const { _t } = require('web.core'); + /** + * CustomMessageInfoPopup component for displaying custom messages as an Information popup. + * Inherits from AbstractAwaitablePopup. + */ + class CustomMessageInfoPopup extends AbstractAwaitablePopup {} + + CustomMessageInfoPopup.template = 'CustomMessageInfoPopup'; + CustomMessageInfoPopup.defaultProps = { + confirmText: _t('Ok'), + title: _t(''), + body: '', + }; + + Registries.Component.add(CustomMessageInfoPopup); + + return CustomMessageInfoPopup; +}); diff --git a/pos_custom_message/static/src/js/PosSession.js b/pos_custom_message/static/src/js/PosSession.js new file mode 100644 index 000000000..63bbfc912 --- /dev/null +++ b/pos_custom_message/static/src/js/PosSession.js @@ -0,0 +1,20 @@ +odoo.define('pos_custom_message.PosSession', function (require) { + "use strict"; + + var models = require('point_of_sale.models'); + const ProductScreen = require('point_of_sale.ProductScreen'); + + models.load_models([ + { + model: 'pos.custom.message', + fields: ['message_type','title', 'message_text', 'execution_time', 'pos_config_ids'], + domain: function(self){ return [['id','in',self.config.message_ids]]; }, + loaded: function(self,messages){ + self.pos_custom_message = {}; + for (var i = 0; i < messages.length; i++) { + self.pos_custom_message[messages[i].id] = messages[i]; + } + }, + }, + ],{'before': 'product.product'}); +}); diff --git a/pos_custom_message/static/src/js/WarningPopup.js b/pos_custom_message/static/src/js/WarningPopup.js new file mode 100644 index 000000000..f45e08087 --- /dev/null +++ b/pos_custom_message/static/src/js/WarningPopup.js @@ -0,0 +1,23 @@ +odoo.define('pos_custom_message.CustomMessageWarnPopup', function (require) { + "use strict"; + + const AbstractAwaitablePopup = require('point_of_sale.AbstractAwaitablePopup'); + const Registries = require('point_of_sale.Registries'); + const { _t } = require('web.core'); + /** + * CustomMessageWarnPopup component for displaying custom messages as warning popup. + * Inherits from AbstractAwaitablePopup. + */ + class CustomMessageWarnPopup extends AbstractAwaitablePopup {} + + CustomMessageWarnPopup.template = 'CustomMessageWarnPopup'; + CustomMessageWarnPopup.defaultProps = { + confirmText: _t('Ok'), + title: _t(''), + body: '', + }; + + Registries.Component.add(CustomMessageWarnPopup); + + return CustomMessageWarnPopup; +}); diff --git a/pos_custom_message/static/src/js/pos_custom_message_popup.js b/pos_custom_message/static/src/js/pos_custom_message_popup.js new file mode 100644 index 000000000..efe9fa948 --- /dev/null +++ b/pos_custom_message/static/src/js/pos_custom_message_popup.js @@ -0,0 +1,58 @@ +odoo.define('pos_custom_message.PosCustomMessage', function (require) { + 'use strict'; + + const ProductScreen = require('point_of_sale.ProductScreen'); + const _super_ProductScreen = ProductScreen.prototype; + const Registries = require('point_of_sale.Registries'); + + const PosCustomMessage = (ProductScreen) => + class extends ProductScreen { + constructor() { + super(...arguments); + var self = this; + setInterval(function() { + const messages = self.env.pos.pos_custom_message; + if (messages) { + for (let msg in messages) { + const exec_time = messages[msg].execution_time; + const hours = Math.floor(exec_time); + const minutes = Math.round((exec_time % 1) * 60); + const ExecutionTime = `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:00`; + const now = new Date(); + const now_hours = now.getHours(); + const now_minutes = now.getMinutes(); + const now_seconds = now.getSeconds(); + const formattedTimeNow = `${now_hours.toString().padStart(2, '0')}:${now_minutes.toString().padStart(2, '0')}:${now_seconds.toString().padStart(2, '0')}`; + if (ExecutionTime === formattedTimeNow) { + if (messages[msg].message_type == "alert") { + //Alert message popup + self.showPopup('CustomMessageAlertPopup', { + title: messages[msg].title, + body: messages[msg].message_text, + }); + } + if (messages[msg].message_type == "warn") { + // Warning message popup + self.showPopup('CustomMessageWarnPopup', { + title: messages[msg].title, + body: messages[msg].message_text, + }); + } + if (messages[msg].message_type == "info") { + // Information message popup + self.showPopup('CustomMessageInfoPopup', { + title: messages[msg].title, + body: messages[msg].message_text, + }); + } + } + }; + } + }, 1000); + } + }; + + Registries.Component.extend(ProductScreen, PosCustomMessage); + + return ProductScreen; +}); diff --git a/pos_custom_message/static/src/xml/AlertPopup.xml b/pos_custom_message/static/src/xml/AlertPopup.xml new file mode 100644 index 000000000..1229fc21d --- /dev/null +++ b/pos_custom_message/static/src/xml/AlertPopup.xml @@ -0,0 +1,29 @@ + + + + + + + \ No newline at end of file diff --git a/pos_custom_message/static/src/xml/InfoPopup.xml b/pos_custom_message/static/src/xml/InfoPopup.xml new file mode 100644 index 000000000..32c451779 --- /dev/null +++ b/pos_custom_message/static/src/xml/InfoPopup.xml @@ -0,0 +1,29 @@ + + + + + + + \ No newline at end of file diff --git a/pos_custom_message/static/src/xml/WarningPopup.xml b/pos_custom_message/static/src/xml/WarningPopup.xml new file mode 100644 index 000000000..6434c33cf --- /dev/null +++ b/pos_custom_message/static/src/xml/WarningPopup.xml @@ -0,0 +1,29 @@ + + + + + + + \ No newline at end of file diff --git a/pos_custom_message/views/pos_config_views.xml b/pos_custom_message/views/pos_config_views.xml new file mode 100644 index 000000000..5507705ef --- /dev/null +++ b/pos_custom_message/views/pos_config_views.xml @@ -0,0 +1,30 @@ + + + + pos.config.view.form.inherit.pos.custom.message + pos.config + + + + + +
+
+
+ + Select Custom Messages + +
Select POS Custom Message. +
+ + +
+
+
+
+ + + + \ No newline at end of file diff --git a/pos_custom_message/views/pos_custom_message_views.xml b/pos_custom_message/views/pos_custom_message_views.xml new file mode 100644 index 000000000..2c69153e0 --- /dev/null +++ b/pos_custom_message/views/pos_custom_message_views.xml @@ -0,0 +1,44 @@ + + + + + pos.custom.message.view.tree + pos.custom.message + + + + + + + + + + + + pos.custom.message.view.form + pos.custom.message + +
+ + + + + + + + + +
+
+
+ + + Pos Custom Message + pos.custom.message + tree,form + + + +
\ No newline at end of file