diff --git a/pos_kitchen_screen_odoo/README.rst b/pos_kitchen_screen_odoo/README.rst new file mode 100644 index 000000000..8952bc16d --- /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: (V18) Busthana, + +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..257e0ddac --- /dev/null +++ b/pos_kitchen_screen_odoo/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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..0b3c5938f --- /dev/null +++ b/pos_kitchen_screen_odoo/__manifest__.py @@ -0,0 +1,79 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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': '1.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': ['web','pos_restaurant'], + 'data': [ + 'security/pos_kitchen_screen_groups.xml', + "security/ir.model.access.csv", + 'data/kitchen_screen_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_pay.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.png', + ], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/pos_kitchen_screen_odoo/data/kitchen_screen_data.xml b/pos_kitchen_screen_odoo/data/kitchen_screen_data.xml new file mode 100644 index 000000000..833a76bda --- /dev/null +++ b/pos_kitchen_screen_odoo/data/kitchen_screen_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..80317920f --- /dev/null +++ b/pos_kitchen_screen_odoo/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 23.05.2025 +#### Version 18.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..a64447604 --- /dev/null +++ b/pos_kitchen_screen_odoo/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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..7ecdd48f8 --- /dev/null +++ b/pos_kitchen_screen_odoo/models/kitchen_screen.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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_create_multi + def create(self, vals_list): + """Used to create sequence""" + for vals in vals_list: + if vals.get('sequence', "New") == "New": + vals['sequence'] = self.env['ir.sequence'].next_by_code( + 'kitchen.screen') or "New" + return super().create(vals_list) 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..7497159c1 --- /dev/null +++ b/pos_kitchen_screen_odoo/models/pos_orders.py @@ -0,0 +1,264 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 +from datetime import datetime +import pytz + + +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")], + default='draft', + 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 order.order_status == "ready": + vals["order_status"] = order.order_status + 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 + vals['order_status'] = 'draft' + if not vals.get('name'): + vals['order_status'] = 'draft' + 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 orders: + 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()} + user_tz_str = self.env.user.tz or 'UTC' + user_tz = pytz.timezone(user_tz_str) + utc = pytz.utc + for value in values['orders']: + if value.get('table_id'): + value['floor'] = value['table_id'][1].split(',')[0].strip() + date_str = value['date_order'] + if isinstance(date_str, str): + utc_dt = datetime.strptime(date_str, "%Y-%m-%d %H:%M:%S") + utc_dt = utc.localize(utc_dt) + else: + utc_dt = utc.localize(value['date_order']) + + local_dt = utc_dt.astimezone(user_tz) + value['hour'] = local_dt.hour + value['minutes'] = local_dt.minute + + 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_is_cooking(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" + + @api.model + 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): + "Update order status" + 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..67ac2d5a0 --- /dev/null +++ b/pos_kitchen_screen_odoo/models/pos_session.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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..0edb4a1a2 --- /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_user,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/cybro-icon.png b/pos_kitchen_screen_odoo/static/description/assets/cybro-icon.png new file mode 100644 index 000000000..06e73e11d Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/cybro-icon.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/cybro-odoo.png b/pos_kitchen_screen_odoo/static/description/assets/cybro-odoo.png new file mode 100644 index 000000000..ed02e07a4 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/cybro-odoo.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/h2.png b/pos_kitchen_screen_odoo/static/description/assets/h2.png new file mode 100644 index 000000000..0bfc4707d Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/h2.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/arrows-repeat.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/banner-1.png b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-1.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/banner-2.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/banner-bg.png b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-bg.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/banner-bg.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/banner-call.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/banner-mail.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/banner-pattern.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/banner-promo.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/brand-pair.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/close-icon.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + 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/collabarate-icon.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + 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/cybro-logo.png b/pos_kitchen_screen_odoo/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/cybro-logo.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/down.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file 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/faq.png b/pos_kitchen_screen_odoo/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/faq.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/feature-icon.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/feature.png b/pos_kitchen_screen_odoo/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/feature.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/gear.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/hero.gif b/pos_kitchen_screen_odoo/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..380654dfe Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/hero.gif differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/hire-odoo.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + 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/life-ring-icon.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + 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/mail.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + 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/notes.png b/pos_kitchen_screen_odoo/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/notes.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/notification icon.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/odoo-consultancy.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/odoo-licencing.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/odoo-logo.png b/pos_kitchen_screen_odoo/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/odoo-logo.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/patter.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/pattern1.png b/pos_kitchen_screen_odoo/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/pattern1.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-piece-icon.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/replace-icon.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/screenshot-main.png b/pos_kitchen_screen_odoo/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/screenshot-main.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/screenshot.png b/pos_kitchen_screen_odoo/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/screenshot.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/skype-fill.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/skype.png b/pos_kitchen_screen_odoo/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/skype.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/skype.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/star-1.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/star-2.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/support.png b/pos_kitchen_screen_odoo/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/support.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/test-1 - Copy.png b/pos_kitchen_screen_odoo/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/test-1 - Copy.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/test-1.png b/pos_kitchen_screen_odoo/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/test-1.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/test-2.png b/pos_kitchen_screen_odoo/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/test-2.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/translate.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/video.png b/pos_kitchen_screen_odoo/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/video.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/whatsapp.png b/pos_kitchen_screen_odoo/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/icons/whatsapp.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/icons/wrench-icon.svg b/pos_kitchen_screen_odoo/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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.gif b/pos_kitchen_screen_odoo/static/description/assets/modules/1.gif new file mode 100644 index 000000000..ae3a880a2 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/modules/1.gif differ 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..d19e2b352 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/3.png b/pos_kitchen_screen_odoo/static/description/assets/modules/3.png new file mode 100644 index 000000000..8513873ea Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/modules/3.png 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/4.png b/pos_kitchen_screen_odoo/static/description/assets/modules/4.png new file mode 100644 index 000000000..3bedf7981 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/modules/4.png 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..0e311ca87 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..67c7f7062 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/hero.gif b/pos_kitchen_screen_odoo/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..c5a877f6d 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/pos1.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos1.png new file mode 100644 index 000000000..8987f7599 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos1.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos10.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos10.png new file mode 100644 index 000000000..688ca843c Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos10.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos11.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos11.png new file mode 100644 index 000000000..777121519 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos11.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos2.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos2.png new file mode 100644 index 000000000..ca96bc2f0 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos2.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos3.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos3.png new file mode 100644 index 000000000..42ba30430 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos3.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos4.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos4.png new file mode 100644 index 000000000..7ef4ea662 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos4.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos5.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos5.png new file mode 100644 index 000000000..dfc5e3f55 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos5.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos6.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos6.png new file mode 100644 index 000000000..6e7c8e960 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos6.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos7.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos7.png new file mode 100644 index 000000000..6cd852311 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos7.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos8.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos8.png new file mode 100644 index 000000000..760e7b8b6 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos8.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos9.png b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos9.png new file mode 100644 index 000000000..bf7912985 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/screenshots/pos9.png differ diff --git a/pos_kitchen_screen_odoo/static/description/assets/y18.jpg b/pos_kitchen_screen_odoo/static/description/assets/y18.jpg new file mode 100644 index 000000000..eea1714f2 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/assets/y18.jpg differ diff --git a/pos_kitchen_screen_odoo/static/description/banner.png b/pos_kitchen_screen_odoo/static/description/banner.png new file mode 100644 index 000000000..a8cc021e5 Binary files /dev/null and b/pos_kitchen_screen_odoo/static/description/banner.png 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..e4f8cdad6 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 100644 index 000000000..1088f5453 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/description/index.html @@ -0,0 +1,1285 @@ + + + + + + POS Kitchen Screen + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+
+ +
+
+
+
+

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

