diff --git a/pos_kitchen_screen_odoo/README.rst b/pos_kitchen_screen_odoo/README.rst new file mode 100644 index 000000000..75d33a3b9 --- /dev/null +++ b/pos_kitchen_screen_odoo/README.rst @@ -0,0 +1,45 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +POS Kitchen Screen +================== +* POS Kitchen Screen facilitates sending certain orders automatically to the kitchen + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + + +Credits +------- +Developer: Gokul P I, + +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: `` \ No newline at end of file diff --git a/pos_kitchen_screen_odoo/__init__.py b/pos_kitchen_screen_odoo/__init__.py new file mode 100644 index 000000000..7d27f9b70 --- /dev/null +++ b/pos_kitchen_screen_odoo/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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/pos_kitchen_screen_odoo/__manifest__.py b/pos_kitchen_screen_odoo/__manifest__.py new file mode 100644 index 000000000..88a83f8c3 --- /dev/null +++ b/pos_kitchen_screen_odoo/__manifest__.py @@ -0,0 +1,79 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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': 'POS Kitchen Screen', + 'version': '17.0.1.0.0', + 'category': 'Point Of Sale', + 'summary': 'POS Kitchen Screen facilitates sending certain orders ' + 'automatically to the kitchen.The POS Kitchen Screen allows for' + 'the customization of order views, so that staff can see the ' + 'information that is most important to them.', + 'description': 'The POS Kitchen Screen in Odoo 17 is a feature that ' + 'allows restaurant staff to view and manage orders in ' + 'real-time from the kitchen. This screen provides a clear ' + 'and organized display of all active orders, enabling ' + 'kitchen staff to prioritize and manage their tasks ' + 'efficiently. The POS Kitchen Screen in Odoo 16 also ' + 'allows for the customization of order views, so that ' + 'staff can see the information that is most important to ' + 'them. Additionally, this feature facilitates ' + 'communication between front-end and back-end staff, ' + 'enabling them to work together seamlessly and provide a ' + 'better dining experience for customers.', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['pos_restaurant'], + 'data': [ + 'security/pos_kitchen_screen_groups.xml', + "security/ir.model.access.csv", + 'data/kitchen_screen_sequence_data.xml', + "views/kitchen_screen_views.xml", + "views/pos_kitchen_screen_odoo_menus.xml", + "views/pos_order_views.xml", + ], + 'assets': { + 'point_of_sale._assets_pos': [ + 'pos_kitchen_screen_odoo/static/src/js/fields_load.js', + 'pos_kitchen_screen_odoo/static/src/js/order_payment.js', + 'pos_kitchen_screen_odoo/static/src/js/order_button.js', + ], + 'web.assets_backend': [ + 'pos_kitchen_screen_odoo/static/src/css/kitchen_screen.css', + 'pos_kitchen_screen_odoo/static/src/js/kitchen_screen.js', + 'pos_kitchen_screen_odoo/static/src/xml/kitchen_screen_templates.xml', + 'https://code.jquery.com/jquery-1.10.2.min.js', + 'https://unpkg.com/scrollreveal@4.0.0/dist/scrollreveal.min.js', + 'https://fonts.googleapis.com', + 'https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js', + 'https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js', + ], + }, + 'images': [ + 'static/description/banner.jpg', + ], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/pos_kitchen_screen_odoo/data/kitchen_screen_sequence_data.xml b/pos_kitchen_screen_odoo/data/kitchen_screen_sequence_data.xml new file mode 100644 index 000000000..833a76bda --- /dev/null +++ b/pos_kitchen_screen_odoo/data/kitchen_screen_sequence_data.xml @@ -0,0 +1,15 @@ + + + + + Kitchen Screen + kitchen.screen + True + KITCHEN + 4 + 1 + 1 + + + + diff --git a/pos_kitchen_screen_odoo/doc/RELEASE_NOTES.md b/pos_kitchen_screen_odoo/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..3482d1124 --- /dev/null +++ b/pos_kitchen_screen_odoo/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 10.01.2024 +#### Version 17.0.1.0.0 +#### ADD +- Initial commit for Pos Kitchen Screen diff --git a/pos_kitchen_screen_odoo/models/__init__.py b/pos_kitchen_screen_odoo/models/__init__.py new file mode 100644 index 000000000..808a043b0 --- /dev/null +++ b/pos_kitchen_screen_odoo/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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 kitchen_screen +from . import pos_orders +from . import pos_session diff --git a/pos_kitchen_screen_odoo/models/kitchen_screen.py b/pos_kitchen_screen_odoo/models/kitchen_screen.py new file mode 100644 index 000000000..989033c07 --- /dev/null +++ b/pos_kitchen_screen_odoo/models/kitchen_screen.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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 api, fields, models + + +class KitchenScreen(models.Model): + """Kitchen Screen model for the cook""" + _name = 'kitchen.screen' + _description = 'Pos Kitchen Screen' + _rec_name = 'sequence' + + def _pos_shop_id(self): + """Domain for the Pos Shop""" + kitchen = self.search([]) + if kitchen: + return [('module_pos_restaurant', '=', True), + ( + 'id', 'not in', [rec.id for rec in kitchen.pos_config_id])] + else: + return [('module_pos_restaurant', '=', True)] + + sequence = fields.Char(readonly=True, default='New', + copy=False, tracking=True, help="Sequence of items") + pos_config_id = fields.Many2one('pos.config', string='Allowed POS', + domain=_pos_shop_id, + help="Allowed POS for kitchen") + pos_categ_ids = fields.Many2many('pos.category', + string='Allowed POS Category', + help="Allowed POS Category" + "for the corresponding Pos") + shop_number = fields.Integer(related='pos_config_id.id', string='Customer', + help="Id of the POS") + + def kitchen_screen(self): + """Redirect to corresponding kitchen screen for the cook""" + return { + 'type': 'ir.actions.act_url', + 'target': 'new', + 'url': '/pos/kitchen?pos_config_id= %s' % self.pos_config_id.id, + } + + @api.model + def create(self, vals): + """Used to create sequence""" + if vals.get('sequence', 'New') == 'New': + vals['sequence'] = self.env['ir.sequence'].next_by_code( + 'kitchen.screen') + result = super(KitchenScreen, self).create(vals) + return result diff --git a/pos_kitchen_screen_odoo/models/pos_orders.py b/pos_kitchen_screen_odoo/models/pos_orders.py new file mode 100644 index 000000000..6d1c27a10 --- /dev/null +++ b/pos_kitchen_screen_odoo/models/pos_orders.py @@ -0,0 +1,247 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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 api, fields, models + + +class PosOrder(models.Model): + """Inheriting the pos order model """ + _inherit = "pos.order" + + order_status = fields.Selection(string="Order Status", + selection=[("draft", "Draft"), + ("waiting", "Cooking"), + ("ready", "Ready"), + ("cancel", "Cancel")], + help='To know the status of order') + order_ref = fields.Char(string="Order Reference", + help='Reference of the order') + is_cooking = fields.Boolean(string="Is Cooking", + help='To identify the order is kitchen orders') + hour = fields.Char(string="Order Time", readonly=True, + help='To set the time of each order') + minutes = fields.Char(string='order time') + floor = fields.Char(string='Floor time') + + def write(self, vals): + """Super the write function for adding order status in vals""" + message = { + 'res_model': self._name, + 'message': 'pos_order_created' + } + self.env["bus.bus"]._sendone('pos_order_created', + "notification", + message) + for order in self: + if order.order_status == "waiting" and vals.get( + "order_status") != "ready": + vals["order_status"] = order.order_status + if vals.get("state") and vals[ + "state"] == "paid" and order.name == "/": + vals["name"] = self._compute_order_name() + return super(PosOrder, self).write(vals) + + @api.model_create_multi + def create(self, vals_list): + """Override create function for the validation of the order""" + message = { + 'res_model': self._name, + 'message': 'pos_order_created' + } + self.env["bus.bus"]._sendone('pos_order_created', + "notification", + message) + for vals in vals_list: + pos_orders = self.search( + [("pos_reference", "=", vals["pos_reference"])]) + if pos_orders: + for rec in pos_orders.lines: + for lin in vals_list[0]["lines"]: + if lin[2]["product_id"] == rec.product_id.id: + lin[2]["order_status"] = rec.order_status + vals_list[0]["order_status"] = pos_orders.order_status + return super().create(vals_list) + + else: + if vals.get('order_id') and not vals.get('name'): + # set name based on the sequence specified on the config + config = self.env['pos.order'].browse( + vals['order_id']).session_id.config_id + if config.sequence_line_id: + vals['name'] = config.sequence_line_id._next() + if not vals.get('name'): + # fallback on any pos.order sequence + vals['name'] = self.env['ir.sequence'].next_by_code( + 'pos.order.line') + return super().create(vals_list) + + def get_details(self, shop_id, order=None): + """For getting the kitchen orders for the cook""" + dic = order + if order: + orders = self.search( + [("pos_reference", "=", order[0]['pos_reference'])]) + if not orders: + self.create(dic) + else: + orders.lines = False + orders.lines = dic[0]['lines'] + kitchen_screen = self.env["kitchen.screen"].sudo().search( + [("pos_config_id", "=", shop_id)]) + pos_orders = self.env["pos.order.line"].search( + ["&", ("is_cooking", "=", True), + ("product_id.pos_categ_ids", "in", + [rec.id for rec in kitchen_screen.pos_categ_ids])]) + pos = self.env["pos.order"].search( + [("lines", "in", [rec.id for rec in pos_orders])], + order="date_order") + pos_lines = pos.lines.search( + [("product_id.pos_categ_ids", "in", + [rec.id for rec in kitchen_screen.pos_categ_ids])]) + values = {"orders": pos.read(), "order_lines": pos_lines.read()} + return values + + def action_pos_order_paid(self): + """Supering the action_pos_order_paid function for setting its kitchen + order and setting the order reference""" + res = super().action_pos_order_paid() + kitchen_screen = self.env["kitchen.screen"].search( + [("pos_config_id", "=", self.config_id.id)] + ) + for order_line in self.lines: + order_line.is_cooking = True + if kitchen_screen: + for line in self.lines: + line.is_cooking = True + self.is_cooking = True + self.order_ref = self.name + return res + + @api.onchange("order_status") + def onchange_order_status(self): + """To set is_cooking false""" + if self.order_status == "ready": + self.is_cooking = False + + def order_progress_draft(self): + """Calling function from js to change the order status""" + self.order_status = "waiting" + for line in self.lines: + if line.order_status != "ready": + line.order_status = "waiting" + + def order_progress_cancel(self): + """Calling function from js to change the order status""" + self.order_status = "cancel" + for line in self.lines: + if line.order_status != "ready": + line.order_status = "cancel" + + def order_progress_change(self): + """Calling function from js to change the order status""" + kitchen_screen = self.env["kitchen.screen"].search( + [("pos_config_id", "=", self.config_id.id)]) + stage = [] + for line in self.lines: + for categ in line.product_id.pos_categ_ids: + if categ.id in [rec.id for rec in + kitchen_screen.pos_categ_ids]: + stage.append(line.order_status) + if "waiting" in stage or "draft" in stage: + self.order_status = "ready" + else: + self.order_status = "ready" + + def check_order(self, order_name): + """Calling function from js to know status of the order""" + pos_order = self.env['pos.order'].sudo().search( + [('pos_reference', '=', str(order_name))]) + kitchen_order = self.env['kitchen.screen'].sudo().search( + [('pos_config_id', '=', pos_order.config_id.id)]) + if kitchen_order: + for category in pos_order.lines.mapped('product_id').mapped( + 'pos_categ_ids').mapped('id'): + if category not in kitchen_order.pos_categ_ids.mapped('id'): + return { + 'category': pos_order.lines.product_id.pos_categ_ids.browse( + category).name} + if kitchen_order and pos_order: + if pos_order.order_status != 'ready': + return True + else: + return False + else: + return False + + def check_order_status(self, order_name): + pos_order = self.env['pos.order'].sudo().search( + [('pos_reference', '=', str(order_name))]) + kitchen_order = self.env['kitchen.screen'].sudo().search( + [('pos_config_id', '=', pos_order.config_id.id)]) + for category in pos_order.lines.mapped('product_id').mapped( + 'pos_categ_ids').mapped('id'): + if category not in kitchen_order.pos_categ_ids.mapped('id'): + return 'no category' + if kitchen_order: + if pos_order.order_status == 'ready': + return False + else: + return True + else: + return True + + +class PosOrderLine(models.Model): + """Inheriting the pos order line""" + _inherit = "pos.order.line" + + order_status = fields.Selection( + selection=[('draft', 'Draft'), ('waiting', 'Cooking'), + ('ready', 'Ready'), ('cancel', 'Cancel')], default='draft', + help='The status of orderliness') + order_ref = fields.Char(related='order_id.order_ref', + string='Order Reference', + help='Order reference of order') + is_cooking = fields.Boolean(string="Cooking", default=False, + help='To identify the order is ' + 'kitchen orders') + customer_id = fields.Many2one('res.partner', string="Customer", + related='order_id.partner_id', + help='Id of the customer') + + def get_product_details(self, ids): + """To get the product details""" + lines = self.env['pos.order'].browse(ids) + res = [] + for rec in lines: + res.append({ + 'product_id': rec.product_id.id, + 'name': rec.product_id.name, + 'qty': rec.qty + }) + return res + + def order_progress_change(self): + """Calling function from js to change the order_line status""" + if self.order_status == 'ready': + self.order_status = 'waiting' + else: + self.order_status = 'ready' diff --git a/pos_kitchen_screen_odoo/models/pos_session.py b/pos_kitchen_screen_odoo/models/pos_session.py new file mode 100644 index 000000000..5923e0fc5 --- /dev/null +++ b/pos_kitchen_screen_odoo/models/pos_session.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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 + + +class PosSession(models.Model): + """Inheriting the pos session""" + _inherit = 'pos.session' + + def _pos_ui_models_to_load(self): + """Pos ui models to load""" + result = super()._pos_ui_models_to_load() + result += { + 'pos.order', 'pos.order.line' + } + return result + + def _loader_params_pos_order(self): + """Load the fields to pos order""" + return {'search_params': { + 'domain': [], + 'fields': ['name', 'date_order', 'pos_reference', + 'partner_id', 'lines', 'order_status', 'order_ref', + 'is_cooking']}} + + def _get_pos_ui_pos_order(self, params): + """Get pos ui pos order""" + return self.env['pos.order'].search_read( + **params['search_params']) + + def _loader_params_pos_order_line(self): + """Load the fields to pos order line""" + return {'search_params': {'domain': [], + 'fields': ['product_id', 'qty', + 'order_status', 'order_ref', + 'customer_id', + 'price_subtotal', 'total_cost']}} + + def _get_pos_ui_pos_order_line(self, params): + """Get pos ui pos order line""" + return self.env['pos.order.line'].search_read( + **params['search_params']) diff --git a/pos_kitchen_screen_odoo/security/ir.model.access.csv b/pos_kitchen_screen_odoo/security/ir.model.access.csv new file mode 100644 index 000000000..c05b5e793 --- /dev/null +++ b/pos_kitchen_screen_odoo/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.kitchen.screen,access.kitchen.screen,model_kitchen_screen,pos_kitchen_screen_odoo.kitchen_cook,1,1,1,1 diff --git a/pos_kitchen_screen_odoo/security/pos_kitchen_screen_groups.xml b/pos_kitchen_screen_odoo/security/pos_kitchen_screen_groups.xml new file mode 100644 index 000000000..ea8b4eadc --- /dev/null +++ b/pos_kitchen_screen_odoo/security/pos_kitchen_screen_groups.xml @@ -0,0 +1,15 @@ + + + + + Pos Kitchen Screen + Kitchen Access Groups + 20 + + + + Kitchen Cook + + + \ No newline at end of file diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/capture (1).png b/pos_kitchen_screen_odoo/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/capture (1).png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/check.png b/pos_kitchen_screen_odoo/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/check.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/chevron.png b/pos_kitchen_screen_odoo/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/chevron.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/cogs.png b/pos_kitchen_screen_odoo/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/cogs.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/consultation.png b/pos_kitchen_screen_odoo/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/consultation.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/ecom-black.png b/pos_kitchen_screen_odoo/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/ecom-black.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/education-black.png b/pos_kitchen_screen_odoo/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/education-black.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/hotel-black.png b/pos_kitchen_screen_odoo/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/hotel-black.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/img.png b/pos_kitchen_screen_odoo/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/img.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/license.png b/pos_kitchen_screen_odoo/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/license.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/lifebuoy.png b/pos_kitchen_screen_odoo/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/lifebuoy.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/logo.png b/pos_kitchen_screen_odoo/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/logo.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/manufacturing-black.png b/pos_kitchen_screen_odoo/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/manufacturing-black.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/photo-capture.png b/pos_kitchen_screen_odoo/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/photo-capture.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/pos-black.png b/pos_kitchen_screen_odoo/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/pos-black.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/puzzle.png b/pos_kitchen_screen_odoo/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/puzzle.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/restaurant-black.png b/pos_kitchen_screen_odoo/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/restaurant-black.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/service-black.png b/pos_kitchen_screen_odoo/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/service-black.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/trading-black.png b/pos_kitchen_screen_odoo/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/trading-black.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/training.png b/pos_kitchen_screen_odoo/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/training.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/update.png b/pos_kitchen_screen_odoo/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/update.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/user.png b/pos_kitchen_screen_odoo/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/user.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/wrench.png b/pos_kitchen_screen_odoo/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/wrench.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/Cybrosys R.png b/pos_kitchen_screen_odoo/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/Cybrosys R.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/categories.png b/pos_kitchen_screen_odoo/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/categories.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/check-box.png b/pos_kitchen_screen_odoo/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/check-box.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/compass.png b/pos_kitchen_screen_odoo/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/compass.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/corporate.png b/pos_kitchen_screen_odoo/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/corporate.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/customer-support.png b/pos_kitchen_screen_odoo/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/customer-support.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/cybrosys-logo.png b/pos_kitchen_screen_odoo/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/cybrosys-logo.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/email.svg b/pos_kitchen_screen_odoo/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/features.png b/pos_kitchen_screen_odoo/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/features.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/logo.png b/pos_kitchen_screen_odoo/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/logo.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/phone.svg b/pos_kitchen_screen_odoo/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/pictures.png b/pos_kitchen_screen_odoo/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/pictures.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/pie-chart.png b/pos_kitchen_screen_odoo/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/pie-chart.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/right-arrow.png b/pos_kitchen_screen_odoo/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/right-arrow.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/star (1) 2.svg b/pos_kitchen_screen_odoo/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/star.png b/pos_kitchen_screen_odoo/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/star.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/support (1) 1.svg b/pos_kitchen_screen_odoo/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/support-email.svg b/pos_kitchen_screen_odoo/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/support.png b/pos_kitchen_screen_odoo/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/support.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/tick-mark.svg b/pos_kitchen_screen_odoo/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/whatsapp 1.svg b/pos_kitchen_screen_odoo/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/whatsapp.png b/pos_kitchen_screen_odoo/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/misc/whatsapp.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/misc/whatsapp.svg b/pos_kitchen_screen_odoo/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/modules/1.jpg b/pos_kitchen_screen_odoo/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..0edf328e5 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/modules/1.jpg differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/modules/2.gif b/pos_kitchen_screen_odoo/static/description/assets/modules/2.gif new file mode 100644 index 000000000..8ac32db03 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/modules/2.gif differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/modules/3.jpg b/pos_kitchen_screen_odoo/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..677f72279 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/modules/3.jpg differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/modules/4.jpg b/pos_kitchen_screen_odoo/static/description/assets/modules/4.jpg new file mode 100644 index 000000000..1e087eed6 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/modules/4.jpg differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/modules/5.png b/pos_kitchen_screen_odoo/static/description/assets/modules/5.png new file mode 100644 index 000000000..3bedf7981 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/modules/5.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/modules/6.jpg b/pos_kitchen_screen_odoo/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..482309000 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/modules/6.jpg differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/1.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..b02556220 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/1.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/10.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..e12e0bce2 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/10.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/2.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..963ae3e2b Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/2.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/3.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..37a0b3c5a Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/3.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/4.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..e260d3885 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/4.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/5.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..c6691f3d5 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/5.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/6.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..8376b8ef3 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/6.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/7.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..9ec516c54 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/7.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/8.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..87fa9deb3 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/8.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/9.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..4a38c2ccf Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/9.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/hero.gif b/pos_kitchen_screen_odoo/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..04a9a81cd Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/hero.gif differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/img.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/img.png new file mode 100644 index 000000000..314e031bd Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/img.png differ diff --git a/pos_kitchen_screen_odoo/static/description/banner.jpg b/pos_kitchen_screen_odoo/static/description/banner.jpg new file mode 100644 index 000000000..d704eb313 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/banner.jpg differ diff --git a/pos_kitchen_screen_odoo/static/description/icon.png b/pos_kitchen_screen_odoo/static/description/icon.png new file mode 100644 index 000000000..4d78bc765 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/icon.png differ diff --git a/pos_kitchen_screen_odoo/static/description/index.html b/pos_kitchen_screen_odoo/static/description/index.html new file mode 100755 index 000000000..4854fda17 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/index.html @@ -0,0 +1,941 @@ + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+
+
+
+
+

