diff --git a/website_in_store_pickup/README.rst b/website_in_store_pickup/README.rst new file mode 100644 index 000000000..07e41756b --- /dev/null +++ b/website_in_store_pickup/README.rst @@ -0,0 +1,49 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Website In-Store Pickup +======================= +Manage the website in-store pickup easily with this module. + +Configuration +------------- +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +Developer : (V16) Shafna K, + (V17) Ayana KP, +Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there +if your issue has already been reported. + +Maintainer +---------- +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +------------------- +HTML Description: ``__ diff --git a/website_in_store_pickup/__init__.py b/website_in_store_pickup/__init__.py new file mode 100644 index 000000000..4fb60374f --- /dev/null +++ b/website_in_store_pickup/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP(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 . +# +############################################################################### +from . import controllers +from . import models diff --git a/website_in_store_pickup/__manifest__.py b/website_in_store_pickup/__manifest__.py new file mode 100644 index 000000000..b1690b499 --- /dev/null +++ b/website_in_store_pickup/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP(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 . +# +############################################################################### +{ + 'name': "Website In-Store Pickup", + 'version': '17.0.1.0.0', + 'category': 'eCommerce', + 'summary': 'To manage the in-store pickups of orders ', + 'description': """To facilitate the management of in-store pickups, we + have implemented a system to handle customer orders that can be picked up + at the physical store location. This system allows customers to place + orders online and then select the option to pick up their purchases at the store.""", + 'author': " Cybrosys Techno Solutions", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['delivery', 'stock', 'website_sale'], + 'data': [ + 'views/stock_warehouse_views.xml', + 'views/delivery_carrier_views.xml', + ], + 'assets': { + 'web.assets_frontend': [ + 'website_in_store_pickup/static/src/js/website_in_store_pickup.js', + 'website_in_store_pickup/static/src/xml/website_in_store_pickup_templates.xml', + 'website_in_store_pickup/static/src/css/store.css', + ] + }, + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False +} diff --git a/website_in_store_pickup/controllers/__init__.py b/website_in_store_pickup/controllers/__init__.py new file mode 100644 index 000000000..7ae834924 --- /dev/null +++ b/website_in_store_pickup/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP(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 . +# +############################################################################### +from . import website_in_store_pickup diff --git a/website_in_store_pickup/controllers/website_in_store_pickup.py b/website_in_store_pickup/controllers/website_in_store_pickup.py new file mode 100644 index 000000000..25f2f552c --- /dev/null +++ b/website_in_store_pickup/controllers/website_in_store_pickup.py @@ -0,0 +1,76 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP(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 . +# +############################################################################### +from odoo import http +from odoo.http import request +from odoo.addons.website_sale.controllers.delivery import WebsiteSaleDelivery + + +class WebsiteInStorePickup(WebsiteSaleDelivery): + """ Inherited Controller to check the carrier and update in corresponding + sale order""" + @http.route(['/shop/check_carrier'], type='json', auth='public', + methods=['POST'], website=True, csrf=False) + def check_carrier(self, **post): + """To check the carrier details and returns the relevant details + whether the delivery method is store pick or not and returns the + available stores""" + carrier_id = int(post.get('carrier_id')) + store = request.env['stock.warehouse'].search( + [('is_store', '=', True)]) + carrier = request.env['delivery.carrier'].browse(carrier_id) + sale_order_id = http.request.session.get('sale_order_id') + if sale_order_id: + sale_order = http.request.env['sale.order'].sudo().browse( + sale_order_id) + if not carrier.is_store_pick: + sale_order.write({ + 'partner_invoice_id': sale_order.partner_id.id, + 'partner_shipping_id': sale_order.partner_id.id, + }) + return { + 'is_store_pick': carrier.is_store_pick, + 'store_ids': carrier.store_ids.read(), + 'store_id': store.read(), + } + + @http.route(['/shop/update_address'], type='json', auth='public', + methods=['POST'], website=True, csrf=False) + def update_address(self, **post): + """To update the address of store address to sale order on choosing + the store for pickup""" + store_address = request.env['stock.warehouse'].browse( + int(post['store_id'])) + if post['store_id']: + sale_order_id = http.request.session.get('sale_order_id') + if sale_order_id: + sale_order = http.request.env['sale.order'].sudo().browse( + sale_order_id) + sale_order.write({ + 'partner_invoice_id': store_address.partner_id.id, + 'partner_shipping_id': store_address.partner_id.id + }) + return { + 'store_id': store_address.partner_id.read() + } + return { + 'store_id': store_address.partner_id.read() + } diff --git a/website_in_store_pickup/doc/RELEASE_NOTES.md b/website_in_store_pickup/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..66993f130 --- /dev/null +++ b/website_in_store_pickup/doc/RELEASE_NOTES.md @@ -0,0 +1,5 @@ +## Module +#### 18.11.2024 +#### Version 17.0.1.0.0 +#### ADD + - Initial Commit for Website In-Store Pickup diff --git a/website_in_store_pickup/models/__init__.py b/website_in_store_pickup/models/__init__.py new file mode 100644 index 000000000..c6e934255 --- /dev/null +++ b/website_in_store_pickup/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP(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 . +# +############################################################################### +from . import deliver_carrier +from . import stock_warehouse diff --git a/website_in_store_pickup/models/deliver_carrier.py b/website_in_store_pickup/models/deliver_carrier.py new file mode 100644 index 000000000..b540329d1 --- /dev/null +++ b/website_in_store_pickup/models/deliver_carrier.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP(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 . +# +############################################################################### +from odoo import fields, models + + +class DeliveryCarrier(models.Model): + """Class to add the fields to identify a method as a store picking + delivery method and choose the stores to be available for that particular + delivery method""" + _inherit = 'delivery.carrier' + + is_store_pick = fields.Boolean(string='In-Store Pickup', + help="Enable this to identify this as an " + "In-store PickUp delivery method") + store_ids = fields.Many2many('stock.warehouse', + string="Available Stores", + domain="[('is_store', '=', True)]", + help="Choose the stores available for " + "in-store picking and if no stores " + "implies all stores are available") diff --git a/website_in_store_pickup/models/stock_warehouse.py b/website_in_store_pickup/models/stock_warehouse.py new file mode 100644 index 000000000..bb795b949 --- /dev/null +++ b/website_in_store_pickup/models/stock_warehouse.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP(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 . +# +############################################################################### +from odoo import fields, models + + +class StockWarehouse(models.Model): + """Class to add a field to identify a warehouse as a store""" + _inherit = 'stock.warehouse' + + is_store = fields.Boolean(string='Store', + help="Enable this to identify this Warehouse " + "as a store") diff --git a/website_in_store_pickup/static/description/assets/icons/capture (1).png b/website_in_store_pickup/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/capture (1).png differ diff --git a/website_in_store_pickup/static/description/assets/icons/check.png b/website_in_store_pickup/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/check.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/chevron.png b/website_in_store_pickup/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/chevron.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/cogs.png b/website_in_store_pickup/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/cogs.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/consultation.png b/website_in_store_pickup/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/consultation.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/ecom-black.png b/website_in_store_pickup/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/ecom-black.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/education-black.png b/website_in_store_pickup/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/education-black.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/hotel-black.png b/website_in_store_pickup/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/hotel-black.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/img.png b/website_in_store_pickup/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/img.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/license.png b/website_in_store_pickup/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/license.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/lifebuoy.png b/website_in_store_pickup/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/lifebuoy.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/manufacturing-black.png b/website_in_store_pickup/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/manufacturing-black.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/photo-capture.png b/website_in_store_pickup/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/photo-capture.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/pos-black.png b/website_in_store_pickup/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/pos-black.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/puzzle.png b/website_in_store_pickup/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/puzzle.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/restaurant-black.png b/website_in_store_pickup/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/restaurant-black.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/service-black.png b/website_in_store_pickup/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/service-black.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/trading-black.png b/website_in_store_pickup/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/trading-black.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/training.png b/website_in_store_pickup/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/training.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/update.png b/website_in_store_pickup/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/update.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/user.png b/website_in_store_pickup/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/user.png differ diff --git a/website_in_store_pickup/static/description/assets/icons/wrench.png b/website_in_store_pickup/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/website_in_store_pickup/static/description/assets/icons/wrench.png differ diff --git a/website_in_store_pickup/static/description/assets/misc/Cybrosys R.png b/website_in_store_pickup/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/misc/Cybrosys R.png differ diff --git a/website_in_store_pickup/static/description/assets/misc/email.svg b/website_in_store_pickup/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/website_in_store_pickup/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website_in_store_pickup/static/description/assets/misc/phone.svg b/website_in_store_pickup/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/website_in_store_pickup/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/website_in_store_pickup/static/description/assets/misc/star (1) 2.svg b/website_in_store_pickup/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/website_in_store_pickup/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website_in_store_pickup/static/description/assets/misc/support (1) 1.svg b/website_in_store_pickup/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/website_in_store_pickup/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website_in_store_pickup/static/description/assets/misc/support-email.svg b/website_in_store_pickup/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/website_in_store_pickup/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/website_in_store_pickup/static/description/assets/misc/tick-mark.svg b/website_in_store_pickup/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/website_in_store_pickup/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/website_in_store_pickup/static/description/assets/misc/whatsapp 1.svg b/website_in_store_pickup/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/website_in_store_pickup/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website_in_store_pickup/static/description/assets/misc/whatsapp.svg b/website_in_store_pickup/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/website_in_store_pickup/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website_in_store_pickup/static/description/assets/modules/module_image (1).jpeg b/website_in_store_pickup/static/description/assets/modules/module_image (1).jpeg new file mode 100644 index 000000000..5ae24843e Binary files /dev/null and b/website_in_store_pickup/static/description/assets/modules/module_image (1).jpeg differ diff --git a/website_in_store_pickup/static/description/assets/modules/module_image (1).png b/website_in_store_pickup/static/description/assets/modules/module_image (1).png new file mode 100644 index 000000000..0dea4f332 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/modules/module_image (1).png differ diff --git a/website_in_store_pickup/static/description/assets/modules/module_image (2).png b/website_in_store_pickup/static/description/assets/modules/module_image (2).png new file mode 100644 index 000000000..a5dc79613 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/modules/module_image (2).png differ diff --git a/website_in_store_pickup/static/description/assets/modules/module_image-1.jpeg b/website_in_store_pickup/static/description/assets/modules/module_image-1.jpeg new file mode 100644 index 000000000..31f066e9c Binary files /dev/null and b/website_in_store_pickup/static/description/assets/modules/module_image-1.jpeg differ diff --git a/website_in_store_pickup/static/description/assets/modules/module_image.jpeg b/website_in_store_pickup/static/description/assets/modules/module_image.jpeg new file mode 100644 index 000000000..0cbac311c Binary files /dev/null and b/website_in_store_pickup/static/description/assets/modules/module_image.jpeg differ diff --git a/website_in_store_pickup/static/description/assets/modules/module_image.png b/website_in_store_pickup/static/description/assets/modules/module_image.png new file mode 100644 index 000000000..612be4b77 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/modules/module_image.png differ diff --git a/website_in_store_pickup/static/description/assets/screenshots/1.png b/website_in_store_pickup/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..bb0bbbf35 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/screenshots/1.png differ diff --git a/website_in_store_pickup/static/description/assets/screenshots/2.png b/website_in_store_pickup/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..561e26d62 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/screenshots/2.png differ diff --git a/website_in_store_pickup/static/description/assets/screenshots/3.png b/website_in_store_pickup/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..4c995e94a Binary files /dev/null and b/website_in_store_pickup/static/description/assets/screenshots/3.png differ diff --git a/website_in_store_pickup/static/description/assets/screenshots/4.png b/website_in_store_pickup/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..b8e08d9e1 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/screenshots/4.png differ diff --git a/website_in_store_pickup/static/description/assets/screenshots/hero-v17.gif b/website_in_store_pickup/static/description/assets/screenshots/hero-v17.gif new file mode 100644 index 000000000..b134ca9b8 Binary files /dev/null and b/website_in_store_pickup/static/description/assets/screenshots/hero-v17.gif differ diff --git a/website_in_store_pickup/static/description/banner.jpg b/website_in_store_pickup/static/description/banner.jpg new file mode 100644 index 000000000..f0b971557 Binary files /dev/null and b/website_in_store_pickup/static/description/banner.jpg differ diff --git a/website_in_store_pickup/static/description/icon.png b/website_in_store_pickup/static/description/icon.png new file mode 100644 index 000000000..35f11c2e2 Binary files /dev/null and b/website_in_store_pickup/static/description/icon.png differ diff --git a/website_in_store_pickup/static/description/index.html b/website_in_store_pickup/static/description/index.html new file mode 100644 index 000000000..eb43721f9 --- /dev/null +++ b/website_in_store_pickup/static/description/index.html @@ -0,0 +1,705 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Website In-Store Pickup

+

+ This module helps the Customers to Select Products Online, + Choose a Store Location, and Collect their Purchases from + Physical Store. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ New Shipping option

+

Provide a new + Shipping option during the Checkout + process that allows Customers to choose In-Store + Pickup + Delivery Method. +

+
+
+
+
+
+
+ +
+
+

+ Physical Store Location

+

Customers might + be able to select their preferred + Physical Store Location from which they'll pick + up their Order + from the available ones. +

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

+ Choose the Warehouse in Inventory as Store + by Enabling the + Store Option.

+
+
+
+
+
+
+ +
+
+

+ Create and Publish the Delivery Method for + In-Store Pickup by Enabling the + Store Pickup Option.In the Available Stores + field, Leave + Empty to Display all Stores in the Website + Sale and Choose the + Desired Stores to Restrict other Stores from + Display in Website.

+
+
+
+
+
+
+ +
+
+

+ Choose the In-Store Delivery Method and + Select the Store for + Pickup.The Corresponding Store Address will + be Updated in the Shipping + Address Section.

+
+
+
+
+
+
+ +
+
+

+ The Store Address will be Updated to the + Delivery Address and + Invoice Address in the Corresponding Website + Order in the Backend.

+
+
+
+
+
+
+
    +
  • + Available in + Odoo 17.0 Community, Enterprise and Odoo.sh +
  • +
  • + Provide a new + Shipping option during the Checkout process. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:12th April 2024 +
+

+ Initial Commit for Website In-Store Pickup.

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Licensing Consultancy

+
+
+
+
+
+
+

+ Our Industries

+
+
+
+
+
+
+ +

Trading

+

Easily procure and sell your products

+
+
+
+
+ +

POS

+

Easy configuration and convivial experience

+
+
+
+
+ +

+ Education

+

A platform for educational management

+
+
+
+
+ +

+ Manufacturing

+

Plan, track and schedule your operations

+
+
+
+
+ +

E-commerce & + Website

+

Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +

Service + Management

+

Keep track of services and invoice

+
+
+
+
+ +

+ Restaurant

+

Run your bar or restaurant methodically

+
+
+
+
+ +

Hotel + Management

+

An all-inclusive hotel management application

+
+
+
+
+
+
+

+ Support

+
+
+
+
+
+
+
+ +
+ Need + Help? +

Got + questions or need help? Get in touch.

+
odoo@cybrosys.com +
+
+
+
+
+
+
+
+ +
+ WhatsApp +

Say hi to + us on WhatsApp!

+
+91 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/website_in_store_pickup/static/src/css/store.css b/website_in_store_pickup/static/src/css/store.css new file mode 100644 index 000000000..e69de29bb diff --git a/website_in_store_pickup/static/src/js/website_in_store_pickup.js b/website_in_store_pickup/static/src/js/website_in_store_pickup.js new file mode 100644 index 000000000..c266981a4 --- /dev/null +++ b/website_in_store_pickup/static/src/js/website_in_store_pickup.js @@ -0,0 +1,80 @@ +/* @odoo-module */ +import publicWidget from "@web/legacy/js/public/public_widget"; +import { renderToElement } from "@web/core/utils/render"; +import '@website_sale/js/website_sale_delivery'; +import { useRef, useState } from "@odoo/owl"; + + +/** + * Extends the websiteSaleDelivery widget to handle store pickup functionality. + */ +publicWidget.registry.websiteSaleDelivery.include({ + + start: function () { + this.rpc = this.bindService("rpc"); + return this._super.apply(this, ...arguments); + }, + /** + * Handles the click event on the store pickup dropdown. + * + * Updates the address display based on the selected store and toggles the + * visibility of UI elements. + * + * @param {Event} ev - The click event. + */ + async _onClickDropDown(ev){ + var addressTemplate = {}; + const selectedStoreId = parseInt(ev.target.selectedOptions[0]?.dataset.storeId) + var self = this; + const address = await this.rpc( '/shop/update_address', { + store_id: selectedStoreId + }) + this.$el.find('#store_address_section').remove() + if (address) { + addressTemplate.address = address.store_id[0].contact_address + } + this.$el.find('#shipping_and_billing').after(renderToElement('StoreAddress', addressTemplate)); + this.$el.find('#shipping_and_billing').hide(); + }, + /** + * Handles the click event on a carrier option. + * + * Performs actions such as checking carrier options, updating UI elements, + * and dynamically rendering store pickup dropdown. + * + * @param {Event} ev - The click event. + */ + _onCarrierClick: async function (ev) { + this._super(...arguments) + var radio = $(ev.currentTarget).find('input[type="radio"]'); + const status = await this.rpc( '/shop/check_carrier', { + carrier_id: radio.val() + } + ) + this.$el.find('#shipping_and_billing').show() + this.$el.find('#store_address_section').remove() + if (this.$el.find('#shipping_and_billing')) + var storeDropdown = this.$el.find('.store-pickup-dropdown'); + if (! status.is_store_pick ){ + storeDropdown.hide(); + } + if (status['is_store_pick']){ + var templateData = {}; + if (status['store_ids'].length === 0) { + templateData.store_all = status['store_id']; + } + else { + templateData.stores = status['store_ids']; + } + var self = this; + if ( storeDropdown.length === 0 ) { + await this.$el.find('#delivery_method').append(renderToElement('StorePickup', templateData)); + this.el.querySelector('.store-pickup-dropdown').addEventListener('click',this._onClickDropDown.bind(this) ) + storeDropdown.on('click', this._onClickDropDown.bind(this)) + } + else { + storeDropdown.show() + } + } + } +}) diff --git a/website_in_store_pickup/static/src/xml/website_in_store_pickup_templates.xml b/website_in_store_pickup/static/src/xml/website_in_store_pickup_templates.xml new file mode 100644 index 000000000..28d276233 --- /dev/null +++ b/website_in_store_pickup/static/src/xml/website_in_store_pickup_templates.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + +
+ Store Address: + +
+
+
diff --git a/website_in_store_pickup/views/delivery_carrier_views.xml b/website_in_store_pickup/views/delivery_carrier_views.xml new file mode 100644 index 000000000..5c95ae7df --- /dev/null +++ b/website_in_store_pickup/views/delivery_carrier_views.xml @@ -0,0 +1,19 @@ + + + + + delivery.carrier.view.form.inherit.website.in.store.pickup + delivery.carrier + + + + + + + + + + + diff --git a/website_in_store_pickup/views/stock_warehouse_views.xml b/website_in_store_pickup/views/stock_warehouse_views.xml new file mode 100644 index 000000000..57cad2c83 --- /dev/null +++ b/website_in_store_pickup/views/stock_warehouse_views.xml @@ -0,0 +1,15 @@ + + + + + stock.warehouse.view.form.inherit.website.in.store.pickup + stock.warehouse + + + + + + + +