diff --git a/table_reservation_in_pos/README.rst b/table_reservation_in_pos/README.rst new file mode 100644 index 000000000..0fe0c1529 --- /dev/null +++ b/table_reservation_in_pos/README.rst @@ -0,0 +1,42 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Table Reservation in POS +======================== +Helps to reserve table in POS with reservation details. + +License +------- +Affero General Public License v3.0 (AGPL v3) +(http://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: (V16) Abbas P, Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/table_reservation_in_pos/__init__.py b/table_reservation_in_pos/__init__.py new file mode 100644 index 000000000..5ca652404 --- /dev/null +++ b/table_reservation_in_pos/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Abbas(odoo@cybrosys.com) +# +# 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/table_reservation_in_pos/__manifest__.py b/table_reservation_in_pos/__manifest__.py new file mode 100644 index 000000000..700bd0340 --- /dev/null +++ b/table_reservation_in_pos/__manifest__.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Abbas(odoo@cybrosys.com) +# +# 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': "Table Reservation in POS", + 'version': '16.0.1.0.0', + 'category': 'Point of Sale', + 'summary': """The Table Reservation in Pos module is used to facilitate + the management of reservations""", + 'description': 'The Table Reservation in Pos module is a comprehensive' + ' solution that combines reservation management with the ' + 'functionality of a reserve table in POS system.', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'depends': ['base', 'point_of_sale', 'pos_restaurant'], + 'data': [ + 'views/res_config_settings_views.xml', + ], + 'assets': { + 'point_of_sale.assets': [ + 'table_reservation_in_pos/static/src/xml/*', + 'table_reservation_in_pos/static/src/js/*', + 'table_reservation_in_pos/static/src/scss/*', + ], + }, + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/table_reservation_in_pos/doc/RELEASE_NOTES.md b/table_reservation_in_pos/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..004bcf3b0 --- /dev/null +++ b/table_reservation_in_pos/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 03.10.2023 +#### Version 16.0.1.0.0 +#### ADD +- Initial commit for Table Reservation in POS diff --git a/table_reservation_in_pos/models/__init__.py b/table_reservation_in_pos/models/__init__.py new file mode 100644 index 000000000..c1b2baed2 --- /dev/null +++ b/table_reservation_in_pos/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Abbas(odoo@cybrosys.com) +# +# 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_config +from . import pos_session +from . import res_config_settings +from . import restaurant_table diff --git a/table_reservation_in_pos/models/pos_config.py b/table_reservation_in_pos/models/pos_config.py new file mode 100644 index 000000000..f6e483d3b --- /dev/null +++ b/table_reservation_in_pos/models/pos_config.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Abbas(odoo@cybrosys.com) +# +# 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): + """ The class PosConfig is used to add new field in + pos.config """ + _inherit = 'pos.config' + + table_reservation = fields.Boolean(string='Table Reservation', + help='Enable for adding reservation') diff --git a/table_reservation_in_pos/models/pos_session.py b/table_reservation_in_pos/models/pos_session.py new file mode 100644 index 000000000..977f0ff7e --- /dev/null +++ b/table_reservation_in_pos/models/pos_session.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Abbas(odoo@cybrosys.com) +# +# 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 models + + +class PosSession(models.Model): + """ The class PosSession is used to override function + _loader_params_restaurant_table in pos_session """ + _inherit = 'pos.session' + + def _loader_params_restaurant_table(self): + """For add fields ('reserved', 'reservation_details')""" + result = super()._loader_params_restaurant_table() + result['search_params']['fields'].append('reserved') + result['search_params']['fields'].append('reservation_details') + return result diff --git a/table_reservation_in_pos/models/res_config_settings.py b/table_reservation_in_pos/models/res_config_settings.py new file mode 100644 index 000000000..2d5d3d125 --- /dev/null +++ b/table_reservation_in_pos/models/res_config_settings.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Abbas(odoo@cybrosys.com) +# +# 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 PosSettings(models.TransientModel): + """ The class PosSettings is used to add new field in + res.config.settings """ + _inherit = 'res.config.settings' + + table_reservation = fields.Boolean(string="Table Reservation", + related= + 'pos_config_id.table_reservation', + readonly=False, + help='Enable reservation' + ' for adding reservation', + config_parameter= + 'table_reservation_in_pos.' + 'table_reservation') diff --git a/table_reservation_in_pos/models/restaurant_table.py b/table_reservation_in_pos/models/restaurant_table.py new file mode 100644 index 000000000..cae0d8cf1 --- /dev/null +++ b/table_reservation_in_pos/models/restaurant_table.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Abbas(odoo@cybrosys.com) +# +# 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 RestaurantTable(models.Model): + """ The class RestaurantTable is used to add new fields in + restaurant_table """ + _inherit = 'restaurant.table' + + reserved = fields.Boolean(string='Reserved', default=False, + help='Is Reserved or not') + reservation_details = fields.Text(string='Reservation Details', + help='View the reservation details') diff --git a/table_reservation_in_pos/static/description/assets/icons/check.png b/table_reservation_in_pos/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/check.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/chevron.png b/table_reservation_in_pos/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/chevron.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/cogs.png b/table_reservation_in_pos/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/cogs.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/consultation.png b/table_reservation_in_pos/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/consultation.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/ecom-black.png b/table_reservation_in_pos/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/ecom-black.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/education-black.png b/table_reservation_in_pos/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/education-black.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/hotel-black.png b/table_reservation_in_pos/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/hotel-black.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/license.png b/table_reservation_in_pos/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/license.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/lifebuoy.png b/table_reservation_in_pos/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/lifebuoy.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/manufacturing-black.png b/table_reservation_in_pos/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/manufacturing-black.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/pos-black.png b/table_reservation_in_pos/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/pos-black.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/puzzle.png b/table_reservation_in_pos/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/puzzle.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/restaurant-black.png b/table_reservation_in_pos/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/restaurant-black.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/service-black.png b/table_reservation_in_pos/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/service-black.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/trading-black.png b/table_reservation_in_pos/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/trading-black.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/training.png b/table_reservation_in_pos/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/training.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/update.png b/table_reservation_in_pos/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/update.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/user.png b/table_reservation_in_pos/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/user.png differ diff --git a/table_reservation_in_pos/static/description/assets/icons/wrench.png b/table_reservation_in_pos/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/icons/wrench.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/categories.png b/table_reservation_in_pos/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/categories.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/check-box.png b/table_reservation_in_pos/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/check-box.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/compass.png b/table_reservation_in_pos/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/compass.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/corporate.png b/table_reservation_in_pos/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/corporate.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/customer-support.png b/table_reservation_in_pos/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/customer-support.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/cybrosys-logo.png b/table_reservation_in_pos/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/cybrosys-logo.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/features.png b/table_reservation_in_pos/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/features.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/logo.png b/table_reservation_in_pos/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/logo.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/pictures.png b/table_reservation_in_pos/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/pictures.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/pie-chart.png b/table_reservation_in_pos/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/pie-chart.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/right-arrow.png b/table_reservation_in_pos/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/right-arrow.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/star.png b/table_reservation_in_pos/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/star.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/support.png b/table_reservation_in_pos/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/support.png differ diff --git a/table_reservation_in_pos/static/description/assets/misc/whatsapp.png b/table_reservation_in_pos/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/misc/whatsapp.png differ diff --git a/table_reservation_in_pos/static/description/assets/modules/book_order.jpg b/table_reservation_in_pos/static/description/assets/modules/book_order.jpg new file mode 100644 index 000000000..d79685570 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/modules/book_order.jpg differ diff --git a/table_reservation_in_pos/static/description/assets/modules/discount.png b/table_reservation_in_pos/static/description/assets/modules/discount.png new file mode 100755 index 000000000..db6fc1ced Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/modules/discount.png differ diff --git a/table_reservation_in_pos/static/description/assets/modules/l6.png b/table_reservation_in_pos/static/description/assets/modules/l6.png new file mode 100644 index 000000000..e64a5b55c Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/modules/l6.png differ diff --git a/table_reservation_in_pos/static/description/assets/modules/login_pos.png b/table_reservation_in_pos/static/description/assets/modules/login_pos.png new file mode 100644 index 000000000..759574472 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/modules/login_pos.png differ diff --git a/table_reservation_in_pos/static/description/assets/modules/logo_pos.png b/table_reservation_in_pos/static/description/assets/modules/logo_pos.png new file mode 100644 index 000000000..5ecc4d883 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/modules/logo_pos.png differ diff --git a/table_reservation_in_pos/static/description/assets/modules/pos_receipt.png b/table_reservation_in_pos/static/description/assets/modules/pos_receipt.png new file mode 100644 index 000000000..d1d3775d6 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/modules/pos_receipt.png differ diff --git a/table_reservation_in_pos/static/description/assets/screenshots/hero.gif b/table_reservation_in_pos/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..dca0c775d Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/screenshots/hero.gif differ diff --git a/table_reservation_in_pos/static/description/assets/screenshots/reser_settings.png b/table_reservation_in_pos/static/description/assets/screenshots/reser_settings.png new file mode 100644 index 000000000..e551baded Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/screenshots/reser_settings.png differ diff --git a/table_reservation_in_pos/static/description/assets/screenshots/reserve-1.png b/table_reservation_in_pos/static/description/assets/screenshots/reserve-1.png new file mode 100644 index 000000000..6ee12ea15 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/screenshots/reserve-1.png differ diff --git a/table_reservation_in_pos/static/description/assets/screenshots/reserve-2.png b/table_reservation_in_pos/static/description/assets/screenshots/reserve-2.png new file mode 100644 index 000000000..76c18229b Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/screenshots/reserve-2.png differ diff --git a/table_reservation_in_pos/static/description/assets/screenshots/reserve-3.png b/table_reservation_in_pos/static/description/assets/screenshots/reserve-3.png new file mode 100644 index 000000000..4f0da37c4 Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/screenshots/reserve-3.png differ diff --git a/table_reservation_in_pos/static/description/assets/screenshots/reserve-4.png b/table_reservation_in_pos/static/description/assets/screenshots/reserve-4.png new file mode 100644 index 000000000..2b230452a Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/screenshots/reserve-4.png differ diff --git a/table_reservation_in_pos/static/description/assets/screenshots/reserve-5.png b/table_reservation_in_pos/static/description/assets/screenshots/reserve-5.png new file mode 100644 index 000000000..ebbe8420e Binary files /dev/null and b/table_reservation_in_pos/static/description/assets/screenshots/reserve-5.png differ diff --git a/table_reservation_in_pos/static/description/banner.jpg b/table_reservation_in_pos/static/description/banner.jpg new file mode 100644 index 000000000..2782a65c2 Binary files /dev/null and b/table_reservation_in_pos/static/description/banner.jpg differ diff --git a/table_reservation_in_pos/static/description/icon.png b/table_reservation_in_pos/static/description/icon.png new file mode 100644 index 000000000..27dd75b13 Binary files /dev/null and b/table_reservation_in_pos/static/description/icon.png differ diff --git a/table_reservation_in_pos/static/description/index.html b/table_reservation_in_pos/static/description/index.html new file mode 100644 index 000000000..f7257396d --- /dev/null +++ b/table_reservation_in_pos/static/description/index.html @@ -0,0 +1,587 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Table Reservation in POS +

+

The Module is used to facilitate + the management of reservations. + +

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

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This module allows waiter to reserve the table. +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Enterprise and Community compatible. +
+
+ + Waiters can easily check table is reserved or not. +
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

+ Configuration for Table Reservation +

+

Configure table reservation settings.

+ +
+ +
+

Reservation Process +

+

The "Reserve" and "Unreserved" menus facilitate the reservation of POS tables.

+ +
+
+

Table Reservation

+

Clicking the "Reserve" button will trigger a popup where reservation details can be added and confirmed.

+ +
+
+

Reserved Table

+

View reservation details for a reserved table.

+ +
+
+

Reservation Information

+

Clicking on "Reserve info" will open a popup displaying reservation details.

+ +
+
+

Unreserve Table

+

After clicking the "Unreserve" button, the table reservation will be canceled.

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

+ 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/table_reservation_in_pos/static/src/js/EditBar.js b/table_reservation_in_pos/static/src/js/EditBar.js new file mode 100644 index 000000000..3969db144 --- /dev/null +++ b/table_reservation_in_pos/static/src/js/EditBar.js @@ -0,0 +1,79 @@ +odoo.define('table_reservation_in_pos.Reservation', function (require) { + 'use strict'; + const FloorScreen = require('pos_restaurant.FloorScreen'); + const Registries = require('point_of_sale.Registries'); + /** + *The ReserveTable constant is defined as a higher-order function that + *takes the FloorScreen class as a parameter and returns a new class that + *extends FloorScreen. + *This class will add two additional functions: reserve() and un_reserve(). + */ + const ReserveTable = (FloorScreen) => + class extends FloorScreen { + async reserve() { + // Function for reserve table in pos with entering details + if (!this.selectedTable) return; + if (this.selectedTable.reserved){ + await this.showPopup('ErrorPopup', { + title: this.env._t('Reserved'), + body: this.env._t('This table is reserved'), + }); + return; + } + const selectedTable = this.selectedTable; + const { confirmed, payload: details } = await this.showPopup('TextAreaPopup', { + startingValue: '', + title: this.env._t('Reservation Details ?'), + }); + if (!confirmed) return; + selectedTable.reserved = true; + selectedTable.reservation_details = details; + await this._save(selectedTable); + } + async vieInfo() { + // Function for view reservation details and un reserve table in pos + const selectedTable = this.selectedTable; + if (selectedTable.reserved){ + var info = selectedTable.reservation_details + const { confirmed } = await this.showPopup('ConfirmPopup', { + title: this.env._t('Reservation Details'), + body: this.env._t(info), + confirmText: this.env._t('UnReserve'), + }); + if (confirmed){ + const { confirmed } = await this.showPopup('ConfirmPopup', { + title: this.env._t('Confirm Unreservation'), + body: this.env._t('Are you sure you want to unreserve this table?'), + confirmText: this.env._t('Yes'), + cancelText: this.env._t('No'), + }); + if (confirmed){ + selectedTable.reserved = false; + selectedTable.reservation_details = ''; + await this._save(selectedTable); + } + } + return; + } + } + async un_reserve() { + // Function for un reserve reserved table in pos + if (!this.selectedTable) return; + const selectedTable = this.selectedTable; + if (selectedTable.reserved){ + const { confirmed } = await this.showPopup('ConfirmPopup', { + title: this.env._t('Confirm Unreservation'), + body: this.env._t('Are you sure you want to unreserve this table?'), + confirmText: this.env._t('Yes'), + cancelText: this.env._t('No'), + }); + if (confirmed){ + selectedTable.reserved = false; + selectedTable.reservation_details = ''; + await this._save(selectedTable); + } + } + } + }; + Registries.Component.extend(FloorScreen, ReserveTable); +}); \ No newline at end of file diff --git a/table_reservation_in_pos/static/src/scss/style.scss b/table_reservation_in_pos/static/src/scss/style.scss new file mode 100644 index 000000000..7c440d789 --- /dev/null +++ b/table_reservation_in_pos/static/src/scss/style.scss @@ -0,0 +1,26 @@ +.floor-map .edit-bar .edit-button .ticket-reserve{ + color: #007602; +} +.floor-map .edit-bar .edit-button .ticket-un-reserve{ + color: #6f0011; +} +.floor-map .reserved-border{ + border: 5px solid black; +} +.floor-map .reserved-border .table-reserved{ + display: flex; + justify-content: center; +} +.floor-map .reserved-border .table-reserved .reserved-label{ + position: absolute; + top: 15px; + background: #000000; + width: 80px; + margin-top: -4px; + height: 20px; + line-height: 20px; + border-radius: 5px; + font-size: 16px; + z-index: 10; + color: white; +} \ No newline at end of file diff --git a/table_reservation_in_pos/static/src/xml/EditBar.xml b/table_reservation_in_pos/static/src/xml/EditBar.xml new file mode 100644 index 000000000..5b11752c1 --- /dev/null +++ b/table_reservation_in_pos/static/src/xml/EditBar.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + reserve + vieInfo + un_reserve + + + + + + #{props.table.reserved ? 'table reserved-border' : 'table'} + #{props.table.reserved ? props.table.reservation_details : ''} + + +
+ + Reserved + +
+
+
+
\ No newline at end of file diff --git a/table_reservation_in_pos/views/res_config_settings_views.xml b/table_reservation_in_pos/views/res_config_settings_views.xml new file mode 100644 index 000000000..70db9811c --- /dev/null +++ b/table_reservation_in_pos/views/res_config_settings_views.xml @@ -0,0 +1,26 @@ + + + + + res.config.settings.view.form.inherit.pos.table.reservation + res.config.settings + + + +
+
+ +
+
+
+
+
+
+
+
\ No newline at end of file