Browse Source

Jun 23 : [ADD] Initial Commit 'pos_takeaway'

pull/201/merge
AjmalCybro 2 years ago
parent
commit
c674bb5cfa
  1. 46
      pos_takeaway/README.rst
  2. 22
      pos_takeaway/__init__.py
  3. 59
      pos_takeaway/__manifest__.py
  4. 16
      pos_takeaway/data/ticket_scheduler.xml
  5. 7
      pos_takeaway/doc/RELEASE_NOTES.md
  6. 23
      pos_takeaway/models/__init__.py
  7. 70
      pos_takeaway/models/pos_order.py
  8. 64
      pos_takeaway/models/res_config_settings.py
  9. BIN
      pos_takeaway/static/description/assets/icons/check.png
  10. BIN
      pos_takeaway/static/description/assets/icons/chevron.png
  11. BIN
      pos_takeaway/static/description/assets/icons/cogs.png
  12. BIN
      pos_takeaway/static/description/assets/icons/consultation.png
  13. BIN
      pos_takeaway/static/description/assets/icons/ecom-black.png
  14. BIN
      pos_takeaway/static/description/assets/icons/education-black.png
  15. BIN
      pos_takeaway/static/description/assets/icons/hotel-black.png
  16. BIN
      pos_takeaway/static/description/assets/icons/license.png
  17. BIN
      pos_takeaway/static/description/assets/icons/lifebuoy.png
  18. BIN
      pos_takeaway/static/description/assets/icons/logo.png
  19. BIN
      pos_takeaway/static/description/assets/icons/manufacturing-black.png
  20. BIN
      pos_takeaway/static/description/assets/icons/pos-black.png
  21. BIN
      pos_takeaway/static/description/assets/icons/puzzle.png
  22. BIN
      pos_takeaway/static/description/assets/icons/restaurant-black.png
  23. BIN
      pos_takeaway/static/description/assets/icons/service-black.png
  24. BIN
      pos_takeaway/static/description/assets/icons/trading-black.png
  25. BIN
      pos_takeaway/static/description/assets/icons/training.png
  26. BIN
      pos_takeaway/static/description/assets/icons/update.png
  27. BIN
      pos_takeaway/static/description/assets/icons/user.png
  28. BIN
      pos_takeaway/static/description/assets/icons/wrench.png
  29. BIN
      pos_takeaway/static/description/assets/modules/1.png
  30. BIN
      pos_takeaway/static/description/assets/modules/2.png
  31. BIN
      pos_takeaway/static/description/assets/modules/3.png
  32. BIN
      pos_takeaway/static/description/assets/modules/4.png
  33. BIN
      pos_takeaway/static/description/assets/modules/5.png
  34. BIN
      pos_takeaway/static/description/assets/modules/6.png
  35. BIN
      pos_takeaway/static/description/assets/screenshots/hero.gif
  36. BIN
      pos_takeaway/static/description/assets/screenshots/pos1.png
  37. BIN
      pos_takeaway/static/description/assets/screenshots/pos2.png
  38. BIN
      pos_takeaway/static/description/assets/screenshots/pos3.png
  39. BIN
      pos_takeaway/static/description/assets/screenshots/pos4.png
  40. BIN
      pos_takeaway/static/description/assets/screenshots/pos5.png
  41. BIN
      pos_takeaway/static/description/assets/screenshots/pos6.png
  42. BIN
      pos_takeaway/static/description/assets/screenshots/pos7.png
  43. BIN
      pos_takeaway/static/description/banner.png
  44. BIN
      pos_takeaway/static/description/icon.png
  45. BIN
      pos_takeaway/static/description/images/checked.png
  46. BIN
      pos_takeaway/static/description/images/cybrosys.png
  47. 637
      pos_takeaway/static/description/index.html
  48. 46
      pos_takeaway/static/src/js/Screens/ProductScreen/ControlButtons/TakeAway.js
  49. 19
      pos_takeaway/static/src/js/Screens/ProductScreen/ProductScreen.js
  50. 30
      pos_takeaway/static/src/js/Screens/ReceiptScreen/OrderReceipt.js
  51. 17
      pos_takeaway/static/src/js/models.js
  52. 10
      pos_takeaway/static/src/xml/Screens/ProductScreen/ControlButtons/TakeAway.xml
  53. 37
      pos_takeaway/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml
  54. 17
      pos_takeaway/views/pos_order_views.xml
  55. 48
      pos_takeaway/views/res_config_settings_views.xml

