Browse Source

May 17 : [ADD] Initial Commit 'click_and_collect_pos'

pull/257/head
Sayooj 2 years ago
parent
commit
14b8af48c9
  1. 41
      click_and_collect_pos/README.rst
  2. 22
      click_and_collect_pos/__init__.py
  3. 61
      click_and_collect_pos/__manifest__.py
  4. 7
      click_and_collect_pos/doc/RELEASE_NOTES.md
  5. 24
      click_and_collect_pos/models/__init__.py
  6. 82
      click_and_collect_pos/models/pos_config.py
  7. 99
      click_and_collect_pos/models/sale_order.py
  8. 61
      click_and_collect_pos/models/stock_picking.py
  9. BIN
      click_and_collect_pos/static/description/assets/icons/check.png
  10. BIN
      click_and_collect_pos/static/description/assets/icons/chevron.png
  11. BIN
      click_and_collect_pos/static/description/assets/icons/cogs.png
  12. BIN
      click_and_collect_pos/static/description/assets/icons/consultation.png
  13. BIN
      click_and_collect_pos/static/description/assets/icons/ecom-black.png
  14. BIN
      click_and_collect_pos/static/description/assets/icons/education-black.png
  15. BIN
      click_and_collect_pos/static/description/assets/icons/hotel-black.png
  16. BIN
      click_and_collect_pos/static/description/assets/icons/license.png
  17. BIN
      click_and_collect_pos/static/description/assets/icons/lifebuoy.png
  18. BIN
      click_and_collect_pos/static/description/assets/icons/manufacturing-black.png
  19. BIN
      click_and_collect_pos/static/description/assets/icons/pos-black.png
  20. BIN
      click_and_collect_pos/static/description/assets/icons/puzzle.png
  21. BIN
      click_and_collect_pos/static/description/assets/icons/restaurant-black.png
  22. BIN
      click_and_collect_pos/static/description/assets/icons/service-black.png
  23. BIN
      click_and_collect_pos/static/description/assets/icons/trading-black.png
  24. BIN
      click_and_collect_pos/static/description/assets/icons/training.png
  25. BIN
      click_and_collect_pos/static/description/assets/icons/update.png
  26. BIN
      click_and_collect_pos/static/description/assets/icons/user.png
  27. BIN
      click_and_collect_pos/static/description/assets/icons/wrench.png
  28. BIN
      click_and_collect_pos/static/description/assets/misc/categories.png
  29. BIN
      click_and_collect_pos/static/description/assets/misc/check-box.png
  30. BIN
      click_and_collect_pos/static/description/assets/misc/compass.png
  31. BIN
      click_and_collect_pos/static/description/assets/misc/corporate.png
  32. BIN
      click_and_collect_pos/static/description/assets/misc/customer-support.png
  33. BIN
      click_and_collect_pos/static/description/assets/misc/cybrosys-logo.png
  34. BIN
      click_and_collect_pos/static/description/assets/misc/features.png
  35. BIN
      click_and_collect_pos/static/description/assets/misc/logo.png
  36. BIN
      click_and_collect_pos/static/description/assets/misc/pictures.png
  37. BIN
      click_and_collect_pos/static/description/assets/misc/pie-chart.png
  38. BIN
      click_and_collect_pos/static/description/assets/misc/right-arrow.png
  39. BIN
      click_and_collect_pos/static/description/assets/misc/star.png
  40. BIN
      click_and_collect_pos/static/description/assets/misc/support.png
  41. BIN
      click_and_collect_pos/static/description/assets/misc/whatsapp.png
  42. BIN
      click_and_collect_pos/static/description/assets/modules/barcode.png
  43. BIN
      click_and_collect_pos/static/description/assets/modules/dashboard.png
  44. BIN
      click_and_collect_pos/static/description/assets/modules/product_creation.png
  45. BIN
      click_and_collect_pos/static/description/assets/modules/receipt.png
  46. BIN
      click_and_collect_pos/static/description/assets/modules/service.png
  47. BIN
      click_and_collect_pos/static/description/assets/modules/time_based.png
  48. BIN
      click_and_collect_pos/static/description/assets/screenshots/cc1.0.png
  49. BIN
      click_and_collect_pos/static/description/assets/screenshots/cc2.png
  50. BIN
      click_and_collect_pos/static/description/assets/screenshots/cc3.png
  51. BIN
      click_and_collect_pos/static/description/assets/screenshots/cc4.png
  52. BIN
      click_and_collect_pos/static/description/assets/screenshots/cc5.png
  53. BIN
      click_and_collect_pos/static/description/assets/screenshots/cc6.png
  54. BIN
      click_and_collect_pos/static/description/assets/screenshots/v16_hero.gif
  55. BIN
      click_and_collect_pos/static/description/banner.png
  56. BIN
      click_and_collect_pos/static/description/icon.png
  57. 549
      click_and_collect_pos/static/description/index.html
  58. 51
      click_and_collect_pos/static/src/js/click_and_collect_screen.js
  59. 20
      click_and_collect_pos/static/src/js/pos_model_load.js
  60. 50
      click_and_collect_pos/static/src/js/sale_order_button.js
  61. 53
      click_and_collect_pos/static/src/js/website_sale_cart.js
  62. 38
      click_and_collect_pos/static/src/scss/sale_order.scss
  63. 10
      click_and_collect_pos/static/src/xml/chrome.xml
  64. 74
      click_and_collect_pos/static/src/xml/click_and_collect_screen.xml
  65. 10
      click_and_collect_pos/static/src/xml/sale_order_button.xml
  66. 38
      click_and_collect_pos/views/click_and_collect_button.xml
  67. 38
      click_and_collect_pos/views/pos_config.xml
  68. 27
      click_and_collect_pos/views/sale_order.xml
  69. 14
      click_and_collect_pos/views/stock_picking.xml

