diff --git a/pos_dashboard_ks/README.rst b/pos_dashboard_ks/README.rst deleted file mode 100644 index 5b78222e5..000000000 --- a/pos_dashboard_ks/README.rst +++ /dev/null @@ -1,18 +0,0 @@ -POS Kitchen Screen Dashboard -============================ -POS Kitchen Screen Dashboard - -Installation -============ - - www.odoo.com/documentation/15.0/setup/install.html - - Install our custom addon - -Configuration -============= - - No additional configurations needed - -Credits -======= -Developer: Fawas V15 @ cybrosys, Contact: odoo@cybrosys.com - diff --git a/pos_dashboard_ks/__init__.py b/pos_dashboard_ks/__init__.py deleted file mode 100644 index 045bdf0ed..000000000 --- a/pos_dashboard_ks/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2022-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 \ No newline at end of file diff --git a/pos_dashboard_ks/__manifest__.py b/pos_dashboard_ks/__manifest__.py deleted file mode 100644 index 0b7ab0afd..000000000 --- a/pos_dashboard_ks/__manifest__.py +++ /dev/null @@ -1,59 +0,0 @@ -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2022-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 Dashboard", - 'version': "15.0.1.0.0", - 'category': "Tools", - 'summary': """ - Point of sale Kitchen Screen Dashboard - """, - 'description': """ - Point of sale Kitchen Screen Dashboard - """, - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'maintainer': 'Cybrosys Techno Solutions', - 'website': "https://www.cybrosys.com", - 'data': [ - 'security/pos_kitchengroup.xml', - 'views/dashboard_menu_view.xml', - 'views/user_views.xml' - ], - 'images': ['static/description/banner.png'], - 'depends': [ - 'web', - 'point_of_sale', - 'pos_restaurant' - ], - "assets": { - "web.assets_backend": [ - "pos_dashboard_ks/static/src/js/dashboard.js", - "pos_dashboard_ks/static/src/css/custom.css", - ], - 'web.assets_qweb': [ - "pos_dashboard_ks/static/src/xml/dashboard_template.xml", - ], - }, - 'license': 'LGPL-3', - 'installable': True, - 'application': False, - 'auto_install': False, -} diff --git a/pos_dashboard_ks/doc/RELEASE_NOTES.md b/pos_dashboard_ks/doc/RELEASE_NOTES.md deleted file mode 100644 index 25ab769f9..000000000 --- a/pos_dashboard_ks/doc/RELEASE_NOTES.md +++ /dev/null @@ -1,7 +0,0 @@ -## Module - -#### 23.09.2022 -#### Version 15.0.0.0 - -##### Initial Commit for pos_dashboard_ks - diff --git a/pos_dashboard_ks/models/__init__.py b/pos_dashboard_ks/models/__init__.py deleted file mode 100644 index 720897d54..000000000 --- a/pos_dashboard_ks/models/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2020-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 pos_order -from . import res_users \ No newline at end of file diff --git a/pos_dashboard_ks/models/pos_order.py b/pos_dashboard_ks/models/pos_order.py deleted file mode 100644 index 181f74623..000000000 --- a/pos_dashboard_ks/models/pos_order.py +++ /dev/null @@ -1,69 +0,0 @@ -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2020-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, fields, api -import logging - -_logger = logging.getLogger(__name__) - - -class PosOrder(models.Model): - _inherit = "pos.order" - - start_date = fields.Datetime(string="Start date") - end_date = fields.Datetime(string="End date") - dashboard_state = fields.Char(compute="compute_dashboard_state", store=True, default="pending") - - @api.depends('lines.dashboard_state') - def compute_dashboard_state(self): - for order in self: - order.dashboard_state = 'pending' - if len(order.lines.filtered(lambda r: r.dashboard_state == 'in_progress')) > 0: - order.dashboard_state = 'in_progress' - if len(order.lines.filtered(lambda r: r.dashboard_state == 'done')) == len(order.lines): - order.dashboard_state = 'done' - - -class PosOrderLine(models.Model): - _inherit = "pos.order.line" - - start_date = fields.Datetime(string="Start date") - end_date = fields.Datetime(string="End date") - dashboard_state = fields.Selection(compute="compute_dashboard_state", store=True, - selection=[('pending', 'Pending'), ('in_progress', 'In progres'), - ('done', 'Done')], default="pending") - - @api.depends('start_date', 'end_date') - def compute_dashboard_state(self): - for line in self: - line.dashboard_state = 'pending' - if line.start_date: - line.dashboard_state = 'in_progress' - if line.end_date: - line.dashboard_state = 'done' - if line.start_date and line.end_date: - time_delta = (line.end_date - line.start_date) - - def state_change(self, state): - if 'start_date' in state: - self.start_date = state['start_date'] - if 'end_date' in state: - self.end_date = state['end_date'] diff --git a/pos_dashboard_ks/models/res_users.py b/pos_dashboard_ks/models/res_users.py deleted file mode 100644 index 3d578d929..000000000 --- a/pos_dashboard_ks/models/res_users.py +++ /dev/null @@ -1,28 +0,0 @@ -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2020-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, fields - - -class ResUsers(models.Model): - _inherit = "res.users" - - kitchen_category_ids = fields.Many2many(comodel_name="pos.category", string="Kitchen categories") - pos_config_ids = fields.Many2many(comodel_name="pos.config", string="POS") diff --git a/pos_dashboard_ks/security/pos_kitchengroup.xml b/pos_dashboard_ks/security/pos_kitchengroup.xml deleted file mode 100644 index 7cd335172..000000000 --- a/pos_dashboard_ks/security/pos_kitchengroup.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - POS Kitchen Screen - - POS Kitchen Screen Access - - - diff --git a/pos_dashboard_ks/static/description/assets/icons/check.png b/pos_dashboard_ks/static/description/assets/icons/check.png deleted file mode 100644 index c8e85f51d..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/check.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/chevron.png b/pos_dashboard_ks/static/description/assets/icons/chevron.png deleted file mode 100644 index 2089293d6..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/chevron.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/cogs.png b/pos_dashboard_ks/static/description/assets/icons/cogs.png deleted file mode 100644 index 95d0bad62..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/cogs.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/consultation.png b/pos_dashboard_ks/static/description/assets/icons/consultation.png deleted file mode 100644 index 8319d4baa..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/consultation.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/ecom-black.png b/pos_dashboard_ks/static/description/assets/icons/ecom-black.png deleted file mode 100644 index a9385ff13..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/ecom-black.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/education-black.png b/pos_dashboard_ks/static/description/assets/icons/education-black.png deleted file mode 100644 index 3eb09b27b..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/education-black.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/hotel-black.png b/pos_dashboard_ks/static/description/assets/icons/hotel-black.png deleted file mode 100644 index 130f613be..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/hotel-black.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/license.png b/pos_dashboard_ks/static/description/assets/icons/license.png deleted file mode 100644 index a5869797e..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/license.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/lifebuoy.png b/pos_dashboard_ks/static/description/assets/icons/lifebuoy.png deleted file mode 100644 index 658d56ccc..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/lifebuoy.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/manufacturing-black.png b/pos_dashboard_ks/static/description/assets/icons/manufacturing-black.png deleted file mode 100644 index 697eb0e9f..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/manufacturing-black.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/pos-black.png b/pos_dashboard_ks/static/description/assets/icons/pos-black.png deleted file mode 100644 index 97c0f90c1..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/pos-black.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/puzzle.png b/pos_dashboard_ks/static/description/assets/icons/puzzle.png deleted file mode 100644 index 65cf854e7..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/puzzle.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/restaurant-black.png b/pos_dashboard_ks/static/description/assets/icons/restaurant-black.png deleted file mode 100644 index 4a35eb939..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/restaurant-black.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/service-black.png b/pos_dashboard_ks/static/description/assets/icons/service-black.png deleted file mode 100644 index 301ab51cb..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/service-black.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/trading-black.png b/pos_dashboard_ks/static/description/assets/icons/trading-black.png deleted file mode 100644 index 9398ba2f1..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/trading-black.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/training.png b/pos_dashboard_ks/static/description/assets/icons/training.png deleted file mode 100644 index 884ca024d..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/training.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/update.png b/pos_dashboard_ks/static/description/assets/icons/update.png deleted file mode 100644 index ecbc5a01a..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/update.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/user.png b/pos_dashboard_ks/static/description/assets/icons/user.png deleted file mode 100644 index 6ffb23d9f..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/user.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/icons/wrench.png b/pos_dashboard_ks/static/description/assets/icons/wrench.png deleted file mode 100644 index 6c04dea0f..000000000 Binary files a/pos_dashboard_ks/static/description/assets/icons/wrench.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/modules/1.png b/pos_dashboard_ks/static/description/assets/modules/1.png deleted file mode 100644 index 3ad04ecfd..000000000 Binary files a/pos_dashboard_ks/static/description/assets/modules/1.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/modules/2.png b/pos_dashboard_ks/static/description/assets/modules/2.png deleted file mode 100644 index 499b1a72f..000000000 Binary files a/pos_dashboard_ks/static/description/assets/modules/2.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/modules/3.png b/pos_dashboard_ks/static/description/assets/modules/3.png deleted file mode 100644 index 5238bdeab..000000000 Binary files a/pos_dashboard_ks/static/description/assets/modules/3.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/modules/4.png b/pos_dashboard_ks/static/description/assets/modules/4.png deleted file mode 100644 index 7f2815273..000000000 Binary files a/pos_dashboard_ks/static/description/assets/modules/4.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/modules/5.png b/pos_dashboard_ks/static/description/assets/modules/5.png deleted file mode 100644 index cfb5be33c..000000000 Binary files a/pos_dashboard_ks/static/description/assets/modules/5.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/modules/6.png b/pos_dashboard_ks/static/description/assets/modules/6.png deleted file mode 100644 index f01b10060..000000000 Binary files a/pos_dashboard_ks/static/description/assets/modules/6.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/modules/approval_image.png b/pos_dashboard_ks/static/description/assets/modules/approval_image.png deleted file mode 100644 index 84fe94e80..000000000 Binary files a/pos_dashboard_ks/static/description/assets/modules/approval_image.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/modules/dynamic_image.png b/pos_dashboard_ks/static/description/assets/modules/dynamic_image.png deleted file mode 100644 index f55c47e0f..000000000 Binary files a/pos_dashboard_ks/static/description/assets/modules/dynamic_image.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/modules/list_view_image.png b/pos_dashboard_ks/static/description/assets/modules/list_view_image.png deleted file mode 100644 index 510d36ae9..000000000 Binary files a/pos_dashboard_ks/static/description/assets/modules/list_view_image.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/modules/multiple_ref_image.png b/pos_dashboard_ks/static/description/assets/modules/multiple_ref_image.png deleted file mode 100644 index 3fe90e552..000000000 Binary files a/pos_dashboard_ks/static/description/assets/modules/multiple_ref_image.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/modules/print_image.png b/pos_dashboard_ks/static/description/assets/modules/print_image.png deleted file mode 100644 index b470725a1..000000000 Binary files a/pos_dashboard_ks/static/description/assets/modules/print_image.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/assets/modules/product_return_image.png b/pos_dashboard_ks/static/description/assets/modules/product_return_image.png deleted file mode 100644 index 3afc14722..000000000 Binary files a/pos_dashboard_ks/static/description/assets/modules/product_return_image.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/banner.png b/pos_dashboard_ks/static/description/banner.png deleted file mode 100644 index dcb0aaf73..000000000 Binary files a/pos_dashboard_ks/static/description/banner.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/icon.png b/pos_dashboard_ks/static/description/icon.png deleted file mode 100644 index bc2cbc5e4..000000000 Binary files a/pos_dashboard_ks/static/description/icon.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/images/cybrosys.png b/pos_dashboard_ks/static/description/images/cybrosys.png deleted file mode 100644 index d76b5bafb..000000000 Binary files a/pos_dashboard_ks/static/description/images/cybrosys.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/images/item_note.png b/pos_dashboard_ks/static/description/images/item_note.png deleted file mode 100644 index 71ff0aca0..000000000 Binary files a/pos_dashboard_ks/static/description/images/item_note.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/images/kitchen.gif b/pos_dashboard_ks/static/description/images/kitchen.gif deleted file mode 100644 index 104d8a8f4..000000000 Binary files a/pos_dashboard_ks/static/description/images/kitchen.gif and /dev/null differ diff --git a/pos_dashboard_ks/static/description/images/kitchen_access.png b/pos_dashboard_ks/static/description/images/kitchen_access.png deleted file mode 100644 index 380fbe818..000000000 Binary files a/pos_dashboard_ks/static/description/images/kitchen_access.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/images/kitchen_config.png b/pos_dashboard_ks/static/description/images/kitchen_config.png deleted file mode 100644 index 3dfbc9933..000000000 Binary files a/pos_dashboard_ks/static/description/images/kitchen_config.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/images/kitchen_dashboard.png b/pos_dashboard_ks/static/description/images/kitchen_dashboard.png deleted file mode 100644 index 90d2c2d07..000000000 Binary files a/pos_dashboard_ks/static/description/images/kitchen_dashboard.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/images/logo.png b/pos_dashboard_ks/static/description/images/logo.png deleted file mode 100644 index 478462d3e..000000000 Binary files a/pos_dashboard_ks/static/description/images/logo.png and /dev/null differ diff --git a/pos_dashboard_ks/static/description/index.html b/pos_dashboard_ks/static/description/index.html deleted file mode 100644 index c9bf159ef..000000000 --- a/pos_dashboard_ks/static/description/index.html +++ /dev/null @@ -1,617 +0,0 @@ -
-
-
-

- POS Kitchen Screen

-

- Manage Kitchen Orders for POS -

- -
-
- - - - -
-
-

- Overview -

-
- -
-

- With this module you can manage your kitchen orders. - By installing this module you can give access to the desired user so that you can view the kitchen screen from the POS window. Also, you can specify which POS to show on the kitchen screen. - You can also specify which product category should be shown there..

- -
-
- -
-
-

- Features -

-
- -
-
- -
-
-

- Easy to manage Kitchen Orders.

-

- View POS orders by State.

-
-
- -
-
- -
-
-

- Single Tap State Change

-

- You can change the State of Order from the Kitchen Screen.

-
-
- -
-
- -
-
-

- Item Notes

-

- View Ordered item Notes from the Kitchen Screen.

-
-
- - - -
- -
-
-

- Screenshots -

-
- -
-

- Enable Debug mode. -

-

- POS Kitchen Screen Access

-

- After installation, give the user access to 'POS Kitchen Screen' from user settings.

- - -
- -
-

- Refresh the Page. -

-

- Kitchen Screen Configuration

-

- After giving access for the pos kitchen screen, Restart the page to see 'POS Kitchen Dashboard' after the Preference page Tab. -

-
    -
  • - Here you can provide the product category and POS that needs to be shown in the POS Kitchen Screen. -
  • -
- - -
- - -
-

- Open POS

-

- On POS Window click on the 'Kitchen Screen' menu.

-
    -
  • - The Created POS orders will display here under the Order State. -
  • -
  • - You can Change the state to Preparing by just clicking Start button inside the Order. - -
  • -
  • - You can Change the state to Done by clicking Done button for every order line inside the Box. - -
  • -
- -
- - -
-

- Item Notes

-

- By clicking on the notes icon that comes after the product name, you will see the item notes that are created when the order is placed.

- -
- -
- - -
-
-

Suggested Products

-
- - -
-
- - - -
-
-
-

Our Services

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

Our Industries

-
-
- -
-
- -
- Trading -
-

- Easily procure - and - sell your products

-
-
- -
-
- -
- POS -
-

- Easy - configuration - and convivial experience

-
-
- -
-
- -
- Education -
-

- A platform for - educational management

-
-
- -
-
- -
- Manufacturing -
-

- Plan, track and - schedule your operations

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

- Mobile - friendly, - awe-inspiring product pages

-
-
- -
-
- -
- Service Management -
-

- Keep track of - services and invoice

-
-
- -
-
- -
- Restaurant -
-

- Run your bar or - restaurant methodically

-
-
- -
-
- -
- Hotel Management -
-

- An - all-inclusive - hotel management application

-
-
- -
-
- - - - - -
-
-
-

Need Help?

-
-
-
- - -
- -
- - -
- -
- -
- -
-
- -
- -
- -
-
- -
-
-
- - -
\ No newline at end of file diff --git a/pos_dashboard_ks/static/src/css/custom.css b/pos_dashboard_ks/static/src/css/custom.css deleted file mode 100644 index 21faaf6ef..000000000 --- a/pos_dashboard_ks/static/src/css/custom.css +++ /dev/null @@ -1,255 +0,0 @@ -.o_content.kitchen { - background: rgb(62,146,255); - background: linear-gradient(90deg, rgba(62,146,255,1) 0%, rgba(28,127,255,1) 100%); -} - -.o_content.kitchen .btn { - border-radius: 5px; -} -.kitchen_container{ - padding:15px; - position: relative; - -} -.dashboard{ - background: #c3dfe3; - -} - -.kitchen_grid{ - float: left; - width: 33.33%; - text-align: center; - margin-top: -13px; -} -.title { - padding: 15px; - color:#fff; - -} -.order_name{ - color:inherit !important; -} -.recipie_description{ - color: black; - padding: 8px; -} -.o_content.kitchen .recipie_container, .o_content.kitchen .note_container { - background: #fff; - padding: 15px; - margin: 15px; - border-radius: 5px; -} - -.o_content.kitchen .recipie_container .icon-close, .o_content.kitchen .note_container .icon-close { - position: relative; - text-align: right; - font-size: 1.5rem; - cursor: pointer; -} - -.o_content.kitchen .recipie_container .icon-close-container, .o_content.kitchen .note_container .icon-close-container { - position: relative; - text-align: right; - margin-bottom: -15px; -} -.o_content.kitchen .show_receipie, .o_content.kitchen .show_note { - cursor: pointer; - color: #1d80ff; -} - -.o_content.kitchen .show_note_disabled { - cursor: pointer; - color: #ccc; -} - -.o_content.kitchen .recipie_container .recipie_wrapper, .o_content.kitchen .note_container .note_wrapper { - display: flex; - place-content: row; -} - -.o_content.kitchen .recipie_container .recipie_wrapper .product_image img { - max-width: 400px; -} - -.o_content.kitchen .recipie_container .recipie_wrapper .product_image { - margin-right: 15px; -} - -.i_content.kitchen .badge { - margin: 1px 2px 1px 0; - border-radius: 4px; - padding: 4px 7px; - padding-bottom: 6px; - font-weight: bold; -} -.heading_grid{ - border-radius: 15px; - background: teal; - position: sticky; - top: 0; - -} -.note_body{ - background: #bad6d9; - margin-top: 160px; - -} -.o_content.kitchen h3 { - color: #fff; -} -.title_wrapper_cont{ - display: flex; - justify-content: space-between; - } -.order_ref{ - font-size:13px; -} -.content{ - padding-left: 15px; - padding-right: 15px; -} -.badge{ - border: none !important; - } -.badge-light { - - color: #63666e !important; - background-color: #e7e7e7 !important; - padding: 6px 14px !important; - border-radius: 25px !important; - border: none !important; -} -.kitchen_order { - border: 1px solid #ccc; - margin: 10px; - min-width: 550px; - max-width: 600px; - background: #fff; - border-radius: 5px; - box-shadow: 2px 2px 3px #ccc; - margin-left: auto; - margin-right: auto; -} -.kitchen_grid table thead td { - font-weight: bold; -} - -.kitchen_grid table tbody td { - color: #888; - font-size: 15px; -} - -.kitchen_grid table thead td.qty-column, -.kitchen_grid table tbody td.qty-column { - max-width: 80px; -} - -.kitchen_grid table tr td { - text-align: center; -} - -.kitchen_grid table tr td.name-column { - text-align: left; -} - -.kitchen_grid table tr td.name-column .text { - font-size: 13px; - font-weight: bold; -} - -.kitchen_order .title_wrapper { - border-bottom: 1px solid #ccc; - text-align: center; -} -.title_wrapper { - padding: 15px 15px 5px 0px; - text-align: left; -} - -.kitchen_order .title_wrapper .col { - padding-left: 5px; - padding-right: 5px; -} - -.kitchen_order .title { - font-family: "Lato", "Open Sans", "Helvetica", Sans; - text-align: center; - font-size: 18px; - font-weight: bold; -} - -.kitchen_order .pos-reference { - font-size: 12px; - font-weight: bold; -} -.waiter{ - display: flex; - justify-content: space-between; - padding: 0px 15px 15px 15px; -} -.kitchen_order .waiter { - font-size: 12px; - font-weight: bold; -} -.btn_action{ - padding: 3px 10px; - border-radius: 5px; -} -.badge_state{ - width:75px; -} -.kitchen_order .content { - margin-top: 15px; - padding-bottom: 10px; - border-bottom: 1px solid #ccc; -} - - -.kitchen_order .footer { - position: relative; - right: 0; - bottom: 0px; - left: 0; - z-index: 1030; - padding-top: 15px; -} - -.kitchen_grid { - padding: 0px 1px; -} - -.kitchen_grid table { - width:100%; - table-layout: auto; - overflow-wrap: break-word; -} - -.o_content.kitchen .options_container { - margin: 5px 15px; - background: #fff; - padding: 5px 15px; - border-radius: 3px; - cursor: pointer; -} - -.o_content.kitchen .options_container .options_body { - padding: 15px 0px; -} - -.o_content.kitchen .options_container .chevron-icons { - float: right; -} - -.o_content.kitchen .options_container .options_body button { - background: #ccc; - color: #000; - border: none; - border-radius: 2px; - padding: 5px 10px; -} - -.o_content.kitchen .options_container .options_body button.active { - background: #2484ff; - color: #fff; -} \ No newline at end of file diff --git a/pos_dashboard_ks/static/src/js/dashboard.js b/pos_dashboard_ks/static/src/js/dashboard.js deleted file mode 100644 index c57f14e68..000000000 --- a/pos_dashboard_ks/static/src/js/dashboard.js +++ /dev/null @@ -1,179 +0,0 @@ -odoo.define('pos_dashboard_ks.dashboard_kanban', function (require) { - "use strict"; - - var AbstractAction = require('web.AbstractAction'); - var core = require('web.core'); - var session = require('web.session'); - var QWeb = core.qweb; - var DashboardKanban = AbstractAction.extend({ - template: 'dashboard_template', - events:{ - 'click .start_order_line': '_onStartOrEndOrderLine', - 'click .end_order_line': '_onStartOrEndOrderLine', - 'click .show_note': '_onShowNote', - }, - show_pending_orders: true, - show_in_progress_orders: true, - show_done_orders: true, - category_ids: [], - pos_config_ids: [], - - - init: function(parent, action) { - this._super(parent, action); - }, - - start: function() { - var self = this; - this._rpc({ - model: 'res.users', - method: 'search_read', - args: [[['id', '=', session.uid]], ['kitchen_category_ids']], - args: [[['id', '=', session.uid]], ['kitchen_category_ids', 'pos_config_ids']], - }).then(function (data) { - self.category_ids = data[0].kitchen_category_ids; - self.pos_config_ids = data[0].pos_config_ids; - self.load_data(); - }); - setInterval(function() { - self.load_data(); - }, 30000); - }, - - load_data: function () { - var self = this; - if ($('.dashboard_container').length === 0) { - self.$('.kanban_view').html(QWeb.render('dashboard_orders', {})); - } - var today = new Date(); - var dd = String(today.getDate()).padStart(2, '0'); - var mm = String(today.getMonth() + 1).padStart(2, '0'); - var yyyy = today.getFullYear(); - - today = yyyy + '-' + mm + '-' + dd; - var fields = ['id', 'dashboard_state', 'name', 'start_date', 'user_id', 'pos_reference', 'table_id', 'create_date', 'customer_count']; - self._rpc({ - model: 'pos.order.line', - method: 'search_read', - args: [[ - ['create_date', '>=', today], - ['product_id.pos_categ_id.id', 'in', self.category_ids], - ['order_id.session_id.config_id.id', 'in', self.pos_config_ids]], - ['dashboard_state', 'full_product_name', 'qty', 'order_id', 'product_id', 'note'] - ], - }).then(function(lines) { - console.log('lim', lines); - self._rpc({ - model: 'pos.order', - method: 'search_read', - args: [[['create_date', '>=', today], ['dashboard_state', '=', ['pending', 'in_progress', 'done']]], fields], - }).then(function(orders) { - orders.forEach(function(order) { - order.user_id = order.user_id && order.user_id.length > 0 ? order.user_id[1] : ''; - order.table_id = order.table_id && order.table_id.length > 0 ? order.table_id[1] : ''; - order.create_date = self.convertDateToLocale(new Date(order.create_date)); - }); - if (self.show_pending_orders) { - self.getPendingOrders(lines, orders); - } - if (self.show_in_progress_orders) { - self.getInProgressOrders(lines, orders); - } - if (self.show_done_orders) { - self.getDoneOrders(lines, orders); - } - - }); - - }); - - }, - - convertDateToLocale: function(date) { - var newDate = new Date(date.getTime()+date.getTimezoneOffset()*60*1000); - var offset = date.getTimezoneOffset() / 60; - var hours = date.getHours(); - newDate.setHours(hours - offset); - return newDate.toLocaleString(); - }, - getPendingOrders: function(lines, orders) { - var self = this; - var all_orders = this.getOrdersWithLines(orders, lines); - orders = all_orders.filter((o) => o.dashboard_state === 'pending'); - var processing_orders = all_orders.filter((o) => o.dashboard_state === 'in_progress'); - var done_orders = all_orders.filter((o) => o. dashboard_state === 'done'); - - this.$('.kitchen_grid.pending .pending_content').html(QWeb.render('dashboard_orders', { - orders: orders - })); - - this.$('.kitchen_grid.prepare .preparing_content').html(QWeb.render('dashboard_orders', { - orders: processing_orders - })); - - this.$('.kitchen_grid.done .done_content').html(QWeb.render('dashboard_orders', { - orders: done_orders - })); - - }, - - getInProgressOrders: function(lines, orders) { - var self = this; - orders = this.getOrdersWithLines(orders, lines); - orders = orders.filter((order) => { - const in_progress_lines = order.lines.filter((line) => line.dashboard_state === 'in_progress'); - const pending_lines = order.lines.filter((line) => line.dashboard_state === 'pending'); - const done_lines = order.lines.filter((line) => line.dashboard_state === 'done'); - return (in_progress_lines.length > 0) || (pending_lines.length > 0 && done_lines.length > 0); - }); - }, - - - - getDoneOrders: function(lines, orders) { - var self = this; - orders = this.getOrdersWithLines(orders, lines); - orders = orders.filter((order) => { - return order.lines.filter((line) => line.dashboard_state !== 'done').length === 0; - }); - }, - getOrdersWithLines: function(orders, lines) { - orders.forEach(function(order) { - order.lines = lines.filter((line) => line.order_id[0] === order.id); - }); - orders = orders.filter((order) => order.lines.length > 0); - return orders; - }, - _onStartOrEndOrderLine: function (ev) { - var today = new Date(); - var date = today.getFullYear()+'-'+String(today.getMonth()+1).padStart(2, '0') + '-'+String(today.getDate()).padStart(2, '0'); - var time = String(today.getHours()).padStart(2, '0') + ":" + String(today.getMinutes()).padStart(2, '0') + ":" + String(today.getSeconds()).padStart(2, '0'); - var dateTime = date+' '+time; - var self = this; - ev.stopPropagation(); - var values = {} - var id = $(ev.currentTarget).parent().data( "id"); - values[$(ev.currentTarget).data( "type") === 'start' ? 'start_date' : 'end_date'] = dateTime; - - this._rpc({ - model: 'pos.order.line', - method: 'state_change', - args: [[id], values], - }).then(function () { - self.load_data(); - }); - }, - _onShowNote: function (ev) { - var note = $(ev.currentTarget).data( "note"); - var html_data = '
' + note + '
'; - html_data += '
'; - self.$('.note_container').html(html_data); - self.$('.note_container').show(); - - }, - - - }); - - core.action_registry.add("dashboard_kanban", DashboardKanban); - }); \ No newline at end of file diff --git a/pos_dashboard_ks/static/src/xml/dashboard_template.xml b/pos_dashboard_ks/static/src/xml/dashboard_template.xml deleted file mode 100644 index 615ec3c6e..000000000 --- a/pos_dashboard_ks/static/src/xml/dashboard_template.xml +++ /dev/null @@ -1,137 +0,0 @@ - - - - -
-
-
-
-
-

Order

-
-
-
-
-
-

Preparing

-
-
-
- -
-
-

Done

-
-
-
-
-
-
-
-
- -
- - -
-
-
- -
- - - -
-
- - Guests: - - -
-
-
-
- - - - - - - - - - - - - - - - - - - -
ItemsQtyState
-
- - - - - - - - - - - - -
-
- Done - In progress - Pending - - - -
-
- -
-
-
-
-
- -
diff --git a/pos_dashboard_ks/views/dashboard_menu_view.xml b/pos_dashboard_ks/views/dashboard_menu_view.xml deleted file mode 100644 index 93805bd96..000000000 --- a/pos_dashboard_ks/views/dashboard_menu_view.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - Kitchen Screen - dashboard_kanban - - - - - \ No newline at end of file diff --git a/pos_dashboard_ks/views/user_views.xml b/pos_dashboard_ks/views/user_views.xml deleted file mode 100644 index 06165056d..000000000 --- a/pos_dashboard_ks/views/user_views.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - res.users - - - - - - - - - - - - - - - \ No newline at end of file