46
pos_takeaway/README.rst

@ -0,0 +1,46 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
POS Restaurant Dine-in/TakeAway
===============================
* This module will add the options Dine-in and Take away in Odoo POS.
* A separate tokens will be generated for all Takeaway orders.
Installation
============
- www.odoo.com/documentation/15.0/setup/install.html
- Install our custom addon
License
-------
General Public License, Version 3 (AGPL v3).
(https://www.odoo.com/documentation/user/15.0/legal/licenses/licenses.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developer:
(V15) Raveena @ Cybrosys
Contacts
--------
* Mail Contact : odoo@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
==========
This module is maintained by Cybrosys Technologies.
For support and more information, please visit https://www.cybrosys.com
Further information
===================
HTML Description: `<static/description/index.html>`__

22
pos_takeaway/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import models

59
pos_takeaway/__manifest__.py

@ -0,0 +1,59 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'POS Restaurant Dine-in/TakeAway',
'version': '15.0.1.0.0',
'summary': "This module will add the options Dine-in "
"and Take away in Odoo POS.",
'description': """The POS user can make orders as Dine-in or Take
away and it will create separate token for Take away orders.""",
'category': 'Point of Sale',
'author': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': [
'point_of_sale', 'pos_restaurant', 'web'
],
'data': [
'data/ticket_scheduler.xml',
'views/res_config_settings_views.xml',
'views/pos_order_views.xml',
],
'assets': {
'web.assets_backend': [
'pos_takeaway/static/src/js/Screens/ProductScreen/ControlButtons/TakeAway.js',
'pos_takeaway/static/src/js/Screens/ProductScreen/ProductScreen.js',
'pos_takeaway/static/src/js/Screens/ReceiptScreen/OrderReceipt.js',
'pos_takeaway/static/src/js/models.js',
],
'web.assets_qweb': [
'pos_takeaway/static/src/xml/Screens/ProductScreen/ControlButtons/TakeAway.xml',
'pos_takeaway/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml',
],
},
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

16
pos_takeaway/data/ticket_scheduler.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<!-- Scheduler to reset the Token to 0 -->
<record id="ir_ticket_scheduler" model="ir.cron">
<field name="name">POS TakeAway Ticket Scheduler</field>
<field name="model_id" ref="model_pos_order"/>
<field name="state">code</field>
<field name="code">model.ticket_scheduler()</field>
<field name="interval_type">days</field>
<field name="interval_number">1</field>
<field name="numbercall">-1</field>
<field name="active">True</field>
</record>
</data>
</odoo>

7
pos_takeaway/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <pos_takeaway>
#### 08.06.2023
#### Version 15.0.1.0.0
#### ADD
- Initial Commit for POS Restaurant Dine-in/Take Away

23
pos_takeaway/models/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import pos_order
from . import res_config_settings

70
pos_takeaway/models/pos_order.py

@ -0,0 +1,70 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class PosOrder(models.Model):
_inherit = "pos.order"
is_takeaway = fields.Boolean(default=False, string="Is a Takeaway Order",
help="Is a Takeaway Order")
token_number = fields.Char(string="Token Number",
help="Token number starts from 1")
def generate_token(self, uid):
"""
This function check whether the order is a take-away order or a dine-in.
If it is a take-away order, it will create the token number for that
order and returns it.
:param : uid: the pos order id
:return : order.token_number: token number of the pos order having the
order reference uid
"""
uid = "Order " + uid[0]
order = self.env['pos.order'].search([('pos_reference', 'ilike', uid)])
order.is_takeaway = True
if not order.token_number and \
self.env['res.config.settings'].get_values()[
'generate_token']:
if self.env['res.config.settings'].get_values()[
'pos_token']:
order.token_number = int(
self.env['res.config.settings'].get_values()[
'pos_token']) + 1
else:
order.token_number = 1
self.env['ir.config_parameter'].sudo().set_param(
'pos_takeaway.pos_token',
order.token_number)
return order.token_number
else:
return 0
def ticket_scheduler(self):
"""This function will reset the Token to 0 by a cron job."""
generate_token = self.env['ir.config_parameter'].sudo().get_param(
'generate_token')
if generate_token:
self.env['ir.config_parameter'].sudo().set_param('pos_token', 0)

