diff --git a/website_order_delivery_tracking/README.rst b/website_order_delivery_tracking/README.rst new file mode 100644 index 000000000..71e0e2afb --- /dev/null +++ b/website_order_delivery_tracking/README.rst @@ -0,0 +1,49 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Website Order Delivery Tracking +=============================== +This module allows us to track our delivery from odoo and the delivery partners +can update the status using the api key provided. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Lesser General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +* Developers: (V16) Swaroop N P, + (V15) Aysha Shalin + 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_order_delivery_tracking/__init__.py b/website_order_delivery_tracking/__init__.py new file mode 100644 index 000000000..b80a27367 --- /dev/null +++ b/website_order_delivery_tracking/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import controllers +from . import models diff --git a/website_order_delivery_tracking/__manifest__.py b/website_order_delivery_tracking/__manifest__.py new file mode 100644 index 000000000..ed9c0464b --- /dev/null +++ b/website_order_delivery_tracking/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +{ + 'name': "Website Order Delivery Tracking", + 'version': '15.0.1.0.0', + 'category': 'Website', + 'summary': """Track delivery order status, and delivery partners can update + the status.""", + 'description': """This module allows us to track delivery status of product + and the delivery partners can update the status using the api key provided. + The delivery partners can pass data and edit the record using this api.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'website', 'stock', 'sale_stock', 'sale_management'], + 'data': [ + 'views/tracking_menu.xml', + 'views/tracking_templates.xml', + 'views/res_config_settings_views.xml', + ], + 'assets': { + 'web.assets_frontend': [ + 'website_order_delivery_tracking/static/src/css/delivery_tracking.css', + 'website_order_delivery_tracking/static/src/js/delivery_tracking.js', + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/website_order_delivery_tracking/controllers/__init__.py b/website_order_delivery_tracking/controllers/__init__.py new file mode 100644 index 000000000..7dae1e1ee --- /dev/null +++ b/website_order_delivery_tracking/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import website_order_delivery_tracking diff --git a/website_order_delivery_tracking/controllers/website_order_delivery_tracking.py b/website_order_delivery_tracking/controllers/website_order_delivery_tracking.py new file mode 100644 index 000000000..8d7b44721 --- /dev/null +++ b/website_order_delivery_tracking/controllers/website_order_delivery_tracking.py @@ -0,0 +1,64 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import http +from odoo.http import request + + +class Tracking(http.Controller): + """ Class representing Tracking """ + @http.route('/tracking/details', type='http', auth="user", website=True, + csrf=False) + def get_track_details(self): + """ Tracking details of the order """ + return request.render( + 'website_order_delivery_tracking.trackingTemplate') + + @http.route(['/tracking/details/update'], type='json', auth="user", + website=True) + def input_data_processing(self, **post): + """ Fetch input json data sent from js """ + track_data = request.env['stock.picking'].search( + [('carrier_tracking_ref', '=', post.get('input_data'))]) + tracking_details = [ + [ + rec.name, + rec.origin, + rec.carrier_id.name, + rec.tracking_status or 'Status currently not available', + ] for rec in track_data] + return tracking_details + + @http.route('/tracking/details/edit', type='json', auth="public", + website=False, csrf=False, methods=['GET', 'POST']) + def track_data_edit(self, **post): + """ Edit tracking data """ + tracking_api = request.env['ir.config_parameter'].sudo().get_param( + 'stock.delivery_tracking_api_key') + track_data = request.env['stock.picking'].sudo().search( + [('carrier_tracking_ref', '=', post.get('tracking_number'))]) + if track_data and post.get('api_key') == tracking_api: + track_data.write({ + 'tracking_status': post.get('tracking_status'), + }) + return track_data.tracking_status + else: + return [] diff --git a/website_order_delivery_tracking/doc/RELEASE_NOTES.md b/website_order_delivery_tracking/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..29da702a2 --- /dev/null +++ b/website_order_delivery_tracking/doc/RELEASE_NOTES.md @@ -0,0 +1,5 @@ +## Module +#### 28.05.2024 +#### Version 17.0.1.0.0 +##### ADD +- Initial Commit for Website Order Delivery Tracking diff --git a/website_order_delivery_tracking/models/__init__.py b/website_order_delivery_tracking/models/__init__.py new file mode 100644 index 000000000..7f595c15e --- /dev/null +++ b/website_order_delivery_tracking/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import res_config_settings +from . import stock_picking diff --git a/website_order_delivery_tracking/models/res_config_settings.py b/website_order_delivery_tracking/models/res_config_settings.py new file mode 100644 index 000000000..c4c75e3f3 --- /dev/null +++ b/website_order_delivery_tracking/models/res_config_settings.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + """ Inheriting res.config.settings for adding delivery tracking api key """ + _inherit = 'res.config.settings' + + delivery_tracking_api_key = fields.Char( + 'API Key', + help='This API key is used to access Odoo and change the delivery' + ' status', + required=True + ) + + def set_values(self): + """ + Overrides the base method to set the configured delivery tracking API + key value in the 'ir.config_parameter' model. + """ + res = super(ResConfigSettings, self).set_values() + self.env['ir.config_parameter'].set_param( + 'stock.delivery_tracking_api_key', self.delivery_tracking_api_key) + return res + + def get_values(self): + """ + Overrides the base method to get the delivery tracking API key value + from the 'ir.config_parameter' model and include it in the result. + """ + res = super(ResConfigSettings, self).get_values() + params = self.env['ir.config_parameter'].sudo() + delivery_tracking_api_key = params.get_param( + 'stock.delivery_tracking_api_key') + res.update( + delivery_tracking_api_key=delivery_tracking_api_key, + ) + return res diff --git a/website_order_delivery_tracking/models/stock_picking.py b/website_order_delivery_tracking/models/stock_picking.py new file mode 100644 index 000000000..b38eb890d --- /dev/null +++ b/website_order_delivery_tracking/models/stock_picking.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import api, fields, models, _ +from odoo.exceptions import ValidationError + + +class StockPicking(models.Model): + """ Add a field named 'tracking_status' in stock.picking to have the status + of the delivery """ + _inherit = 'stock.picking' + + tracking_status = fields.Text(string='Tracking Status', + help="Status of the picking") + + @api.constrains('carrier_tracking_ref') + def _check_carrier_tracking_ref(self): + """ To ensure tracking reference is not duplicated """ + duplicate_tracking_ref = self.search([ + ('carrier_tracking_ref', '=', self.carrier_tracking_ref)]) + for rec in self: + ref = rec.carrier_tracking_ref + if ref: + if len(duplicate_tracking_ref) > 1: + raise ValidationError(_( + "This tracking reference already exists.")) diff --git a/website_order_delivery_tracking/static/description/assets/icons/check.png b/website_order_delivery_tracking/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/check.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/chevron.png b/website_order_delivery_tracking/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/chevron.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/cogs.png b/website_order_delivery_tracking/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/cogs.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/consultation.png b/website_order_delivery_tracking/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/consultation.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/ecom-black.png b/website_order_delivery_tracking/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/ecom-black.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/education-black.png b/website_order_delivery_tracking/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/education-black.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/hotel-black.png b/website_order_delivery_tracking/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/hotel-black.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/license.png b/website_order_delivery_tracking/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/license.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/lifebuoy.png b/website_order_delivery_tracking/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/lifebuoy.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/manufacturing-black.png b/website_order_delivery_tracking/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/manufacturing-black.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/pos-black.png b/website_order_delivery_tracking/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/pos-black.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/puzzle.png b/website_order_delivery_tracking/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/puzzle.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/restaurant-black.png b/website_order_delivery_tracking/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/restaurant-black.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/service-black.png b/website_order_delivery_tracking/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/service-black.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/trading-black.png b/website_order_delivery_tracking/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/trading-black.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/training.png b/website_order_delivery_tracking/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/training.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/update.png b/website_order_delivery_tracking/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/update.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/user.png b/website_order_delivery_tracking/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/user.png differ diff --git a/website_order_delivery_tracking/static/description/assets/icons/wrench.png b/website_order_delivery_tracking/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/icons/wrench.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/categories.png b/website_order_delivery_tracking/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/categories.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/check-box.png b/website_order_delivery_tracking/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/check-box.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/compass.png b/website_order_delivery_tracking/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/compass.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/corporate.png b/website_order_delivery_tracking/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/corporate.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/customer-support.png b/website_order_delivery_tracking/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/customer-support.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/cybrosys-logo.png b/website_order_delivery_tracking/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/cybrosys-logo.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/features.png b/website_order_delivery_tracking/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/features.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/logo.png b/website_order_delivery_tracking/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/logo.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/pictures.png b/website_order_delivery_tracking/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/pictures.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/pie-chart.png b/website_order_delivery_tracking/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/pie-chart.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/right-arrow.png b/website_order_delivery_tracking/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/right-arrow.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/star.png b/website_order_delivery_tracking/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/star.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/support.png b/website_order_delivery_tracking/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/support.png differ diff --git a/website_order_delivery_tracking/static/description/assets/misc/whatsapp.png b/website_order_delivery_tracking/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/misc/whatsapp.png differ diff --git a/website_order_delivery_tracking/static/description/assets/modules/odoo_website_helpdesk.png b/website_order_delivery_tracking/static/description/assets/modules/odoo_website_helpdesk.png new file mode 100644 index 000000000..71a8a0edc Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/modules/odoo_website_helpdesk.png differ diff --git a/website_order_delivery_tracking/static/description/assets/modules/odoo_website_helpdesk_dashboard.png b/website_order_delivery_tracking/static/description/assets/modules/odoo_website_helpdesk_dashboard.png new file mode 100644 index 000000000..52b3f0233 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/modules/odoo_website_helpdesk_dashboard.png differ diff --git a/website_order_delivery_tracking/static/description/assets/modules/product_visibility_website.png b/website_order_delivery_tracking/static/description/assets/modules/product_visibility_website.png new file mode 100644 index 000000000..22e902092 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/modules/product_visibility_website.png differ diff --git a/website_order_delivery_tracking/static/description/assets/modules/website_multi_product_return_management.png b/website_order_delivery_tracking/static/description/assets/modules/website_multi_product_return_management.png new file mode 100644 index 000000000..9bd504b22 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/modules/website_multi_product_return_management.png differ diff --git a/website_order_delivery_tracking/static/description/assets/modules/website_product_attachments.png b/website_order_delivery_tracking/static/description/assets/modules/website_product_attachments.png new file mode 100644 index 000000000..ea1f49f20 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/modules/website_product_attachments.png differ diff --git a/website_order_delivery_tracking/static/description/assets/modules/website_return_management.png b/website_order_delivery_tracking/static/description/assets/modules/website_return_management.png new file mode 100644 index 000000000..c43739627 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/modules/website_return_management.png differ diff --git a/website_order_delivery_tracking/static/description/assets/screenshots/1.png b/website_order_delivery_tracking/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..4314255dd Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/screenshots/1.png differ diff --git a/website_order_delivery_tracking/static/description/assets/screenshots/2.png b/website_order_delivery_tracking/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..bb7faec18 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/screenshots/2.png differ diff --git a/website_order_delivery_tracking/static/description/assets/screenshots/3.png b/website_order_delivery_tracking/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..cfe7ad2e5 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/screenshots/3.png differ diff --git a/website_order_delivery_tracking/static/description/assets/screenshots/4.png b/website_order_delivery_tracking/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..1be78c54b Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/screenshots/4.png differ diff --git a/website_order_delivery_tracking/static/description/assets/screenshots/5.png b/website_order_delivery_tracking/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..f53b316e7 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/screenshots/5.png differ diff --git a/website_order_delivery_tracking/static/description/assets/screenshots/6.png b/website_order_delivery_tracking/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..139f21ef6 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/screenshots/6.png differ diff --git a/website_order_delivery_tracking/static/description/assets/screenshots/7.png b/website_order_delivery_tracking/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..03d3d6392 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/screenshots/7.png differ diff --git a/website_order_delivery_tracking/static/description/assets/screenshots/hero.gif b/website_order_delivery_tracking/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..b2dcf6247 Binary files /dev/null and b/website_order_delivery_tracking/static/description/assets/screenshots/hero.gif differ diff --git a/website_order_delivery_tracking/static/description/banner.png b/website_order_delivery_tracking/static/description/banner.png new file mode 100644 index 000000000..488127e65 Binary files /dev/null and b/website_order_delivery_tracking/static/description/banner.png differ diff --git a/website_order_delivery_tracking/static/description/icon.png b/website_order_delivery_tracking/static/description/icon.png new file mode 100644 index 000000000..b36e4b5f6 Binary files /dev/null and b/website_order_delivery_tracking/static/description/icon.png differ diff --git a/website_order_delivery_tracking/static/description/index.html b/website_order_delivery_tracking/static/description/index.html new file mode 100644 index 000000000..3f0a5286e --- /dev/null +++ b/website_order_delivery_tracking/static/description/index.html @@ -0,0 +1,692 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ + + +
+
+
+ +

+ Website Order Delivery Tracking +

+

+ Track Delivery Status of Product and the Delivery Partners + can Update the Delivery Status using the API Key provided.

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
This Module allows us to Track the Delivery + Status of the product and the Delivery Partners can update the status + using the API Key provided. The delivery partners can pass data and edit + the record using this API also instead of visiting the website. Also, + the user can see the Delivery Status. +
+
+ + + + +
+
+ +
+

+ Features +

+
+
+
+
+ +
+ It is easy to track an order using its associated Tracking Reference from the Transfer. +
+
+
+ +
+ +
+ There is an option to update the Delivery status, allowing us to provide accurate information to our customers. +
+
+ +
+ +
+ By utilizing the API key, we can restrict access, ensuring that only Delivery Partners have the right to update the status, thereby enhancing robustness. +
+
+
+ +
+ Supports in Odoo 15 Enterprise and Community editions. +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+
+

+ Delivery Methods.

+

+ Enable the Delivery Methods and Add the Delivery Tracking API Key. + This Key is used to Update the Delivery Status.

+ +
+
+

+ Tracking Reference.

+

+ Once we Confirm the Sale Order, let's add the Tracking Reference + here.

+ +
+ +
+

+ Edit the Delivery Status if you are a Delivery Partner

+

+ If you're a Delivery Partner, you have the Option to Modify the Delivery Status. Just click on the 'Delivery Partner?' Link and Provide the API Key,Tracking Reference, and the Update Status.

+ +
+ +
+

+ We can Search for the Delivery Status.

+

+ We can enter the Tracking Reference and press Enter to Search + for the Delivery Status

+ +
+ +
+

+ Can see the status of corresponding order

+ +
+ +
+

+ Success or Failed Message after Submitting

+

+ If the Record is Successfully Updated with the API Key, Tracking No, + and Status we will get a Success Message. If we Enter the Wrong API Key + or no data is found in the given tracking number, you will get an + Error Message.

+ +
+
+

Error Message will be Displayed if You Entered a Wrong API Key.

+

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

+ Related + Products +

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

+ Our Services +

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

+ Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

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

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/website_order_delivery_tracking/static/src/css/delivery_tracking.css b/website_order_delivery_tracking/static/src/css/delivery_tracking.css new file mode 100644 index 000000000..7b33b6086 --- /dev/null +++ b/website_order_delivery_tracking/static/src/css/delivery_tracking.css @@ -0,0 +1,24 @@ + +#trackingNumberInput:focus, #trackingInputBtn:focus{ + box-shadow: none; +} + +#trackingNumberInput::placeholder { + font-size: 0.95rem; + color: #aaa; + font-style: italic; +} +#trackingNumberInput::-webkit-outer-spin-button, +#trackingNumberInput::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +#trackingNumberInput { + -moz-appearance: textfield; +} + +#trackedTableDetails{ + max-width: 70%; + margin: 0 auto; +} diff --git a/website_order_delivery_tracking/static/src/js/delivery_tracking.js b/website_order_delivery_tracking/static/src/js/delivery_tracking.js new file mode 100644 index 000000000..ce2f9d922 --- /dev/null +++ b/website_order_delivery_tracking/static/src/js/delivery_tracking.js @@ -0,0 +1,91 @@ +odoo.define('website_order_delivery_tracking.order_tracking', function(require) { + "use strict"; + // Import required modules + var ajax = require('web.ajax'); + var publicWidget = require('web.public.widget'); + publicWidget.registry.OrderTrackingWidget = publicWidget.Widget.extend({ + // Bind the widget to the #deliveryTrackingForm element + selector: '.TrackingTemplates', + // Handler for the delivery tracking form submit event + events: { + 'click #trackingInputBtn': '_onDeliveryTracking', + 'click #TrackingUpdate': '_onDeliveryTrackingUpdate', + 'input #trackingNumberInput': '_onTrackingNumberInput', + }, + // Displays and hides tracking info based on tracking key + _onTrackingNumberInput:function(ev){ + if(!this.$el.find("#trackingNumberInput").val()){ + this.$el.find("#trackedTableDetails").hide(); + } + }, + // Submit event handler for delivery tracking form + _onDeliveryTracking: function(ev) { + let self = this + self.$el.find('#deliveryTrackingForm').submit(function(e) { + e.preventDefault(); + // Get the tracking number from the input field + var trackingNumber = self.$el.find("#trackingNumberInput").val(); + // Call the server-side controller to update tracking details + ajax.jsonRpc("/tracking/details/update", 'call', { + 'input_data': trackingNumber, + }).then(function(data) { + let noRecordsMsg = self.$el.find('#noRecordsMsg'); + // Check if data exists + if (data.length > 0) { + self.$el.find("#trackedTableDetails").show(); + // Display the tracking details in a table + self.$el.find("#trackedTableDetails").html(` + + + + + + + + + + + + + + + +
Sale OrderDelivery PartnerStatus
${data[0][1]}${data[0][2]}${data[0][3]}
+ `); + self.$el.find('#noRecordsMsg').hide(); + } + // If no data is returned, display an alert and hide the table + if (data.length <= 0) { + self.$el.find('#NoRecordsApiKey').modal('show'); + self.$el.find("#trackedTableDetails").hide(); + } + }); + }); + }, + // Submit event handler for editing tracking status form + _onDeliveryTrackingUpdate: function(ev) { + let self = this + self.$el.find('#editTrackingStatusForm').submit(function(e) { + e.preventDefault(); + // Get input values + var trackingNumber = self.$el.find("#trackingNumber").val(); + var apiKey = self.$el.find("#apiKey").val(); + var trackingStatus = self.$el.find("#trackingStatus").val(); + // Call the server-side controller to edit tracking status + ajax.jsonRpc("/tracking/details/edit", 'call', { + 'api_key': apiKey, + 'tracking_number': trackingNumber, + 'tracking_status': trackingStatus, + }).then(function(data) { + if (data.length > 0) { + // Show success modal if data is returned + self.$el.find('#successApiKey').modal('show'); + } else { + // Show failure modal if no data is returned + self.$el.find('#failedApiKey').modal('show'); + } + }); + }); + }, + }); +}); diff --git a/website_order_delivery_tracking/views/res_config_settings_views.xml b/website_order_delivery_tracking/views/res_config_settings_views.xml new file mode 100644 index 000000000..962f2fa90 --- /dev/null +++ b/website_order_delivery_tracking/views/res_config_settings_views.xml @@ -0,0 +1,32 @@ + + + + + res.config.settings.view.form.inherit.website.order.delivery.tracking + res.config.settings + + + +

Delivery Tracking

+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/website_order_delivery_tracking/views/tracking_menu.xml b/website_order_delivery_tracking/views/tracking_menu.xml new file mode 100644 index 000000000..e3a514c42 --- /dev/null +++ b/website_order_delivery_tracking/views/tracking_menu.xml @@ -0,0 +1,10 @@ + + + + + Tracking Details + /tracking/details + + 50 + + diff --git a/website_order_delivery_tracking/views/tracking_templates.xml b/website_order_delivery_tracking/views/tracking_templates.xml new file mode 100644 index 000000000..2049e71ec --- /dev/null +++ b/website_order_delivery_tracking/views/tracking_templates.xml @@ -0,0 +1,211 @@ + + + + +