+ POS Kitchen Screen

+

+ Streamline Your Restaurant Operations With The + POS Kitchen Screen Designed Exclusively for Odoo 17 + Community. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Real-time Orders: +

+

The POS + Kitchen Screen is a feature in Odoo 16 that is + specifically designed for restaurants and other + food-related businesses. With this feature, + restaurant staff can easily view and manage + orders in real-time

+
+
+
+
+
+
+ +
+
+

+ Efficient Order Management:

+

Streamline + kitchen operations by creating and managing + orders seamlessly through the dedicated kitchen + screen, enhancing workflow efficiency.

+
+
+
+
+
+
+ +
+
+

+ Comprehensive Order Details:

+

View detailed + information for each order, including order + time, table name, cashier name, order internal + reference, and floor details, providing a + holistic overview.

+
+
+
+
+
+
+ +
+
+

+ Error Prevention Mechanism: +

+

Safeguard + against errors by restricting payment + processing until order completion and + preventing the addition of food items to + completed orders, ensuring accuracy in + transactions. +

+
+
+
+
+
+
+ +
+
+

+ User-Friendly Interface: +

+

Enjoy a + user-friendly design that allows easy + navigation and order creation, enhancing the + overall user experience and promoting + efficiency in kitchen and POS operations.

+
+
+
+
+
+
+ +
+
+