64
pos_takeaway/models/res_config_settings.py

@ -0,0 +1,64 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
generate_token = fields.Boolean(string="Generate Token",
help="This will generate separate token "
"for all Take Away orders.")
pos_token = fields.Integer(help="The token will be start from 1.",
string="Token")
takeaway = fields.Boolean(string="POS Takeaways",
help="This will enable the Take Away feature "
"on POS.")
def get_values(self):
"""supering the getter to get the takeaway, generate_token
and pos_token fields."""
res = super(ResConfigSettings, self).get_values()
res.update(
takeaway=self.env['ir.config_parameter'].sudo().get_param(
'pos_takeaway.takeaway'),
generate_token=self.env['ir.config_parameter'].sudo().get_param(
'pos_takeaway.generate_token'),
pos_token=self.env['ir.config_parameter'].sudo().get_param(
'pos_takeaway.pos_token')
)
return res
def set_values(self):
"""supering the setter to set the takeaway, generate_token
and pos_token fields."""
res = super(ResConfigSettings, self).set_values()
self.env['ir.config_parameter'].sudo().set_param(
'pos_takeaway.takeaway',
self.takeaway or False)
self.env['ir.config_parameter'].sudo().set_param(
'pos_takeaway.generate_token',
self.generate_token or False)
self.env['ir.config_parameter'].sudo().set_param(
'pos_takeaway.pos_token',
self.pos_token or 0)
return res

BIN
pos_takeaway/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
pos_takeaway/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
pos_takeaway/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
pos_takeaway/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
pos_takeaway/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
pos_takeaway/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
pos_takeaway/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
pos_takeaway/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
pos_takeaway/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
pos_takeaway/static/description/assets/icons/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
pos_takeaway/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
pos_takeaway/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
pos_takeaway/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
pos_takeaway/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
pos_takeaway/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
pos_takeaway/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
pos_takeaway/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
pos_takeaway/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
pos_takeaway/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
pos_takeaway/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
pos_takeaway/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
pos_takeaway/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
pos_takeaway/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
pos_takeaway/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
pos_takeaway/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
pos_takeaway/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
pos_takeaway/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 KiB

BIN
pos_takeaway/static/description/assets/screenshots/pos1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
pos_takeaway/static/description/assets/screenshots/pos2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 KiB

BIN
pos_takeaway/static/description/assets/screenshots/pos3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
pos_takeaway/static/description/assets/screenshots/pos4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 KiB

BIN
pos_takeaway/static/description/assets/screenshots/pos5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
pos_takeaway/static/description/assets/screenshots/pos6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

BIN
pos_takeaway/static/description/assets/screenshots/pos7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
pos_takeaway/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
pos_takeaway/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
pos_takeaway/static/description/images/checked.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
pos_takeaway/static/description/images/cybrosys.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

637
pos_takeaway/static/description/index.html