41
click_and_collect_pos/README.rst

@ -0,0 +1,41 @@
.. 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
Click And Collect POS
=======================
This module enables customers to order products online and pick them up from the closest shop/bar.
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
Developer: Nihala M K @cybrosys, Contact: odoo@cybrosys.com
License
-------
General Public License, Version 3 (AGPL v3).
(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html)
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 <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

22
click_and_collect_pos/__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 (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from . import models

61
click_and_collect_pos/__manifest__.py

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
{
'name': 'Click And Collect PoS',
'version': '16.0.1.0.0',
'category': 'Point of Sale',
'summary': 'With this module, customers may place product orders online '
'and pick them up from the closest shop.',
'description': 'This module enables customers to order products online '
'and pick them up from the closest shop. ',
'author': "Cybrosys Techno Solutions",
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'images': ['static/description/banner.png'],
'depends': [
'base', 'website_sale', 'point_of_sale', 'sale_management', 'stock'],
'data': [
'views/click_and_collect_button.xml',
'views/pos_config.xml',
'views/sale_order.xml',
'views/stock_picking.xml'
],
'assets': {
'web.assets_frontend': [
'click_and_collect_pos/static/src/js/website_sale_cart.js',
],
'point_of_sale.assets': [
'click_and_collect_pos/static/src/xml/sale_order_button.xml',
'click_and_collect_pos/static/src/js/sale_order_button.js',
'click_and_collect_pos/static/src/xml/chrome.xml',
'click_and_collect_pos/static/src/js/click_and_collect_screen.js',
'click_and_collect_pos/static/src/xml/click_and_collect_screen.xml',
'click_and_collect_pos/static/src/scss/sale_order.scss',
'click_and_collect_pos/static/src/js/pos_model_load.js'
],
},
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

7
click_and_collect_pos/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <click_and_collect_pos>
#### 1.03.2023
#### Version 16.0.1.0.0
#### ADD
- Initial commit for Click and Collect POS

24
click_and_collect_pos/models/__init__.py

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

82
click_and_collect_pos/models/pos_config.py

@ -0,0 +1,82 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
"""This module enables users to place online orders and
pick up their purchases from nearby stores. """
from odoo import fields, models
class PosConfig(models.Model):
"""inherited for adding address in pos session"""
_inherit = 'pos.config'
street = fields.Char('Street', required=True,
help='Enter Address for your store')
street2 = fields.Char('Street2')
zip = fields.Char('Zip', help='Enter zip for your store')
city = fields.Char('City', required=True,
help='Enter your store located city')
state_id = fields.Many2one("res.country.state", string='State',
required=True, help='Enter state')
country_id = fields.Many2one('res.country', string='Country', required=True)
class InheritPosSession(models.Model):
"""inherit pos session for load models in pos"""
_inherit = 'pos.session'
def _pos_ui_models_to_load(self):
"""load Meals Planning and Menu.Meals model in pos."""
result = super()._pos_ui_models_to_load()
result.extend(['stock.picking', 'stock.move'])
return result
def _loader_params_stock_picking(self):
""" returning corresponding data to pos"""
data = []
stock_picking = self.env['stock.picking'].search([
('state', '!=', ['done', 'cancelled'])])
for rec in stock_picking:
data.append(rec.id)
return {
'search_params': {
'domain': [('id', '=', data)],
'fields': ['state', 'origin', 'move_ids_without_package']
}
}
def _loader_params_stock_move(self):
"""load stock.move model in pos"""
return {
'search_params': {
'fields': ['product_id', 'sale_line_id', 'picking_id']
}
}
def _get_pos_ui_stock_picking(self, params):
"""get params in stock picking"""
return self.env['stock.picking'].search_read(
**params['search_params'])
def _get_pos_ui_stock_move(self, params):
"""get params in stock move"""
return self.env['stock.move'].search_read(
**params['search_params'])

99
click_and_collect_pos/models/sale_order.py

@ -0,0 +1,99 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
"""This module enables users to place online orders and
pick up their purchases from nearby stores. """
from odoo import api, fields, models
class SaleOrder(models.Model):
"""to show the click and collect delivery order in smart button"""
_inherit = 'sale.order'
collect_count = fields.Integer(string='Click And Collect',
compute='_compute_collect_count')
@api.depends('collect_count')
def _compute_collect_count(self):
"""to see the click and collect orders count"""
count = self.env['stock.picking'].search_count(
[('is_click_and_collect_order', '=', True),
('origin', '=', self.name)])
self.collect_count = count
def _action_confirm(self):
"""this action is used for confirm delivery orders"""
self.action_split_delivery_order()
return super(SaleOrder, self)._action_confirm()
def action_split_delivery_order(self):
"""to split delivery order and click and collect order separately"""
click_and_collect_list = []
for line in self.order_line.filtered(lambda l: l.is_click_and_collect):
click_and_collect_list.append(line)
for res in click_and_collect_list:
delivery_order = self.env['stock.picking'].create({
'partner_id': self.partner_id.id,
'location_id':
self.env.ref('stock.stock_location_customers').id,
'location_dest_id':
self.env.ref('stock.stock_location_customers').id,
'picking_type_id': self.env.ref('stock.picking_type_out').id,
'sale_id': self.id,
'origin': self.name,
'is_click_and_collect_order': True
})
move = self.env['stock.move'].create({
'name': res.name,
'product_id': res.product_id.id,
'product_uom_qty': res.product_uom_qty,
'product_uom': res.product_uom.id,
'picking_id': delivery_order.id,
'location_id': delivery_order.location_id.id,
'location_dest_id': delivery_order.location_dest_id.id,
'sale_line_id': res.id,
})
move._action_confirm()
return True
def action_view_click_and_collect(self):
"""smart button for click and collect"""
self.ensure_one()
return {
'name': 'Click And Collect',
'view_mode': 'tree,form',
'res_model': 'stock.picking',
'type': 'ir.actions.act_window',
'domain': [('origin', '=', self.name),
('is_click_and_collect_order', '=', True)],
'context': "{'create':False}"
}
class SaleOrderLine(models.Model):
"""here user can identify click and collect order"""
_inherit = 'sale.order.line'
is_click_and_collect = fields.Boolean(
string='Collect', help='if you want to enable click and collect for '
'this product enable this field')
pos_config_id = fields.Many2one('pos.config', string='PoS Session',
help='Select pos session')

61
click_and_collect_pos/models/stock_picking.py

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
"""This module enables users to place online orders and
pick up their purchases from nearby stores. """
from odoo import api, fields, models
class StockMove(models.Model):
"""to identify the click and collect transfer"""
_inherit = 'stock.picking'
is_click_and_collect_order = fields.Boolean(default=False)
@api.model
def action_confirmation_click(self, order_id):
"""validate click and collect from pos config"""
order_id = int(order_id)
stock = self.search([])
for rec in stock:
for lines in rec.move_ids_without_package:
if lines.sale_line_id.id == order_id:
rec.action_set_quantities_to_reservation()
rec._action_done()
return True
@api.model
def action_stock_picking(self, order_lines):
"""display the sale order lines in pos session"""
record = []
stock = self.search([('state', '!=', 'done')])
for rec in stock:
for lines in rec.move_ids_without_package:
if lines.sale_line_id.id in order_lines:
data = {
'id': lines.sale_line_id.id,
'order_id': rec.origin,
'partner_id': rec.partner_id.name,
'product_id': rec.product_id.name,
'product_uom_quantity': lines.product_uom_qty,
}
record.append(data)
return record

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
click_and_collect_pos/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
click_and_collect_pos/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
click_and_collect_pos/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
click_and_collect_pos/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
click_and_collect_pos/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
click_and_collect_pos/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
click_and_collect_pos/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
click_and_collect_pos/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
click_and_collect_pos/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
click_and_collect_pos/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
click_and_collect_pos/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
click_and_collect_pos/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
click_and_collect_pos/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
click_and_collect_pos/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
click_and_collect_pos/static/description/assets/modules/barcode.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
click_and_collect_pos/static/description/assets/modules/dashboard.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
click_and_collect_pos/static/description/assets/modules/product_creation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
click_and_collect_pos/static/description/assets/modules/receipt.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
click_and_collect_pos/static/description/assets/modules/service.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
click_and_collect_pos/static/description/assets/modules/time_based.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
click_and_collect_pos/static/description/assets/screenshots/cc1.0.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

BIN
click_and_collect_pos/static/description/assets/screenshots/cc2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 KiB

BIN
click_and_collect_pos/static/description/assets/screenshots/cc3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 KiB

BIN
click_and_collect_pos/static/description/assets/screenshots/cc4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 607 KiB

BIN
click_and_collect_pos/static/description/assets/screenshots/cc5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
click_and_collect_pos/static/description/assets/screenshots/cc6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

BIN
click_and_collect_pos/static/description/assets/screenshots/v16_hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

BIN
click_and_collect_pos/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
click_and_collect_pos/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

549
click_and_collect_pos/static/description/index.html

@ -0,0 +1,549 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42" style="width: 42px; height: 42px;" />
<div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="color: #017E84; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Odoo.sh
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Click And Collect POS
</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">This module enables customers to order products online and pick them up at the closest shop.</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/v16_hero.gif" class="img-responsive"
style="width: 100%; margin-left: auto; margin-right: auto;" />
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36" />
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36" />
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
screenshots for this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36" />
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Overview
</h2>
</div>
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
This module enables customers to order products online and pick them up at the closest shop.</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Features</h2>
</div>
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">This module allows customers to place online orders and pick them up at a local retailer.</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Whatever product the consumer needs to pick up from the shop can be specified on the website.</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">In the POS session, the user may view all click and collect orders.</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">When the goods is delivered, the user may confirm delivery in the PoS by clicking a single button. </span>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create PoS Shop Address
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Go to PoS -> Settings -> Enter your store address
->The online user may quickly find the closest store and pick up their order there.
</p>
<img src="assets/screenshots/cc1.0.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create Click and Collect Order</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">->Choose the item and add it to your shopping cart. Then you can mention the click and collect product from in cart line and select the nearest store.
</p>
<img src="assets/screenshots/cc2.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Click and Collect Order Mentioned in Sale Order</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">->All click and collect products and the customer's selected pos session are visible in the sale order lines.
The user may view all the click and collect products by clicking on the click collect smart tab.
</p>
<img src="assets/screenshots/cc3.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Click and Collect Order in PoS</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">->After opening the session, go to the PoS module where the click and collect button is shown.
After you click on it, a new screen will open where you can see all the click and collect products and validate the order.
</p>
<img src="assets/screenshots/cc4.png" class="img-thumbnail">
<img src="assets/screenshots/cc5.png" class="img-thumbnail">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">If the user confirms the delivery, it automatically affects inventory as well. In sale order and inventory, the user can see all the delivered orders.
</p>
<img src="assets/screenshots/cc6.png" class="img-thumbnail">
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding: 30px;">
<div class="carousel-item" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/pos_products_based_on_time/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/time_based.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/16.0/dashboard_pos/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/dashboard.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/16.0/custom_receipts_for_pos/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/receipt.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/barcode_scanning_sale_purchase/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/barcode.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/16.0/service_charges_pos/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/service.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/16.0/pos_product_creation/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/product_creation.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev" style="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="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 RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/star.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<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>
</div>
<!-- END OF END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/corporate.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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>
</div>
<!-- END OF END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48" style="width: 42px; height: 42px;" />
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help? Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52" style="width: 52px; height: 52px;" />
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31" style="width:144px; height: 31px; margin-top: 40px;" />
</div>
</div>
</div>
<!-- END OF SUPPORT -->
</div>

51
click_and_collect_pos/static/src/js/click_and_collect_screen.js

@ -0,0 +1,51 @@
odoo.define('click_and_collect_pos.SaleOrderScreen', function(require) {
'use strict';
const PosComponent = require('point_of_sale.PosComponent');
const Registries = require('point_of_sale.Registries');
var rpc = require('web.rpc');
// Define a new class that extends PosComponent
class SaleOrderScreen extends PosComponent {
/**
* Override the setup method to perform any additional setup logic.
*/
setup() {
super.setup();
}
back() {
this.showScreen('ProductScreen');
}
getSaleOrderListLine() {
var order_line_id = [];
this.props.click_and_collect.forEach(function(object) {
if (object.is_click_and_collect == true) {
order_line_id.push(object)
}
})
return order_line_id
}
async onClick(ev) {
var order_line = ev.target.dataset.id
await rpc.query({
'model': 'stock.picking',
'method': 'action_confirmation_click',
'args': [order_line],
}).then(function(result) {
if (result = true) {
ev.target.parentNode.parentNode.remove()
}
})
location.reload();
}
};
SaleOrderScreen.template = 'SaleOrderScreen';
// Register the new SaleOrderScreen component with the POS registry.
Registries.Component.add(SaleOrderScreen);
// Export the new SaleOrderScreen class.
return SaleOrderScreen;
});

20
click_and_collect_pos/static/src/js/pos_model_load.js

@ -0,0 +1,20 @@
odoo.define('click_and_collect_pos.StockPicking', function(require) {
"use strict";
var { PosGlobalState } = require('point_of_sale.models');
const Registries = require('point_of_sale.Registries');
const StockPicking = (PosGlobalState) => class StockPicking extends PosGlobalState {
async _processData(loadedData) {
super._processData(...arguments)
let stock_picking = []
this.stock_picking = loadedData['stock.picking']
loadedData['stock.picking'].forEach((data) => {
data.move_ids_without_package = loadedData['stock.move'].filter((stock) => data.move_ids_without_package.includes(stock.id))
stock_picking.push(data)
})
this.stock_picking = stock_picking
}
}
Registries.Model.extend(PosGlobalState, StockPicking);
});

50
click_and_collect_pos/static/src/js/sale_order_button.js

@ -0,0 +1,50 @@
odoo.define('click_and_collect_pos.SaleOrderButton', function(require) {
'use strict';
const PosComponent = require('point_of_sale.PosComponent');
const Registries = require('point_of_sale.Registries');
// Define a new class that extends PosComponent
class SaleOrderButton extends PosComponent {
/**
* Override the setup method to perform any additional setup logic.
*/
setup() {
super.setup();
}
async onClick() {
var self = this;
var sale_order = [];
var stock_picking = self.env.pos.stock_picking;
var session_id = self.env.pos.pos_session.id
await this.rpc({
model: 'sale.order.line',
method: 'search_read',
args: [],
}).then(function(result) {
result.forEach(function(object) {
if (object.state == 'sale' && session_id == object.pos_config_id[0]) {
stock_picking.forEach(function(lines) {
let plan_arr = null;
plan_arr = lines.move_ids_without_package.flat(1)
plan_arr.forEach(function(lines) {
if (object.id == lines.sale_line_id[0]) {
sale_order.push(object)
}
})
})
}
})
self.showScreen('SaleOrderScreen', {
click_and_collect: sale_order,
});
});
}
}
SaleOrderButton.template = 'click_and_collect_pos.SaleOrderButton';
Registries.Component.add(SaleOrderButton);
return SaleOrderButton;
});

53
click_and_collect_pos/static/src/js/website_sale_cart.js

@ -0,0 +1,53 @@
odoo.define('click_and_collect_pos.website_sale_cart', function(require) {
"use strict"
var rpc = require('web.rpc');
var { websiteSaleCart } = require('website_sale.website_sale');
// using include method and adding events
websiteSaleCart.include({
events: _.extend({}, websiteSaleCart.events, {
'click #is_click_and_collect': '_onClickClickAndCollect',
'click .session_values': '_onClickPosConfig',
'click .js_delete_product': '_onClickDeleteProduct',
}),
_onClickClickAndCollect: function(ev) {
var order_id = $(ev.target).data('id')
var pos_conf = $(ev.currentTarget.parentElement.parentElement).find('.oe_session')
if ($(ev.target).is(':checked')) {
pos_conf.removeClass('d-none')
} else {
pos_conf.addClass('d-none')
}
rpc.query({
'model': 'sale.order.line',
'method': 'write',
'args': [
[order_id], {
'is_click_and_collect': ev.currentTarget.checked
}
],
});
},
_onClickDeleteProduct: function(ev) {
ev.preventDefault();
$(ev.currentTarget).closest('tr').find('.js_quantity').val(0).trigger('change');
},
_onClickPosConfig: function(ev) {
var closest_check = $(ev.currentTarget.parentElement.parentElement).find('.clickandecollect')
var order_id = closest_check.data('id')
var session_id = $(ev.target).val()
rpc.query({
'model': 'sale.order.line',
'method': 'write',
'args': [
[order_id], {
'pos_config_id': parseInt(session_id)
}
],
});
},
});
})

38
click_and_collect_pos/static/src/scss/sale_order.scss

@ -0,0 +1,38 @@
.sale-order-button {
display: flex;
align-items: center;
font-size: medium;
color: white;
}
.sale-order-button:hover{
background: rgba(0, 0, 0, .08);
cursor: pointer;
}
.btn{
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
text-decoration: none;
color: #333;
background-color: #fff;
border-color: #ccc;
height: 21px;
}

10
click_and_collect_pos/static/src/xml/chrome.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Added new button in pos session -->
<templates id="template" xml:space="preserve">
<t t-name="Chrome" t-inherit="point_of_sale.Chrome"
t-inherit-mode="extension" owl="1">
<xpath expr="//CashMoveButton" position="after">
<SaleOrderButton/>
</xpath>
</t>
</templates>

74
click_and_collect_pos/static/src/xml/click_and_collect_screen.xml

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Added new screen in pos-->
<templates id="template" xml:space="preserve">
<t t-name="SaleOrderScreen" owl="1">
<div class="clientlist-screen screen">
<div class="screen-content">
<div class="top-content">
<div class="button back" t-on-click="back">
Back
</div>
</div>
<section class="full-content">
<div class="client-window">
<section>
<div class="orders">
<div class="header-row">
<div class="col wide">Sale Order</div>
<div class="col wide">Session</div>
<div class="col">Customer</div>
<div class="col">Product</div>
<div class="col end">Total</div>
<div class="col narrow">Status</div>
<div class="col very-narrow">Validate</div>
</div>
<t t-set="collect_order_line"
t-value="getSaleOrderListLine()"/>
<t t-foreach="collect_order_line" t-as="lines"
t-key="lines.id">
<div class="order-row">
<div class="col wide">
<div>
<t t-esc="lines.order_id[1]"/>
</div>
</div>
<div class="col wide">
<t t-esc="lines.pos_config_id[1]"/>
</div>
<div class="col">
<div>
<t t-esc="lines.order_partner_id[1]"/>
</div>
</div>
<div class="col">
<div>
<t t-esc="lines.product_id[1]"/>
</div>
</div>
<div class="col end">
<div>
<t t-esc="lines.product_uom_qty"/>
</div>
</div>
<div class="col narrow">
<div>
<t t-esc="lines.state"/>
</div>
</div>
<div class="col">
<div t-att-data-id="lines.id"
class="btn button confirm highlight"
t-on-click="onClick">
Confirm
</div>
</div>
</div>
</t>
</div>
</section>
</div>
</section>
</div>
</div>
</t>
</templates>

10
click_and_collect_pos/static/src/xml/sale_order_button.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Added click and collect button in pos -->
<templates id="template" xml:space="preserve">
<t t-name="click_and_collect_pos.SaleOrderButton" owl="1">
<div class="sale-order-button" t-on-click="onClick">
<i class="fa fa-hand-pointer-o" aria-hidden="true"/>
<span style="padding-left: 10px;">Click And Collect</span>
</div>
</t>
</templates>

38
click_and_collect_pos/views/click_and_collect_button.xml

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Inherited Template and Added New TD -->
<template id="click_and_collect" name="Click And Collect"
inherit_id="website_sale.cart_lines">
<xpath expr="//th[hasclass('td-price')]" position="after">
<th>
<span>Collect</span>
</th>
</xpath>
<xpath expr="//td[hasclass('td-price')]" position="after">
<td class="text-center oe_inline click_and_collect_td">
<input type="checkbox" name="click_and_collect"
id='is_click_and_collect'
t-att-checked="line.is_click_and_collect"
class="form-check-input clickandecollect"
t-att-data-id="line.id" t-on-click="click_btn"/>
</td>
<td class="text-center click_and_collect_td oe_session d-none">
<t t-set="get_pos_session"
t-value="request.env['pos.config'].sudo().search([])"/>
<select class="form-select session_values"
name="pos_session">
<option value="select">Select</option>
<option t-foreach="get_pos_session" t-as="session"
t-att-value="session.id" t-key="session"
class="session_values">
<t t-esc="session.name"/>,
<t t-esc="session.street"/>,
<t t-esc="session.city"/>,
<t t-esc="session.state_id.name"/>
</option>
</select>
</td>
</xpath>
</template>
</odoo>

38
click_and_collect_pos/views/pos_config.xml

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherited View and Added New Field -->
<record id="pos_config_view_form" model="ir.ui.view">
<field name="name">pos.config.view.form.inherit.click.and.collect</field>
<field name="model">pos.config</field>
<field name="inherit_id" ref="point_of_sale.pos_config_view_form"/>
<field name="priority" eval="8"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='title']"
position="after">
<group>
<label for="street" string="Address"/>
<div class="o_address_format">
<field name="street" placeholder="Street..."
class="o_address_street"/>
<field name="street2" placeholder="Street 2..."
class="o_address_street"/>
<field name="city" placeholder="City"
class="o_address_city"/>
<field name="state_id" class="o_address_state"
placeholder="State"
options="{'no_open': True, 'no_quick_create': True}"
context="{'default_country_id': country_id}"/>
<field name="zip" placeholder="ZIP"
class="o_address_zip"/>
<div name="partner_address_country"
class="d-flex justify-content-between">
<field name="country_id" placeholder="Country"
class="o_address_country"
options="{'no_create': True, 'no_open': True}"/>
</div>
</div>
</group>
</xpath>
</field>
</record>
</odoo>

27
click_and_collect_pos/views/sale_order.xml

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Added a smart button in sale order-->
<record id="sale_order_view_form" model="ir.ui.view">
<field name="name">sale.order.view.form.inherited.click.and.collect</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='action_view_invoice']"
position="before">
<button type="object"
name="action_view_click_and_collect"
class="oe_stat_button"
icon="fa-hand-pointer-o"
attrs="{'invisible': [('collect_count', '=', 0)]}">
<field name="collect_count" widget="statinfo"
string="Click Collect"/>
</button>
</xpath>
<xpath expr="//field[@name='product_template_id']" position="after">
<field name="is_click_and_collect"/>
<field name="pos_config_id"/>
</xpath>
</field>
</record>
</odoo>

14
click_and_collect_pos/views/stock_picking.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Inherited template and added new field to identify click and collect orders-->
<record id="stock_picking_view_form" model="ir.ui.view">
<field name="name">view.picking.view.form.inherit.click.and.collect</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='origin']" position="after">
<field name="is_click_and_collect_order" invisible="1"/>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save