+ Multi-Order Capability: +

+

Create + multiple orders for the same table effortlessly + by utilizing the 'Order' button in the + top-right corner, providing flexibility and + convenience in managing customer requests.

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

+ First set the access right for the user as + 'Kitchen Cook' +

+
+
+
+
+
+
+ +
+
+

+ Create a kitchen screen from the POS +

+
+
+
+
+
+
+ +
+
+

+ Configure the POS session and associated + category to seamlessly integrate kitchen + orders into the dedicated kitchen screen + for efficient order processing.To access + the detailed information pertaining to + kitchen orders, kindly utilize the "Kitchen + Screen" button located in the image + above.

+
+
+
+
+
+
+ +
+
+

+ This is the initial view of the kitchen + order interface, displayed when no orders + have been created for the kitchen.

+
+
+
+
+
+
+ +
+
+

+ We can effortlessly generate kitchen orders + by utilizing the designated 'Order' button + displayed in the image below. +

+
+
+
+
+
+
+ +
+
+

+ After creating the order in the POS session + it will come under the cooking stage.Here + you can gain comprehensive insights into + each order, including Order Time, Table + name, Cashier name, Order Internal + Reference, and Floor details, and Order + Count of the 'Cooking' stage for a + complete overview of your kitchen + operations. +

+
+
+
+
+
+
+ +
+
+