@ -0,0 +1,637 @@
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css"
integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">
</head>
<body></body>
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between" style="border-bottom: 1px solid #d5d5d5;">
<div class="my-3">
<img src="./assets/icons/logo.png" style="width: auto !important; height: 40px !important;">
</div>
<div class="my-3 d-flex align-items-center">
<div
style="background-color: #7C7BAD !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="background-color: #875A7B !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
</div>
</div>
</div>
<div class="container" style="padding: 4rem 1.5rem !important">
<div class="row" style="height: 900px !important;">
<div class="col-sm-12 col-md-12 col-lg-12"
style="padding: 4rem 1rem !important; background-color: #714B67 !important; height: 600px !important; border-radius: 20px !important;">
<h1
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #FFFFFF !important; font-size: 3.5rem !important; text-align: center !important;">
POS Restaurant Dine-in/TakeAway</h1>
<p
style="font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; color: #FFFFFF !important; font-size: 1.4rem !important; text-align: center !important;">
This module will add the options Dine-in and Take away in Odoo POS.
</p>
<img src="assets/screenshots/hero.gif" class="img-responsive" width="100%" height="auto" />
</div>
</div>
<div class="row">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin-bottom: 2rem !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-compass mr-2"></i>Explore this module
</h2>
</div>
<div class="col-md-6">
<a href="#overview" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Overview</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
Learn more about this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#features" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Features</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
View features of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#screenshots" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Screenshots</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
See key screenshots of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
</div>
<div class="row" id="overview">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-pie-chart mr-2"></i>Overview
</h2>
</div>
<div class="col-mg-12 pl-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important; line-height: 30px !important;">
The POS user can make orders as Dine-in or Take
away, and it will create separate token for Take away orders.</p>
</div>
</div>
<div class="row" id="features">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-star mr-2"></i>Features
</h2>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Dine-In or Take Away</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
The POS user can make orders as Dine-in or Take
away</p>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Token for Orders</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">Receipt
It will create a separate token for each Take Away orders.</p>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Token on Receipt</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
The toke number of Take Away order will be printed on the Receipt.</p>
</div>
</div>
</div>
<div class="row" id="screenshots">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-image mr-2"></i>Screenshots
</h2>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Configuration</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
You can enable the Take-away feature from the boolean field in POS configuration settings.
Also, you can enable the feature of tokens from here.
</p>
<img src="assets/screenshots/pos1.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Place Order as Take Away</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
You can create order and click on the 'Take Away' button to make the order Take Away.</p>
<img src="assets/screenshots/pos2.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Token on Receipts</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
If the order is a Take Away one, you can see the 'Take Away' label and the Token on the receipt.</p>
<img src="assets/screenshots/pos3.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Place Order as Dine-In</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
You can simply create a normal Order without clicking the 'Take Away' button and it will be a Dine-In order.</p>
<img src="assets/screenshots/pos4.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Dine-In Receipts</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
The receipt of Dine-in orders will be labelled as 'Dine-In'.</p>
<img src="assets/screenshots/pos5.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Filter Dine-In</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
You can filter the 'Dine-In' orders with the Dine-In filter available on orders.</p>
<img src="assets/screenshots/pos6.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Filter Take Away</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
You can filter the 'Take Away' orders with the Take Away filter available on orders.</p>
<img src="assets/screenshots/pos7.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
</div>
<!-- SUGGESTED PRODUCTS -->
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center"
style="text-align: center; padding: 2.5rem 1rem !important;">
<h2 style="color: #212529 !important;">Suggested Products</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner">
<div class="carousel-item active" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/sales_credit_limit/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/1.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href=" https://apps.odoo.com/apps/modules/15.0/pos_product_addons/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/2.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/barcode_scanning_sale_purchase/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/product_batch_report/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/4.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/sales_incentive_calculation/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/5.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/product_to_quotation/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="left:-25px;width: 35px;color: #000;"> <span class="carousel-control-prev-icon"><i
class="fa fa-chevron-left" style="font-size:24px"></i></span> </a> <a
class="carousel-control-next" href="#demo1" data-slide="next"
style="right:-25px;width: 35px;color: #000;">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right"
style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF SUGGESTED PRODUCTS -->
<!-- OUR SERVICES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Services</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</section>
<!-- END OF END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Industries</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/education-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/service-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</section>
<!-- END OF END OF OUR INDUSTRIES -->
<!-- FOOTER -->
<!-- Footer Section -->
<section class="container" style="margin: 5rem auto 2rem;">
<div class="row" style="max-width:1540px;">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Need Help?</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
</div>
<!-- Contact Cards -->
<div class="row d-flex justify-content-center align-items-center"
style="max-width:1540px; margin: 0 auto 2rem auto;">
<div class="col-lg-12" style="padding: 0rem 3rem 2rem; border-radius: 10px; margin-right: 3rem; ">
<div class="row mt-4">
<div class="col-lg-4">
<a href="mailto:odoo@cybrosys.com" target="_blank" class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i
class="fa fa-envelope mr-2"></i>odoo@cybrosys.com</a>
</div>
<div class="col-lg-4">
<a href="https://api.WhatsApp.com/send?phone=918606827707" target="_blank"
class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #25D366; color: #FFF; border-radius: 4px;"><i
class="fa fa-WhatsApp mr-2"></i>WhatsApp</a>
</div>
<div class="col-lg-4">
<a href="mailto:info@cybrosys.com" target="_blank" class="btn btn-block deep_hover"
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i
class="fa fa-envelope mr-2"></i>info@cybrosys.com</a>
</div>
</div>
</div>
</div>
<!-- End of Contact Cards -->
</section>
<!-- Footer -->
<section class="oe_container" style="padding: 2rem 3rem 1rem;">
<div class="row" style="max-width:1540px; margin: 0 auto; margin-right: 3rem; ">
<!-- Logo -->
<div class="col-lg-12 d-flex justify-content-center align-items-center" style="margin-top: 3rem;">
<img src="https://www.cybrosys.com/images/logo.png" width="200px" height="auto" />
</div>
<!-- End of Logo -->
<div class="col-lg-12">
<hr
style="margin-top: 3rem;background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(229,229,229,1) 33%, rgba(229,229,229,1) 58%, rgba(0,212,255,0) 100%); height: 2px; border-style: none;">
<!-- End of Footer Section -->
</div>
</div>
</section>
<!-- END OF FOOTER -->
</div>