+

POS Kitchen Screen +

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

Key + Heighlights

+
+
+
+
+ +
+
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.

+
+
+
+
+ +
+
+
+ POS Kitchen Screen +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ POS Kitchen screen Access Right + +

+
+
+

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

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

+ Create New + + kitchen screen +

+
+
+

+ 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 accepting 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.

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

+ Real-time Orders.

+
+ +
+
+
+
+
+
+ +
+

+ Efficient Order Management.

+
+
+
+
+
+
+
+ +
+

+ Comprehensive Order Details.

+
+ +
+
+
+
+
+
+ +
+

+ Error Prevention Mechanism

+
+ +
+
+
+
+
+
+ +
+

+ User-Friendly Interface

+
+
+
+
+
+
+
+ +
+

+ Multi-Order Capability

+
+
+
+
+
+
+ +
+
+

+ Latest Release 18.0.1.0.0 +

+ + 16th February, 2025 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + + + + +
+

+ Our Services

+ +
+
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + 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..98d75739c --- /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, onWillStart, useState, onMounted } = owl; +import { useService } from "@web/core/utils/hooks"; + + +class kitchen_screen_dashboard extends Component { + setup(env) { + super.setup(); + this.busService = this.env.services.bus_service; + this.busService.addChannel("pos_order_created"); + onWillStart(() => { + 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..67088a3a4 --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/js/order_button.js @@ -0,0 +1,153 @@ +/** @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 { AlertDialog } from "@web/core/confirmation_dialog/confirmation_dialog"; +import { _t } from "@web/core/l10n/translation"; +import { TicketScreen } from "@point_of_sale/app/screens/ticket_screen/ticket_screen"; + + +/** + * @props partner + */ + +patch(ActionpadWidget.prototype, { +setup() { + super.setup(); + this.orm = useService("orm"); + + }, + get swapButton() { + return ( + this.pos.config.module_pos_restaurant && this.pos.mainScreen.component !== TicketScreen + ); + }, + get currentOrder() { + return this.pos.get_order(); + }, + get swapButtonClasses() { + return { + "highlight btn-primary justify-content-between": this.displayCategoryCount.length, + "btn-light pe-none disabled justify-content-center": !this.displayCategoryCount.length, + altlight: !this.hasChangesToPrint && this.currentOrder?.hasSkippedChanges(), + }; + }, + async submitOrder() { + var line = [] + var self = this; + if (!this.clicked) { + this.clicked = true; + try { + var order_name=this.pos.selectedOrder.name + await self.orm.call("pos.order", "check_order_status", ["", this.pos.get_order().pos_reference]).then(function(result){ + if (result==false){ + self.kitchen_order_status=false + self.env.services.dialog.add(AlertDialog, { + title: _t("Order is Completed"), + body: _t("This 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().lines) { + line.push([0, 0, { + 'qty': orders.quantity, + 'price_unit': orders.price_unit, + 'price_subtotal': orders.price_subtotal, + 'price_subtotal_incl': orders.price_subtotal_incl, + 'discount': orders.discount, + 'product_id': orders.product_id.id, + 'tax_ids': [ + [6, 0, orders.tax_ids.map((tax) => tax.id)] + ], + 'id': orders.id, + 'pack_lot_ids': [], + 'full_product_name': orders.product_id.display_name, + 'price_extra': orders.price_extra, + 'name': 'newsx/0031', + 'is_cooking': true, + 'note':orders.note + }]) + } + const date = new Date(self.currentOrder.date_order.replace(' ', 'T')); + var orders = [{ + 'pos_reference': this.pos.get_order().pos_reference, + 'session_id':this.pos.get_order().session_id.id, + 'amount_total': this.pos.get_order().amount_total, + 'amount_paid': this.pos.get_order().amount_paid, + 'amount_return': this.pos.get_order().amount_return, + 'amount_tax': this.pos.get_order().amount_tax, + 'lines': line, + 'is_cooking': true, + 'order_status': 'draft', + 'company_id': this.pos.company.id, + 'hour':date.getHours(), + 'minutes':date.getMinutes(), + 'table_id':this.pos.get_order().table_id.id, + 'floor':this.pos.get_order().table_id.floor_id.name, + 'config_id':this.pos.get_order().config_id.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.lines.reduce((totalQty, line) => totalQty + line.get_quantity(), 0) > 0 + ); + } + }, + get highlightPay() { + return ( + this.currentOrder?.lines?.length && + !this.hasChangesToPrint && + this.hasQuantity(this.currentOrder) + ); + }, + get categoryCount() { + const orderChanges = this.getOrderChanges(); + const linesChanges = orderChanges.orderlines; + + const categories = Object.values(linesChanges).reduce((acc, curr) => { + const categories = + this.models["product.product"].get(curr.product_id)?.pos_categ_ids || []; + + for (const category of categories.slice(0, 1)) { + 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), + ...("generalNote" in orderChanges ? [{ count: 1, name: _t("General Note") }] : []), + ]; + }, + get displayCategoryCount() { + return this.pos.categoryCount.slice(0, 4); + }, + get isCategoryCountOverflow() { + if (this.pos.categoryCount.length > 4) { + return true; + } + return false; + }, +}); diff --git a/pos_kitchen_screen_odoo/static/src/js/order_pay.js b/pos_kitchen_screen_odoo/static/src/js/order_pay.js new file mode 100644 index 000000000..25b709c6d --- /dev/null +++ b/pos_kitchen_screen_odoo/static/src/js/order_pay.js @@ -0,0 +1,92 @@ +/** @odoo-module **/ +import { PosStore } from "@point_of_sale/app/store/pos_store"; +import { patch } from "@web/core/utils/patch"; +import { AlertDialog } from "@web/core/confirmation_dialog/confirmation_dialog"; +import { _t } from "@web/core/l10n/translation"; +const { Component, useState } = owl; +import { useService } from "@web/core/utils/hooks"; +import { rpc } from "@web/core/network/rpc"; +import { deduceUrl, random5Chars, uuidv4, getOnNotified } from "@point_of_sale/utils"; +import { + makeAwaitable, + ask, + makeActionAwaitable, +} from "@point_of_sale/app/store/make_awaitable_dialog"; + + +/* + * Patching the Order class to add custom functionality. + */ +patch(PosStore.prototype, { + async setup(env) { + await super.setup(...arguments); + + this.kitchen = true; + + }, + async initServerData() { + await this.processServerData(); + this.onNotified = getOnNotified(this.bus, this.config.access_token); + return await this.afterProcessServerData(); + }, + async pay() { + let order_name = this.get_order().pos_reference; + let self = this; + const result = await rpc("/web/dataset/call_kw/pos.order/check_order",{ + model: 'pos.order', method: 'check_order', + args: [order_name], + kwargs: {}, + }); + if (result.category) { + let title = "No category found for your current order in the kitchen.(" + result.category + ')'; + self.kitchen = false; + await this.env.services.dialog.add(AlertDialog, { + 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."), + }); + return false + } else if (result == true) { + self.kitchen = false; + await this.env.services.dialog.add(AlertDialog, { + title: _t("Food is not ready"), + body: _t("Please Complete all the food first."), + }); + return false + } else { + self.kitchen = true; + } + + const currentOrder = this.get_order(); + + if (!currentOrder.canPay()) { + return; + } + + if ( + currentOrder.lines.some( + (line) => line.get_product().tracking !== "none" && !line.has_valid_product_lot() + ) && + (this.pickingType.use_create_lots || this.pickingType.use_existing_lots) && (result == false) + ) { + const confirmed = await ask(this.env.services.dialog, { + 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?" + ), + }); + if (confirmed) { + this.mobile_pane = "right"; + this.env.services.pos.showScreen("PaymentScreen", { + orderUuid: this.selectedOrderUuid, + }); + } + } else { + this.mobile_pane = "right"; + this.env.services.pos.showScreen("PaymentScreen", { + orderUuid: this.selectedOrderUuid, + }); + } + } + + +}); \ No newline at end of file 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..2e2ebddab --- /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 + list,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