+ After cccepting the Order in the cooking + stage it will come under this "Ready" + stage. when the food was ready we can + simply click the DONE button, and it will + automatically goto the Completed stage. + Here also you can see all the details of + your order. +

+
+
+
+
+
+
+ +
+
+

+ All the Completed foods are shown in the + 'Completed' Stage. Experience a detailed + view of your Orders, showcasing essential + information such as Order Time, Table name, + Cashier name, Order Internal Reference, and + Floor details, providing comprehensive + oversight. +

+
+
+
+
+
+
+ +
+
+

+ Payment processing is enabled only upon + order completion, ensuring a structured + workflow that aligns with efficient kitchen + operations.Attempting a payment before + completing kitchen orders results in an + error, promoting a streamlined process and + ensuring all food items are prepared before + finalizing transactions. +

+
+
+
+
+
+
+ +
+
+

+ Once an order is completed, any attempt to + add additional food items to the kitchen is + restricted, reinforcing accuracy in order + fulfillment and kitchen management.Adding + any food item after order completion + prompts an error +

+
+
+
+
+
+
+ +
+
+

+ Effortlessly create additional orders for + the same table by clicking the 'Order' + button located in the top-right corner. +

+
+
+
+ +
+ + +
+
+
    +
  • + One of the main advantages of the POS Kitchen Screen is that it provides a clear and organized display of all active orders, making it easy for kitchen staff to see what needs to be done next. +
  • +
  • + The POS Kitchen Screen is a valuable tool for any restaurant or food-related business that wants to streamline their operations and improve their customer service. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:10th Jan 2024 +
+

+ Initial Commit for POS Kitchen Screen +

+
+
+
+
+
+
+
+