46
pos_takeaway/static/src/js/Screens/ProductScreen/ControlButtons/TakeAway.js

@ -0,0 +1,46 @@
odoo.define('pos_takeaway.SendToTakeaway', function(require) {
'use strict';
const PosComponent = require('point_of_sale.PosComponent');
const ProductScreen = require('point_of_sale.ProductScreen');
const { useListener } = require('web.custom_hooks');
const Registries = require('point_of_sale.Registries');
const models = require("point_of_sale.models");
models.load_models({
model: 'res.config.settings',
fields: ['takeaway'],
loaded: function(self, settings){
if(settings.length){
var index = settings.length-1
self.takeaway = settings[index].takeaway;
}
},
});
// Extending the PosComponent to enable the takeaway for the order.
class SendToTakeaway extends PosComponent {
constructor() {
super(...arguments);
useListener('click', this.onClick);
}
onClick() {
var selectedOrder = this.env.pos.get_order();
selectedOrder.initialize_validation_date();
if(selectedOrder.is_empty()){
return alert ('Please add product!!');
}else{
const sendButton = document.getElementById('takeaway_button_id');
sendButton.className = "control-button highlight";
selectedOrder.is_take_way = true;
}
}
};
SendToTakeaway.template = 'SendToTakeaway';
// Adds the TakeAway button on ProductScreen
ProductScreen.addControlButton({
component: SendToTakeaway,
condition: function() {
return this.env.pos.config.module_pos_restaurant && this.env.pos.takeaway;
},
});
Registries.Component.add(SendToTakeaway);
return SendToTakeaway;
});

19
pos_takeaway/static/src/js/Screens/ProductScreen/ProductScreen.js

@ -0,0 +1,19 @@
odoo.define('pos_takeaway.ProductScreen', function(require) {
'use strict';
const ProductScreen = require('point_of_sale.ProductScreen')
const Registries = require('point_of_sale.Registries');
// Extending ProductScreen to add the button for Takeaway
const TakeawayProductScreen = ProductScreen =>
class extends ProductScreen {
mounted() {
var order = this.env.pos.get_order();
var takeaway = order.is_take_way;
if(takeaway){
const takeawayButton = document.getElementById('takeaway_button_id');
takeawayButton.className = "control-button highlight";
}
}
}
Registries.Component.extend(ProductScreen, TakeawayProductScreen);
return ProductScreen;
});

30
pos_takeaway/static/src/js/Screens/ReceiptScreen/OrderReceipt.js

@ -0,0 +1,30 @@
odoo.define('pos_takeaway.OrderReceipt', function(require) {
'use strict';
const Registries = require('point_of_sale.Registries');
const OrderReceipt = require('point_of_sale.OrderReceipt');
var rpc = require('web.rpc')
// Extends OrderReceipt to assign the takeaway value and the token.
const OrderReceiptToken = OrderReceipt =>
class extends OrderReceipt {
async willUpdateProps(nextProps) {
super.willUpdateProps(nextProps)
var self = this;
self.token = 0;
self.is_take_way = self.env.pos.get_order().is_take_way;
self.is_restaurant = self.env.pos.config.module_pos_restaurant;
self.takeaway = self.env.pos.takeaway;
if (self.is_take_way && self.is_restaurant){
await rpc.query({
model: 'pos.order',
method: 'generate_token',
args: [,this.env.pos.get_order_with_uid()
],
}).then(function (result){
self.token = result
});
}
}
}
Registries.Component.extend(OrderReceipt, OrderReceiptToken);
return OrderReceipt;
});

