diff --git a/delivery_date_scheduler_odoo/README.rst b/delivery_date_scheduler_odoo/README.rst new file mode 100644 index 000000000..b7dcc419f --- /dev/null +++ b/delivery_date_scheduler_odoo/README.rst @@ -0,0 +1,48 @@ +.. 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 + +Delivery Date Scheduler +======================= +let your customer can set delivery date + +Configuration +============= +* No additional configurations needed + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: (V16) yadhukrishnan + (V17) Gayathri V + +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: ``__ \ No newline at end of file diff --git a/delivery_date_scheduler_odoo/__init__.py b/delivery_date_scheduler_odoo/__init__.py new file mode 100644 index 000000000..8a034f88c --- /dev/null +++ b/delivery_date_scheduler_odoo/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Gayathri V(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 models +from . import controllers diff --git a/delivery_date_scheduler_odoo/__manifest__.py b/delivery_date_scheduler_odoo/__manifest__.py new file mode 100644 index 000000000..c7eddc190 --- /dev/null +++ b/delivery_date_scheduler_odoo/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Gayathri V(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': 'Delivery Date Scheduler', + 'category': 'Website', + 'version': '17.0.1.0.0', + 'summary': """Delivery Date Schedule For Odoo16 Community and Enterprise + Edition""", + 'description': """In this module you customer set a delivery date in the + portal view also, customer can confirm the sale order.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['portal','website_sale','sale_management'], + 'data': [ + 'views/website_template.xml', + 'views/sale_order_views.xml', + 'views/res_config_settings_views.xml', + ], + 'assets': { + 'web.assets_frontend': [ + 'delivery_date_scheduler_odoo/static/src/js/portal_content.js' + ] + }, + 'images': [ + 'static/description/banner.jpg' + ], + 'license': 'AGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False, +} diff --git a/delivery_date_scheduler_odoo/controllers/__init__.py b/delivery_date_scheduler_odoo/controllers/__init__.py new file mode 100644 index 000000000..3f4a9d161 --- /dev/null +++ b/delivery_date_scheduler_odoo/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Gayathri V(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 delivery_date_scheduler_odoo diff --git a/delivery_date_scheduler_odoo/controllers/delivery_date_scheduler_odoo.py b/delivery_date_scheduler_odoo/controllers/delivery_date_scheduler_odoo.py new file mode 100644 index 000000000..fc385940e --- /dev/null +++ b/delivery_date_scheduler_odoo/controllers/delivery_date_scheduler_odoo.py @@ -0,0 +1,75 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gayathri V (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 datetime import timedelta +from odoo import fields, http +from odoo.http import request + + +class DeliveryDateScheduler(http.Controller): + """Add lawyers as selection values in Dashboard""" + + @http.route('/delivery_date_schedule', type='json', auth='user', + csrf=False) + def delivery_date_schedule(self, **kw): + """ + for checking the user entered delivery date + """ + config_parameter = request.env['ir.config_parameter'] + warning_date = bool(config_parameter.sudo().get_param( + 'delivery_date_scheduler_odoo.warning_date')) + new_maximum_date = False + new_minimum_date = False + if warning_date: + min_date = int(config_parameter.sudo().get_param( + 'delivery_date_scheduler_odoo.min_date_range')) + max_date = int(config_parameter.sudo().get_param( + 'delivery_date_scheduler_odoo.max_date_range')) + today_date = fields.Date.today() + minimum_date = today_date + timedelta(days=min_date) + maximum_date = today_date + timedelta(days=max_date) + new_maximum_date = maximum_date.strftime("%d-%m-%Y") + new_minimum_date = minimum_date.strftime("%d-%m-%Y") + if minimum_date < fields.Date.from_string( + kw.get('date')) < maximum_date: + error_value = 1 + else: + error_value = 2 + else: + error_value = 3 + return { + 'error_value': error_value, + 'min_date': new_minimum_date, + 'max_date': new_maximum_date + } + + @http.route('/confirm_delivery_date_schedule', type='json', auth='user', + csrf=False) + def confirm_delivery_date_schedule(self, **kw): + """ + confirm and writing the confirmed quotation + """ + sale_order = request.env['sale.order'].sudo().browse(int(kw.get('id'))) + sale_order.sudo().update({ + 'commitment_date': kw.get('date'), + 'user_description': kw.get('description') + }) + sale_order.action_confirm() diff --git a/delivery_date_scheduler_odoo/doc/RELEASE_NOTES.md b/delivery_date_scheduler_odoo/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..2f970b97f --- /dev/null +++ b/delivery_date_scheduler_odoo/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 17.02.2024 +#### Version 17.0.1.0.0 +#### ADD +- Initial Commit for Delivery Date Scheduler diff --git a/delivery_date_scheduler_odoo/models/__init__.py b/delivery_date_scheduler_odoo/models/__init__.py new file mode 100644 index 000000000..4e6d62ceb --- /dev/null +++ b/delivery_date_scheduler_odoo/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Gayathri V(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 res_config_settings +from . import sale_order diff --git a/delivery_date_scheduler_odoo/models/res_config_settings.py b/delivery_date_scheduler_odoo/models/res_config_settings.py new file mode 100644 index 000000000..7f3858016 --- /dev/null +++ b/delivery_date_scheduler_odoo/models/res_config_settings.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Gayathri V(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 ResConfigSettings(models.TransientModel): + """ + fields included super set_values and get_values and checking the user + entered delivery date + """ + _inherit = 'res.config.settings' + + warning_date = fields.Boolean(string="Restrict Date", + config_parameter="delivery_date_scheduler_odoo." + "warning_date", + help="You can set date range for your " + "customer delivery date") + min_date_range = fields.Integer(string="Minimum Range", default=5, + required=True, + config_parameter="delivery_date_scheduler_odoo." + "min_date_range", + help="Set minimum date range") + max_date_range = fields.Integer(string="Maximum Range", default=10, + required=True, + config_parameter="delivery_date_scheduler_odoo." + "max_date_range", + help="Set maximum date range") diff --git a/delivery_date_scheduler_odoo/models/sale_order.py b/delivery_date_scheduler_odoo/models/sale_order.py new file mode 100644 index 000000000..c704d8227 --- /dev/null +++ b/delivery_date_scheduler_odoo/models/sale_order.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Gayathri V(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 SaleOrder(models.Model): + """ + fields included , update values in quotation and conform the quotation + """ + _inherit = 'sale.order' + + user_description = fields.Text(string="User Description", + help="Description of the user") diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/capture (1).png b/delivery_date_scheduler_odoo/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/capture (1).png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/check.png b/delivery_date_scheduler_odoo/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/check.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/chevron.png b/delivery_date_scheduler_odoo/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/chevron.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/cogs.png b/delivery_date_scheduler_odoo/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/cogs.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/consultation.png b/delivery_date_scheduler_odoo/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/consultation.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/ecom-black.png b/delivery_date_scheduler_odoo/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/ecom-black.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/education-black.png b/delivery_date_scheduler_odoo/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/education-black.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/hotel-black.png b/delivery_date_scheduler_odoo/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/hotel-black.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/img.png b/delivery_date_scheduler_odoo/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/img.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/license.png b/delivery_date_scheduler_odoo/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/license.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/lifebuoy.png b/delivery_date_scheduler_odoo/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/lifebuoy.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/manufacturing-black.png b/delivery_date_scheduler_odoo/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/manufacturing-black.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/photo-capture.png b/delivery_date_scheduler_odoo/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/photo-capture.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/pos-black.png b/delivery_date_scheduler_odoo/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/pos-black.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/puzzle.png b/delivery_date_scheduler_odoo/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/puzzle.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/restaurant-black.png b/delivery_date_scheduler_odoo/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/restaurant-black.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/service-black.png b/delivery_date_scheduler_odoo/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/service-black.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/trading-black.png b/delivery_date_scheduler_odoo/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/trading-black.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/training.png b/delivery_date_scheduler_odoo/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/training.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/update.png b/delivery_date_scheduler_odoo/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/update.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/user.png b/delivery_date_scheduler_odoo/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/user.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/icons/wrench.png b/delivery_date_scheduler_odoo/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/icons/wrench.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/Cybrosys R.png b/delivery_date_scheduler_odoo/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/Cybrosys R.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/categories.png b/delivery_date_scheduler_odoo/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/categories.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/check-box.png b/delivery_date_scheduler_odoo/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/check-box.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/compass.png b/delivery_date_scheduler_odoo/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/compass.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/corporate.png b/delivery_date_scheduler_odoo/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/corporate.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/customer-support.png b/delivery_date_scheduler_odoo/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/customer-support.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/cybrosys-logo.png b/delivery_date_scheduler_odoo/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/cybrosys-logo.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/email.svg b/delivery_date_scheduler_odoo/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/delivery_date_scheduler_odoo/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/features.png b/delivery_date_scheduler_odoo/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/features.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/logo.png b/delivery_date_scheduler_odoo/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/logo.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/phone.svg b/delivery_date_scheduler_odoo/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/delivery_date_scheduler_odoo/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/pictures.png b/delivery_date_scheduler_odoo/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/pictures.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/pie-chart.png b/delivery_date_scheduler_odoo/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/pie-chart.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/right-arrow.png b/delivery_date_scheduler_odoo/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/right-arrow.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/star (1) 2.svg b/delivery_date_scheduler_odoo/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/delivery_date_scheduler_odoo/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/star.png b/delivery_date_scheduler_odoo/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/star.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/support (1) 1.svg b/delivery_date_scheduler_odoo/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/delivery_date_scheduler_odoo/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/support-email.svg b/delivery_date_scheduler_odoo/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/delivery_date_scheduler_odoo/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/support.png b/delivery_date_scheduler_odoo/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/support.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/tick-mark.svg b/delivery_date_scheduler_odoo/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/delivery_date_scheduler_odoo/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/whatsapp 1.svg b/delivery_date_scheduler_odoo/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/delivery_date_scheduler_odoo/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/whatsapp.png b/delivery_date_scheduler_odoo/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/misc/whatsapp.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/misc/whatsapp.svg b/delivery_date_scheduler_odoo/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/delivery_date_scheduler_odoo/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/1.gif b/delivery_date_scheduler_odoo/static/description/assets/modules/1.gif new file mode 100644 index 000000000..8ac32db03 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/1.gif differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/1.png b/delivery_date_scheduler_odoo/static/description/assets/modules/1.png new file mode 100644 index 000000000..3bedf7981 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/1.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/2.jpg b/delivery_date_scheduler_odoo/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..a1dc39c89 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/2.jpg differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/2.png b/delivery_date_scheduler_odoo/static/description/assets/modules/2.png new file mode 100644 index 000000000..2c8fbb83f Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/2.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/3.png b/delivery_date_scheduler_odoo/static/description/assets/modules/3.png new file mode 100644 index 000000000..25ed3e0b6 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/3.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/4.png b/delivery_date_scheduler_odoo/static/description/assets/modules/4.png new file mode 100644 index 000000000..bc5648b1a Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/4.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/5.png b/delivery_date_scheduler_odoo/static/description/assets/modules/5.png new file mode 100644 index 000000000..7cc3625c7 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/5.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/6.png b/delivery_date_scheduler_odoo/static/description/assets/modules/6.png new file mode 100644 index 000000000..745d6db78 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/6.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/banner.jpg b/delivery_date_scheduler_odoo/static/description/assets/modules/banner.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/banner.jpg differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/l1.png b/delivery_date_scheduler_odoo/static/description/assets/modules/l1.png new file mode 100644 index 000000000..ed175b076 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/l1.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/l2.png b/delivery_date_scheduler_odoo/static/description/assets/modules/l2.png new file mode 100644 index 000000000..a3194264c Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/l2.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/l3.png b/delivery_date_scheduler_odoo/static/description/assets/modules/l3.png new file mode 100644 index 000000000..e894393ef Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/l3.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/l4.png b/delivery_date_scheduler_odoo/static/description/assets/modules/l4.png new file mode 100644 index 000000000..f3c986fc1 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/l4.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/l5.png b/delivery_date_scheduler_odoo/static/description/assets/modules/l5.png new file mode 100644 index 000000000..b21837312 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/l5.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/modules/l6.png b/delivery_date_scheduler_odoo/static/description/assets/modules/l6.png new file mode 100644 index 000000000..e64a5b55c Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/modules/l6.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/screenshots/1.png b/delivery_date_scheduler_odoo/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..de79e1622 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/screenshots/1.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/screenshots/2.png b/delivery_date_scheduler_odoo/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..c5d3c0676 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/screenshots/2.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/screenshots/3.png b/delivery_date_scheduler_odoo/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..a663929c7 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/screenshots/3.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/screenshots/4.png b/delivery_date_scheduler_odoo/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..30eab955b Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/screenshots/4.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/screenshots/6.png b/delivery_date_scheduler_odoo/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..b7ea53e8c Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/screenshots/6.png differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/screenshots/hero.gif b/delivery_date_scheduler_odoo/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..6fbf346dc Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/screenshots/hero.gif differ diff --git a/delivery_date_scheduler_odoo/static/description/banner.jpg b/delivery_date_scheduler_odoo/static/description/banner.jpg new file mode 100644 index 000000000..f19c4272b Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/banner.jpg differ diff --git a/delivery_date_scheduler_odoo/static/description/icon.png b/delivery_date_scheduler_odoo/static/description/icon.png new file mode 100644 index 000000000..d394fe9d6 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/icon.png differ diff --git a/delivery_date_scheduler_odoo/static/description/index.html b/delivery_date_scheduler_odoo/static/description/index.html new file mode 100644 index 000000000..c568c9e7b --- /dev/null +++ b/delivery_date_scheduler_odoo/static/description/index.html @@ -0,0 +1,769 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Delivery Date Scheduler

+

+ Let your customer can select delivery date. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Customer can select the delivery date.

+
+
+
+
+
+
+ +
+
+

+ Customer can confirm the quotation in the portal + view.

+
+
+
+
+
+
+ +
+
+

+ Customer can leave comments in quotation order + about delivery.

+
+
+
+
+
+
+ +
+
+

+ Supports Community and Enterprise.

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

+ Date Restriction Configuration .

+

+ Under Website > Configurations > Restrict + Date. It is an option to configure the + settings if the admin wants to set a + specific delivery date range.

+
+
+
+
+
+
+ +
+
+

+ Portal View

+

+ User need to open my account section.

+
+
+
+
+
+
+ +
+
+

+ Open Quotations and select a quotation.

+
+
+
+
+
+
+ +
+
+

+ User need to enter exact date between minimum range and maximum range.

+
+
+
+
+
+
+ +
+
+

+ Click the confirm button.

+
+
+
+
+
+
+ +
+
+

+ Delivery date scheduled as user entered date.

+
+
+
+
+
+
+
    +
  • + Customer can select the delivery date. +
  • +
  • + Customer can confirm the quotation in the portal view. +
  • +
  • + Customer can leave comments in quotation order about delivery. +
  • +
  • + Customer friendly website. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:17th Feb 2024 +
+

+ + Initial Commit for Delivery Date Scheduler.

+
+
+
+
+
+
+
+

+ 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/delivery_date_scheduler_odoo/static/src/js/portal_content.js b/delivery_date_scheduler_odoo/static/src/js/portal_content.js new file mode 100644 index 000000000..e9679612a --- /dev/null +++ b/delivery_date_scheduler_odoo/static/src/js/portal_content.js @@ -0,0 +1,54 @@ +/** @odoo-module **/ + + import { jsonrpc } from "@web/core/network/rpc_service"; + import publicWidget from "@web/legacy/js/public/public_widget"; + import Dialog from "@web/legacy/js/core/dialog"; + publicWidget.registry.Delivery_date = publicWidget.Widget.extend({ + + selector: '.delivery_schedule_portal_content', + events: { + 'change #delivery_note': '_onChangeDeliveryNote', + 'change #delivery_date': '_onChangeDeliveryDate', + 'click #confirm': '_onClickConfirm', + }, + /** + * getting input data from delivery_note + */ + _onChangeDeliveryNote: function(ev) { + this.input_comment = ev.currentTarget.value + }, + /** + * getting input data from delivery_date and transfer to checking + */ + _onChangeDeliveryDate: function(ev) { + this.input_date = ev.currentTarget.value + var self = this; + this.el.querySelector("#error_for_date").innerHTML = ""; + jsonrpc('/delivery_date_schedule', {'date': this.input_date}).then(function(data) { + self.error_value = data.error_value + self.min_date = data.min_date + self.max_date = data.max_date + if (self.error_value == 2) { + self.el.querySelector("#error_for_date").innerHTML = "* the delivery date must between " + self.min_date + " and " + self.max_date + } + }); + }, + /** + * confirming the quotation and updating the value + */ + _onClickConfirm: function(ev) { + var self = this; + if (!this.error_value) { + Dialog.alert(self, "please provide the delivery date"); + return false; + } else if (this.error_value == 2) { + Dialog.alert(self, "please provide the delivery date between " + self.min_date + " and " + self.max_date); + return false; + } else { + jsonrpc('/confirm_delivery_date_schedule', {'id': ev.currentTarget.getAttribute("value"), + 'date': self.input_date, + 'description': self.input_comment}).then(() => window.location = "/my/home"); + + } + } + }) diff --git a/delivery_date_scheduler_odoo/views/res_config_settings_views.xml b/delivery_date_scheduler_odoo/views/res_config_settings_views.xml new file mode 100644 index 000000000..9ef9ae998 --- /dev/null +++ b/delivery_date_scheduler_odoo/views/res_config_settings_views.xml @@ -0,0 +1,37 @@ + + + + + + res.config.settings.view.form.inherit.delivery.date.scheduler.odoo + + res.config.settings + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
diff --git a/delivery_date_scheduler_odoo/views/sale_order_views.xml b/delivery_date_scheduler_odoo/views/sale_order_views.xml new file mode 100644 index 000000000..3d661e86b --- /dev/null +++ b/delivery_date_scheduler_odoo/views/sale_order_views.xml @@ -0,0 +1,16 @@ + + + + + + sale.order.view.form.inherit.delivery.date.scheduler.odoo + + sale.order + + + + + + + + diff --git a/delivery_date_scheduler_odoo/views/website_template.xml b/delivery_date_scheduler_odoo/views/website_template.xml new file mode 100644 index 000000000..ebb838447 --- /dev/null +++ b/delivery_date_scheduler_odoo/views/website_template.xml @@ -0,0 +1,36 @@ + + + +