+ 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/pos_kitchen_screen_odoo/static/src/assets/icons/Vector (2).svg b/pos_kitchen_screen_odoo/static/src/assets/icons/Vector (2).svg new file mode 100644 index 000000000..fadeb1e60 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/assets/icons/Vector (2).svg @@ -0,0 +1,3 @@ + + + diff --git a/pos_kitchen_screen_odoo/static/src/assets/icons/Vector (3).svg b/pos_kitchen_screen_odoo/static/src/assets/icons/Vector (3).svg new file mode 100644 index 000000000..51c9f895e --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/assets/icons/Vector (3).svg @@ -0,0 +1,3 @@ + + + diff --git a/pos_kitchen_screen_odoo/static/src/assets/icons/Vector-white.svg b/pos_kitchen_screen_odoo/static/src/assets/icons/Vector-white.svg new file mode 100644 index 000000000..7d019b6f8 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/assets/icons/Vector-white.svg @@ -0,0 +1,3 @@ + + + diff --git a/pos_kitchen_screen_odoo/static/src/assets/icons/Vector5.svg b/pos_kitchen_screen_odoo/static/src/assets/icons/Vector5.svg new file mode 100644 index 000000000..35e4d22ac --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/assets/icons/Vector5.svg @@ -0,0 +1,3 @@ + + + diff --git a/pos_kitchen_screen_odoo/static/src/assets/icons/confirmation 2.svg b/pos_kitchen_screen_odoo/static/src/assets/icons/confirmation 2.svg new file mode 100644 index 000000000..3c45c67cf --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/assets/icons/confirmation 2.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/src/assets/icons/cooking 3.svg b/pos_kitchen_screen_odoo/static/src/assets/icons/cooking 3.svg new file mode 100644 index 000000000..cea321902 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/assets/icons/cooking 3.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/src/css/kitchen_screen.css b/pos_kitchen_screen_odoo/static/src/css/kitchen_screen.css new file mode 100644 index 000000000..74e46188e --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/css/kitchen_screen.css @@ -0,0 +1,710 @@ +.kitchen{ + height: 100vh; + overflow: hidden; + } +.kitchen .body_wrapper { + --white-color: #ffff; + --black-color: #000000; + --body-bg:#F9F9F9; + --draft:#545454; + --cooking: #1D89AB; + --completed:#0d7411a3; + --bg-grey:#DEDEDE; + --bg-blue: #DAE7EB; +} +.kitchen .body_wrapper{ +position: relative; + font-family: "Inter", sans-serif !important; + color: var(--text-color); + background-color: var(--body-bg); + padding: 50px 100px; + overflow: scroll; + height: 100%; +} + +@media screen and (max-width: 768px) { + .kitchen .body_wrapper { + padding: 30px 15px; + } +} +.kitchen .accept_cancel,.card-bottom{ + padding: 15px 15px; + text-align: center; + display: flex; + justify-content: space-evenly; +} +.kitchen *:focus { + outline: 0 !important; +} + +.kitchen *:hover { + transition: 0.2s; +} + +.kitchen *:focus { + outline: 0 !important; + box-shadow: none !important; +} + +.kitchen *button:focus { + border: none; + outline: none; + box-shadow: none; +} + +.kitchen * { + list-style-type: none; + font-family: "Inter", sans-serif !important; + font-size: 18px; +} + +.kitchen *:focus, *:active { + outline: none !important; +} + +.kitchen.sr .load-hidden { + visibility: hidden; +} + +.kitchen *::selection { + color: #f3ebee; + background-color: black; +} + +.kitchen *a, +.kitchen a:visited { + color: #990000; + text-decoration: none; +} + + +.kitchen .affix { + top: 0; + width: 100%; + z-index: 9999 !important; +} + +.kitchen { + scroll-behavior: smooth !important; +} + + +.kitchen .custom_padding_top { + padding-top: 80px; +} + +.kitchen .custom_padding_bottom { + padding-bottom: 80px; +} + +.kitchen .main_heading { + font-size: 36px; + font-weight: 500; + color: var(--white-color); + padding-bottom: 20px; + text-align: center; + margin-bottom: 20px; +} + +/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ +/* Document + ========================================================================== */ +/** + * 1. Correct the line height in all browsers. + * 2. Prevent adjustments of font size after orientation changes in iOS. + */ +.kitchen { + line-height: 1.15; + /* 1 */ + -webkit-text-size-adjust: 100%; + /* 2 */ +} + +/* Sections + ========================================================================== */ +/** + * Remove the margin in all browsers. + */ + +/** + * Render the `main` element consistently in IE. + */ +.kitchen main { + display: block; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ +.kitchen h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/* Grouping content + ========================================================================== */ +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ +.kitchen hr { + box-sizing: content-box; + /* 1 */ + height: 0; + /* 1 */ + overflow: visible; + /* 2 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ +.kitchen pre { + font-family: monospace, monospace; + /* 1 */ + font-size: 1em; + /* 2 */ +} + +/* Text-level semantics + ========================================================================== */ +/** + * Remove the gray background on active links in IE 10. + */ +.kitchen a { + background-color: transparent; +} + +/** + * 1. Remove the bottom border in Chrome 57- + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ +.kitchen abbr[title] { + border-bottom: none; + /* 1 */ + text-decoration: underline; + /* 2 */ + text-decoration: underline dotted; + /* 2 */ +} + +/** + * Add the correct font weight in Chrome, Edge, and Safari. + */ +.kitchen b, +.kitchen strong { + font-weight: bolder; +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ +.kitchen code, +.kitchen kbd, +.kitchen samp { + font-family: monospace, monospace; + /* 1 */ + font-size: 1em; + /* 2 */ +} + +/** + * Add the correct font size in all browsers. + */ +.kitchen small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ +.kitchen sub, +.kitchen sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +.kitchen sub { + bottom: -0.25em; +} + +.kitchen sup { + top: -0.5em; +} + +/* Embedded content + ========================================================================== */ +/** + * Remove the border on images inside links in IE 10. + */ +.kitchen img { + border-style: none; +} + +/* Forms + ========================================================================== */ +/** + * 1. Change the font styles in all browsers. + * 2. Remove the margin in Firefox and Safari. + */ +.kitchen button, +input, +.kitchen optgroup, +.kitchen select, +.kitchen textarea { + font-family: inherit; + /* 1 */ + font-size: 100%; + /* 1 */ + line-height: 1.15; + /* 1 */ + margin: 0; + /* 2 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ +.kitchen button, +.kitchen input { + /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ +.kitchen button, +select { + /* 1 */ + text-transform: none; +} + +/** + * Correct the inability to style clickable types in iOS and Safari. + */ +.kitchen button, +.kitchen [type="button"], +.kitchen [type="reset"], +.kitchen [type="submit"] { + -webkit-appearance: button; +} + +/** + * Remove the inner border and padding in Firefox. + */ +.kitchen button::-moz-focus-inner, +.kitchen [type="button"]::-moz-focus-inner, +.kitchen [type="reset"]::-moz-focus-inner, +.kitchen [type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +/** + * Restore the focus styles unset by the previous rule. + */ +.kitchen button:-moz-focusring, +.kitchen [type="button"]:-moz-focusring, +.kitchen [type="reset"]:-moz-focusring, +.kitchen [type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Correct the padding in Firefox. + */ +.kitchen fieldset { + padding: 0.35em 0.75em 0.625em; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ +.kitchen legend { + box-sizing: border-box; + /* 1 */ + color: inherit; + /* 2 */ + display: table; + /* 1 */ + max-width: 100%; + /* 1 */ + padding: 0; + /* 3 */ + white-space: normal; + /* 1 */ +} + +/** + * Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ +.kitchen progress { + vertical-align: baseline; +} + +/** + * Remove the default vertical scrollbar in IE 10+. + */ +.kitchen textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10. + * 2. Remove the padding in IE 10. + */ +.kitchen [type="checkbox"], +.kitchen [type="radio"] { + box-sizing: border-box; + /* 1 */ + padding: 0; + /* 2 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ +.kitchen [type="number"]::-webkit-inner-spin-button, +.kitchen [type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ +.kitchen [type="search"] { + -webkit-appearance: textfield; + /* 1 */ + outline-offset: -2px; + /* 2 */ +} + +/** + * Remove the inner padding in Chrome and Safari on macOS. + */ +.kitchen [type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ +.kitchen ::-webkit-file-upload-button { + -webkit-appearance: button; + /* 1 */ + font: inherit; + /* 2 */ +} + +/* Interactive + ========================================================================== */ +/* + * Add the correct display in Edge, IE 10+, and Firefox. + */ +.kitchen details { + display: block; +} + +/* + * Add the correct display in all browsers. + */ +.kitchen summary { + display: list-item; +} + +/* Misc + ========================================================================== */ +/** + * Add the correct display in IE 10+. + */ +.kitchen template { + display: none; +} + +/** + * Add the correct display in IE 10. + */ +.kitchen [hidden] { + display: none; +} + +.kitchen .btn { + border: none !important; + outline: 0 !important; + transition: 0.5s; +} + +.kitchen .btn-primary { + border-radius: 4px; + font-size: 14px; + + letter-spacing: normal; + text-decoration: none; + padding: 12px 25px; + position: relative; + font-weight:700; + color: var(--white-color) !important; + transition: all 0.3s; + background-color: var(--cooking) !important; + text-transform: uppercase; + border:1px solid !important; + border-color:var(--cooking) !important; +} + +.kitchen .btn-primary:hover { + color: var(--cooking) !important; + transition: all 0.3s; + background-color: transparent !important; + +} + + +.kitchen .btn-secondary { + border-radius: 4px; + font-size: 14px; + text-transform: uppercase; + border:1px solid !important; + border-color:var(--draft) !important; + letter-spacing: normal; + text-decoration: none; + padding: 12px 25px; + position: relative; + font-weight:700; + color: var(--white-color) !important; + transition: all 0.3s; + background-color: var(--draft) !important; + +} + +.kitchen .btn-secondary:hover { + color: var(--draft) !important; + transition: all 0.3s; + background-color: transparent !important; + +} + +.kitchen .btn-transparent { + padding: 0; + font-size: 12px; +} + +.kitchen .infiniarc_banner { + padding-top: 50px; + margin-bottom: 100px; +} + +.kitchen .infiniarc_banner .banner_bg { + background-image: url(./../assets/banner/banne_1.jpg); + background-repeat: no-repeat; + background-position: center; + background-size: cover; + height: 50vh; + position: relative; + border-radius: 10px; +} + +.kitchen .infiniarc_banner .banner_bg_1 { + background-image: url(./../assets/banner/banne_1.jpg); +} + +.kitchen .infiniarc_banner .banner_bg_2 { + background-image: url(./../assets/banner/banner_2.jpg); +} + +.kitchen .infiniarc_banner .banner_bg_3 { + background-image: url(./../assets/banner/banner_3.jpg); +} + +.kitchen .top_bar { + background-color: var(--white-color); + padding: 20px 15px 10px 25px; + box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.25); + border-radius: 5px; + margin-top: 20px; +} +.kitchen .fixed-top { + position: fixed; + top: 20px; + right: 0; + left: 0; + z-index: 1030; + margin: auto; + width: 69%; +} + +.kitchen .top_bar ul { + padding-left: 0; + display: flex; + flex-wrap: wrap; + width : 100%; + justify-content: space-evenly; +} + +.kitchen .top_bar ul li { + padding-right: 25px; +} + +.kitchen .top_bar ul li a { + display: flex; + align-items: center; + text-decoration: none; +} + +.kitchen .top_bar ul li a .icon { + background-color: var(--white-color); + padding: 6px 8px; + box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); +} + +.kitchen .top_bar ul li a .icon svg { + height: 30px !important; + display: block; +} + + +.kitchen .top_bar ul li a span { + margin-left: 15px; + color: var(--draft); + font-size: 30px; + font-weight: 700; + padding-top: 5px; +} + +.kitchen .top_bar ul li a .cooking { + color: var(--cooking) !important; +} + +.kitchen .top_bar ul li a .completed { + color: var(--completed); +} + +.kitchen .screen_info .wrapper .card { + box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); + transition: box-shadow 0.3s ease-out, transform 0.3s ease-out, opacity 0.2s ease-out; + transform: translate(0px, 0px); + -webkit-transform: translate(0px, 0px); + -moz-transform: translate(0px, 0px); + transition: 0.5s; + margin-bottom: 40px; +} + +.kitchen .screen_info .wrapper .card:hover { + transform: translate(0, -4px); + -webkit-transform: translate(0, -4px); + -moz-transform: translate(0, -4px); + transition: 0.5s; + box-shadow: rgba(45, 45, 45, 0.05) 0px 2px 2px, rgba(49, 49, 49, 0.05) 0px 4px 4px, rgba(42, 42, 42, 0.05) 0px 8px 8px, rgba(32, 32, 32, 0.05) 0px 16px 16px, rgba(49, 49, 49, 0.05) 0px 32px 32px, rgba(35, 35, 35, 0.05) 0px 64px 64px; +} + +.kitchen .screen_info .wrapper .card .card-header { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + border: none; +} + +.kitchen .screen_info .wrapper .card .card-header .left { + display: flex; +} + +.kitchen .screen_info .wrapper .card .card-header .left .icon { + background-color: var(--white-color); + padding: 6px 8px; + box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); + height: 55px; + width: 45px; + border-radius: 5px; + margin-right: 10px; + + display: flex; + align-items: center; + justify-content: center; +} + +.kitchen .screen_info .wrapper .card .card-header .left .status h4 { + font-size: 26px; + color: var(--draft); + text-transform: capitalize; + font-weight: 700; + margin-bottom: 0; +} + +.kitchen .screen_info .wrapper .card .card-header .left .status .mt { + margin-top: -10px; + color: var(--draft); +} + +.kitchen .screen_info .wrapper .card .card-header .left .status .c_blue { + color: var(--cooking); +} + +.kitchen .screen_info .wrapper .card .card-header .left .status .c_white { + color: var(--white-color); +} +@media (max-width: 1287px) { + /* Responsive styles */ + .kitchen .screen_info .wrapper .card .card-header .right { +padding-top:0px; +} + + } +.kitchen .screen_info .wrapper .card .card-header .right { +padding-top:8px; +} +.kitchen .screen_info .wrapper .card .card-header .right span { + font-size: 18px; + font-weight: 700; +} + +.kitchen .screen_info .wrapper .card .bg_grey { + background-color: var(--bg-grey); +} + +.kitchen .screen_info .wrapper .card .bg_blue { + background-color: var(--bg-blue); + color: var(--cooking) !important; +} + +.kitchen .screen_info .wrapper .card .bg_green { + background-color: var(--completed); + color: var(--white-color); +} + +.kitchen .screen_info .wrapper .card .list-group .list-group-item { + font-size: 20px; + font-weight: 500; + color: var(--draft); + padding: 20px 30px; + text-align: start; + line-height: 30px; +} + +.kitchen .screen_info .wrapper .card .list-group .list-group-item span { + font-size: 20px; + font-weight: 700; + margin-right: 5px; +} +.kitchen_order_count{ + display: flex; + align-items: center; + justify-content: center; margin-top: 10px; + font-size: 16px !important; + border-radius: 5px !important; + font-weight: bold !important; + background-color: #FA3E3E; + color:white !important; +} \ No newline at end of file diff --git a/pos_kitchen_screen_odoo/static/src/js/fields_load.js b/pos_kitchen_screen_odoo/static/src/js/fields_load.js new file mode 100644 index 000000000..812fa06f9 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/js/fields_load.js @@ -0,0 +1,20 @@ +/** @odoo-module */ + +import { patch } from "@web/core/utils/patch"; +import { PosStore } from "@point_of_sale/app/store/pos_store"; + +patch(PosStore.prototype, { + /** + * Processes loaded data for the Point of Sale store. + * + * @param {Object} loadedData - The data loaded for the Point of Sale. + * @returns {Promise} A promise that resolves when the data is processed. + */ + async _processData(loadedData) { + await super._processData(...arguments); + this.pos_orders = loadedData['pos.order']; + this.pos_order_lines = loadedData['pos.order.line']; + }, +}); + + diff --git a/pos_kitchen_screen_odoo/static/src/js/kitchen_screen.js b/pos_kitchen_screen_odoo/static/src/js/kitchen_screen.js new file mode 100644 index 000000000..22162cfb2 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/js/kitchen_screen.js @@ -0,0 +1,136 @@ +/** @odoo-module */ + +import { registry } from "@web/core/registry"; +const { Component, useState } = owl; +import { useService } from "@web/core/utils/hooks"; + + +class kitchen_screen_dashboard extends Component { + + setup() { + this.busService = this.env.services.bus_service; + this.busService.addChannel("pos_order_created"); + this.busService.addEventListener('notification', this.onPosOrderCreation.bind(this)); + + this.action = useService("action"); + this.rpc = this.env.services.rpc; + this.action = useService("action"); + this.orm = useService("orm"); + var self=this + this.state = useState({ + order_details: [], + shop_id:[], + stages: 'draft', + draft_count:[], + waiting_count:[], + ready_count:[], + lines:[] + }); + var session_shop_id; + //if refreshing the page then the last passed context (shop id) + //save to the session storage + if (this.props.action.context.default_shop_id) { + sessionStorage.setItem('shop_id', this.props.action.context.default_shop_id); + this.shop_id = this.props.action.context.default_shop_id; + session_shop_id = sessionStorage.getItem('shop_id'); + } else { + session_shop_id = sessionStorage.getItem('shop_id'); + this.shop_id = parseInt(session_shop_id, 10);; + } + self.orm.call("pos.order", "get_details", ["", self.shop_id,""]).then(function(result) { + self.state.order_details = result['orders'] + self.state.lines = result['order_lines'] + self.state.shop_id=self.shop_id + self.state.draft_count=self.state.order_details.filter((order) => order.order_status=='draft' && order.config_id[0]==self.state.shop_id).length + self.state.waiting_count=self.state.order_details.filter((order) => order.order_status=='waiting' && order.config_id[0]==self.state.shop_id).length + self.state.ready_count=self.state.order_details.filter((order) => order.order_status=='ready' && order.config_id[0]==self.state.shop_id).length + }); + } + + //Calling the onPosOrderCreation when an order is created or edited on the backend and return the notification + onPosOrderCreation(message){ + let payload = message.detail[0].payload + var self=this + if(payload.message == "pos_order_created" && payload.res_model == "pos.order"){ + self.orm.call("pos.order", "get_details", ["", self.shop_id,""]).then(function(result) { + self.state.order_details = result['orders'] + self.state.lines = result['order_lines'] + self.state.shop_id=self.shop_id + self.state.draft_count=self.state.order_details.filter((order) => order.order_status=='draft' && order.config_id[0]==self.state.shop_id).length + self.state.waiting_count=self.state.order_details.filter((order) => order.order_status=='waiting' && order.config_id[0]==self.state.shop_id).length + self.state.ready_count=self.state.order_details.filter((order) => order.order_status=='ready' && order.config_id[0]==self.state.shop_id).length + }); + } + } + + // cancel the order from the kitchen + cancel_order(e) { + var input_id = $("#" + e.target.id).val(); + this.orm.call("pos.order", "order_progress_cancel", [Number(input_id)]) + var current_order = this.state.order_details.filter((order) => order.id==input_id) + if(current_order){ + current_order[0].order_status = 'cancel' + } + } + // accept the order from the kitchen + accept_order(e) { + var input_id = $("#" + e.target.id).val(); + ScrollReveal().reveal("#" + e.target.id, { + delay: 1000, + duration: 2000, + opacity: 0, + distance: "50%", + origin: "top", + reset: true, + interval: 600, + }); + var self=this + this.orm.call("pos.order", "order_progress_draft", [Number(input_id)]) + var current_order = this.state.order_details.filter((order) => order.id==input_id) + if(current_order){ + current_order[0].order_status = 'waiting' + } + } + // set the stage is ready to see the completed stage orders + ready_stage(e) { + var self = this; + self.state.stages = 'ready'; + } + //set the stage is waiting to see the ready stage orders + waiting_stage(e) { + var self = this; + self.state.stages = 'waiting'; + } + //set the stage is draft to see the cooking stage orders + draft_stage(e) { + var self = this; + self.state.stages = 'draft'; + } + // change the status of the order from the kitchen + done_order(e) { + var self = this; + var input_id = $("#" + e.target.id).val(); + this.orm.call("pos.order", "order_progress_change", [Number(input_id)]) + var current_order = this.state.order_details.filter((order) => order.id==input_id) + if(current_order){ + current_order[0].order_status = 'ready' + } + } + // change the status of the product from the kitchen + accept_order_line(e) { + var input_id = $("#" + e.target.id).val(); + this.orm.call("pos.order.line", "order_progress_change", [Number(input_id)]) + var current_order_line=this.state.lines.filter((order_line) => order_line.id==input_id) + if (current_order_line){ + if (current_order_line[0].order_status == 'ready'){ + current_order_line[0].order_status = 'waiting' + } + else{ + current_order_line[0].order_status = 'ready' + } + } + } + +} +kitchen_screen_dashboard.template = 'KitchenCustomDashBoard'; +registry.category("actions").add("kitchen_custom_dashboard_tags", kitchen_screen_dashboard); \ No newline at end of file diff --git a/pos_kitchen_screen_odoo/static/src/js/order_button.js b/pos_kitchen_screen_odoo/static/src/js/order_button.js new file mode 100644 index 000000000..f01a3d3c7 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/js/order_button.js @@ -0,0 +1,142 @@ +/** @odoo-module */ +import { patch } from "@web/core/utils/patch"; +import { ActionpadWidget } from "@point_of_sale/app/screens/product_screen/action_pad/action_pad"; +import { useService } from "@web/core/utils/hooks"; +import { ErrorPopup } from "@point_of_sale/app/errors/popups/error_popup"; +import { _t } from "@web/core/l10n/translation"; + + +/** + * @props partner + */ + +patch(ActionpadWidget.prototype, { +setup() { + super.setup(); + this.orm = useService("orm"); + this.popup = useService("popup"); + + }, + get swapButton() { + return this.props.actionType === "payment" && this.pos.config.module_pos_restaurant; + }, + get currentOrder() { + return this.pos.get_order(); + }, + get swapButtonClasses() { + return { + "highlight btn-primary": this.currentOrder?.hasChangesToPrint(), + altlight: + !this.currentOrder?.hasChangesToPrint() && this.currentOrder?.hasSkippedChanges(), + }; + }, + async submitOrder() { + var line = [] + var self = this; + + + if (!this.clicked) { + this.clicked = true; + try { + var order_name=this.pos.selectedOrder.uid + await this.orm.call("pos.order", "check_order_status", ["", order_name]).then(function(result){ + if (result==false){ + self.kitchen_order_status=false + self.popup.add(ErrorPopup, { + title: _t("Order is Completed"), + body: _t("There Order is Completed please create a new Order"), + }); + } + else{ + self.kitchen_order_status=true + } + }); + if ( self.kitchen_order_status){ + await this.pos.sendOrderInPreparationUpdateLastChange(this.currentOrder); + for (const orders of this.pos.get_order().orderlines) { + line.push([0, 0, { + 'qty': orders.quantity, + 'price_unit': orders.price, + 'price_subtotal': orders.quantity * orders.price, + 'price_subtotal_incl': orders.quantity * orders.price, + 'discount': orders.discount, + 'product_id': orders.product.id, + 'tax_ids': [ + [6, false, []] + ], + 'id': 29, + 'pack_lot_ids': [], + 'full_product_name': orders.product.display_name, + 'price_extra': orders.price_extra, + 'name': 'newsx/0031', + 'is_cooking': true, + 'note':orders.note + }]) + } + var orders = [{ + 'pos_reference': this.pos.get_order().uid, + 'session_id':1, + 'amount_total': 0, + 'amount_paid': 0, + 'amount_return': '0', + 'amount_tax': 2.18, + 'lines': line, + 'is_cooking': true, + 'order_status': 'draft', + 'company_id': this.pos.company.id, + 'session_id':this.currentOrder.pos_session_id, + 'hour':self.currentOrder.date_order.c.hour, + 'minutes':self.currentOrder.date_order.c.minute, + 'table_id':this.pos.get_order().pos.table.id, + 'floor':this.pos.get_order().pos.currentFloor.name, + 'config_id':this.pos.get_order().pos.config.id + }] + await self.orm.call("pos.order", "get_details", ["", self.pos.config.id, orders]) + } + } finally { + this.clicked = false; + } + } + }, + hasQuantity(order) { + if (!order) { + return false; + } else { + return ( + order.orderlines.reduce((totalQty, line) => totalQty + line.get_quantity(), 0) > 0 + ); + } + }, + get highlightPay() { + return ( + super.highlightPay && + !this.currentOrder.hasChangesToPrint() && + this.hasQuantity(this.currentOrder) + ); + }, + get categoryCount() { + const orderChange = this.currentOrder.getOrderChanges().orderlines; + const categories = Object.values(orderChange).reduce((acc, curr) => { + const categoryId = this.pos.db.product_by_id[curr.product_id].pos_categ_ids[0]; + const category = this.pos.db.category_by_id[categoryId]; + if (category) { + if (!acc[category.id]) { + acc[category.id] = { count: curr.quantity, name: category.name }; + } else { + acc[category.id].count += curr.quantity; + } + } + return acc; + }, {}); + return Object.values(categories); + }, + get displayCategoryCount() { + return this.categoryCount.slice(0, 3); + }, + get isCategoryCountOverflow() { + if (this.categoryCount.length > 3) { + return true; + } + return false; + }, +}); diff --git a/pos_kitchen_screen_odoo/static/src/js/order_payment.js b/pos_kitchen_screen_odoo/static/src/js/order_payment.js new file mode 100644 index 000000000..bd8063857 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/js/order_payment.js @@ -0,0 +1,78 @@ +/** @odoo-module **/ + +import { Order } from "@point_of_sale/app/store/models"; +import { patch } from "@web/core/utils/patch"; +import { ErrorPopup } from "@point_of_sale/app/errors/popups/error_popup"; +import { _t } from "@web/core/l10n/translation"; +const { Component, useState } = owl; +import { useService } from "@web/core/utils/hooks"; +import { jsonrpc } from "@web/core/network/rpc_service"; + +/** + * Patching the Order class to add custom functionality. + */ +patch(Order.prototype, { + setup(_defaultObj, options) { + super.setup(...arguments); + this.orm = options.pos.orm; + this.popup = options.pos.popup; + this.kitchen = true; + }, + /** + * Override of the pay method to handle payment logic. + */ + async pay() { + var order_name = this.pos.selectedOrder.uid; + var self = this; + await this.orm.call("pos.order", "check_order", ["", order_name]).then(function (result) { + if (result.category) { + var title = "No category found for your current order in the kitchen.(" + result.category + ')'; + self.kitchen = false; + self.popup.add(ErrorPopup, { + title: _t(title), + body: _t("No food items found for the specified category for this kitchen. Kindly remove the selected food and update the order by clicking the 'Order' button. Following that, proceed with the payment."), + }); + } else if (result == true) { + self.kitchen = false; + self.popup.add(ErrorPopup, { + title: _t("Food is not ready"), + body: _t("Please Complete all the food first."), + }); + } else { + self.kitchen = true; + } + }); + + if (!this.orderlines.length) { + return; + } + + if ( + this.orderlines.some( + (line) => line.get_product().tracking !== "none" && !line.has_valid_product_lot() + ) && + (this.pos.picking_type.use_create_lots || this.pos.picking_type.use_existing_lots) + ) { + const { confirmed } = await this.env.services.popup.add(ConfirmPopup, { + title: _t("Some Serial/Lot Numbers are missing"), + body: _t( + "You are trying to sell products with serial/lot numbers, but some of them are not set.\nWould you like to proceed anyway?" + ), + confirmText: _t("Yes"), + cancelText: _t("No"), + }); + + if (confirmed) { + if (this.kitchen) { + this.pos.mobile_pane = "right"; + this.env.services.pos.showScreen("PaymentScreen"); + } + } + } else { + if (this.kitchen) { + this.pos.mobile_pane = "right"; + this.env.services.pos.showScreen("PaymentScreen"); + } + } + } +}); diff --git a/pos_kitchen_screen_odoo/static/src/xml/kitchen_screen_templates.xml b/pos_kitchen_screen_odoo/static/src/xml/kitchen_screen_templates.xml new file mode 100644 index 000000000..c83e6cca0 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/xml/kitchen_screen_templates.xml @@ -0,0 +1,729 @@ + + diff --git a/pos_kitchen_screen_odoo/views/kitchen_screen_views.xml b/pos_kitchen_screen_odoo/views/kitchen_screen_views.xml new file mode 100644 index 000000000..450719f64 --- /dev/null +++ b/pos_kitchen_screen_odoo/views/kitchen_screen_views.xml @@ -0,0 +1,96 @@ + + + + + Dashboard + kitchen_custom_dashboard_tags + fullscreen + + + + Kitchen screen Main Action + ir.actions.act_window + kitchen.screen + tree,form + + + + kitchen.screen.view.form + kitchen.screen + +
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+ Click Here to See the kitchen Orders +
+
+
+
+
+
+
+
+ + kitchen.screen.view.tree + kitchen.screen + + + + + + + + +
\ No newline at end of file diff --git a/pos_kitchen_screen_odoo/views/pos_kitchen_screen_odoo_menus.xml b/pos_kitchen_screen_odoo/views/pos_kitchen_screen_odoo_menus.xml new file mode 100644 index 000000000..77036e3e7 --- /dev/null +++ b/pos_kitchen_screen_odoo/views/pos_kitchen_screen_odoo_menus.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/pos_kitchen_screen_odoo/views/pos_order_views.xml b/pos_kitchen_screen_odoo/views/pos_order_views.xml new file mode 100644 index 000000000..4cd49bc23 --- /dev/null +++ b/pos_kitchen_screen_odoo/views/pos_order_views.xml @@ -0,0 +1,15 @@ + + + + + pos.order.view.form.inherit.pos.kitchen.screen.odoo + pos.order + + + + + + + + + \ No newline at end of file