17
pos_takeaway/static/src/js/models.js

@ -0,0 +1,17 @@
odoo.define('pos_takeaway.receipt', function (require) {
'use strict';
const models = require('point_of_sale.models');
models.load_fields('pos.order', 'is_takeaway');
var _super_order = models.Order.prototype;
models.Order = models.Order.extend({
initialize: function() {
//@Override
/** sets the is_take_way and is_restaurant values */
_super_order.initialize.apply(this,arguments);
this.is_restaurant = this.pos.config.module_pos_restaurant || false;
this.is_take_way = this.is_take_way || false;
this.rpc = this.get('rpc');
this.save_to_db();
},
});
});

10
pos_takeaway/static/src/xml/Screens/ProductScreen/ControlButtons/TakeAway.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--ControlButton for Takeaway-->
<templates id="template" xml:space="preserve">
<t t-name="SendToTakeaway" owl="1">
<div class="control-button" title="send-to-takeaway" id="takeaway_button_id">
<i class="fa fa-shopping-basket"> </i>
<span>Take away</span>
</div>
</t>
</templates>

37
pos_takeaway/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Extending the order receipt to add the Dine-in or Takeaway label on it.
If it is a takeaway and the generate token is enabled, it will add the
token to the receipt. -->
<templates id="template" xml:space="preserve">
<t t-name="OrderReceipt" t-inherit="point_of_sale.OrderReceipt"
t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('pos-receipt-contact')]" position="inside">
<t t-if='is_take_way and is_restaurant'>
<div>--------------------------------</div>
<div>
<span style="font-weight:bold;font-size: 13px;">
Take Away
</span>
</div>
</t>
<t t-elif="!is_take_way and is_restaurant and takeaway">
<div>--------------------------------</div>
<div>
<span style="font-weight:bold;font-size: 13px;">
Dine-In
</span>
</div>
</t>
<t t-if='is_take_way and token != 0'>
<div>--------------------------------</div>
<div>
<span style="font-weight:bold;font-size: 13px;">
Token Number:
</span>
<span t-esc='token'
style="font-weight:bold;font-size: 22px;"/>
</div>
</t>
</xpath>
</t>
</templates>

17
pos_takeaway/views/pos_order_views.xml

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Inherits pos order search view to add Dine-in and Takeaway filters -->
<record id="view_pos_order_filter" model="ir.ui.view">
<field name="name">pos.order.filter.inherit.pos_takeaway</field>
<field name="model">pos.order</field>
<field name="inherit_id" ref="point_of_sale.view_pos_order_filter"/>
<field name="arch" type="xml">
<search position="inside">
<filter string="Dine In" name="take_away"
domain="[('is_takeaway','=','')]"/>
<filter string="Take Away" name="take_away"
domain="[('is_takeaway','!=','')]"/>
</search>
</field>
</record>
</odoo>

48
pos_takeaway/views/res_config_settings_views.xml

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!-- Inherits the res config settings form view to add the Takeaway settings -->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.form.inherit.pos_takeaway</field>
<field name="model">res.config.settings</field>
<field name="inherit_id"
ref="point_of_sale.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[hasclass('settings')]//div[@data-key='point_of_sale']"
position="inside">
<div id="other_features_takeaway" data-string="Point of sale"
string="Point of Sale"
data-key="point_of_sale">
<h2>Other Features</h2>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box"
id="takeaway">
<div class="o_setting_left_pane">
<field name="takeaway"/>
</div>
<div class="o_setting_right_pane">
<label for="takeaway"
string="POS Takeaways"/>
<div class="text-muted" id="takeaway">
Takeaway/Dine-in on restaurant.
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box"
attrs="{'invisible' : [('takeaway', '!=', True)]}"
id="generate_token">
<div class="o_setting_left_pane">
<field name="generate_token"/>
</div>
<div class="o_setting_right_pane">
<label for="generate_token"/>
<div class="text-muted">
The token number starts from 1.
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save