diff --git a/delivery_date_scheduler_odoo/README.rst b/delivery_date_scheduler_odoo/README.rst new file mode 100644 index 000000000..70b0ff43a --- /dev/null +++ b/delivery_date_scheduler_odoo/README.rst @@ -0,0 +1,35 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +================================================= +Delivery Date Scheduler +================================================= +let your customer can set delivery date + +Configuration +============= +* No additional configurations needed +Company +------- +* `Cybrosys Techno Solutions `__ +Credits +------- +* Developers: yadhukrishnan @ cybrosys, 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..e24bb3e67 --- /dev/null +++ b/delivery_date_scheduler_odoo/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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 diff --git a/delivery_date_scheduler_odoo/__manifest__.py b/delivery_date_scheduler_odoo/__manifest__.py new file mode 100644 index 000000000..84fee0815 --- /dev/null +++ b/delivery_date_scheduler_odoo/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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': '16.0.1.0.0', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + '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.""", + 'depends': [ + 'base', + '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' + ] + }, + 'license': 'AGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False, +} 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..5b133f55b --- /dev/null +++ b/delivery_date_scheduler_odoo/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 31.05.2023 +#### Version 16.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..2dc29f2e5 --- /dev/null +++ b/delivery_date_scheduler_odoo/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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..d7e14234f --- /dev/null +++ b/delivery_date_scheduler_odoo/models/res_config_settings.py @@ -0,0 +1,94 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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 datetime import timedelta +from odoo import api, 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", + help="You can set date range for your " + "customer delivery date") + min_date_range = fields.Integer(string="Minimum Range", default=5, + required=True, + help="Set minimum date range") + max_date_range = fields.Integer(string="Maximum Range", default=10, required=True, + help="Set maximum date range") + + def set_values(self): + res = super(ResConfigSettings, self).set_values() + self.env['ir.config_parameter'].set_param( + 'delivery_date_scheduler_odoo.warning_date', self.warning_date) + self.env['ir.config_parameter'].set_param( + 'delivery_date_scheduler_odoo.min_date_range', self.min_date_range) + self.env['ir.config_parameter'].set_param( + 'delivery_date_scheduler_odoo.max_date_range', self.max_date_range) + return res + + @api.model + def get_values(self): + res = super(ResConfigSettings, self).get_values() + params = self.env['ir.config_parameter'].sudo() + res.update( + warning_date=params.get_param( + 'delivery_date_scheduler_odoo.warning_date'), + min_date_range=params.get_param( + 'delivery_date_scheduler_odoo.min_date_range'), + max_date_range=params.get_param( + 'delivery_date_scheduler_odoo.max_date_range'), + ) + return res + + def delivery_date_schedule(self, data): + """ + for checking the user entered delivery date + """ + config_parameter = self.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(data) < 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 + } 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..f76de5de9 --- /dev/null +++ b/delivery_date_scheduler_odoo/models/sale_order.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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 . +################################################################################ +import datetime +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") + + def confirm_delivery_date_schedule(self, data): + """ + confirm and writing the confirmed quotation + """ + sale_order = self.env['sale.order'].sudo().browse(int(data['id'])) + sale_order.sudo().update({ + 'commitment_date': datetime.datetime.strptime(data['date'], + "%Y-%m-%d").date(), + 'user_description': data['description'] + }) + sale_order.sudo().action_confirm() 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/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/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/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/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/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.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.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/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/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/Screenshot1.jpg b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot1.jpg new file mode 100644 index 000000000..ad43767b3 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot1.jpg differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot2.jpg b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot2.jpg new file mode 100644 index 000000000..208ae280a Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot2.jpg differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot3.jpg b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot3.jpg new file mode 100644 index 000000000..e970e9ec7 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot3.jpg differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot4.jpg b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot4.jpg new file mode 100644 index 000000000..3245d221a Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot4.jpg differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot5.jpg b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot5.jpg new file mode 100644 index 000000000..058c2c5c8 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot5.jpg differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot6.jpg b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot6.jpg new file mode 100644 index 000000000..4e41407c8 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot6.jpg differ diff --git a/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot7.jpg b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot7.jpg new file mode 100644 index 000000000..f8b83721d Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/assets/screenshots/Screenshot7.jpg 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..268fbce44 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.png b/delivery_date_scheduler_odoo/static/description/banner.png new file mode 100644 index 000000000..409cea6e4 Binary files /dev/null and b/delivery_date_scheduler_odoo/static/description/banner.png 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..f6a433b1b 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..6dc365cc8 --- /dev/null +++ b/delivery_date_scheduler_odoo/static/description/index.html @@ -0,0 +1,577 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Delivery Date Scheduler +

+

Let your customer can select delivery date.

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

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ In this module your customer can choose the delivery date and also, they can + confirm the order in portal section. +
+ +
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + 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. +
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

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 can enter the delivery date and comments. +

+ +
+ +
+ +

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

+ +
+
+ +

+ Click the confirm button. +

+ +
+
+ +

delivery date scheduled as user entered date. +

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

+ 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/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..4f57c7d5f --- /dev/null +++ b/delivery_date_scheduler_odoo/static/src/js/portal_content.js @@ -0,0 +1,66 @@ +odoo.define('delivery_date_scheduler_odoo.portal_content', function(require) { + "use strict"; + var rpc = require('web.rpc'); + var PublicWidget = require('web.public.widget'); + var Dialog = require('web.Dialog'); + var Template = 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 = ""; + rpc.query({ + model: 'res.config.settings', + method: 'delivery_date_schedule', + args: [, 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 { + rpc.query({ + model: 'sale.order', + method: 'confirm_delivery_date_schedule', + args: [, { + 'id': ev.currentTarget.getAttribute("value"), + 'date': self.input_date, + 'description': self.input_comment + }], + }) + window.location = "/my/home" + } + } + }) + PublicWidget.registry.delivery_schedule_portal_content = Template; + return Template; +}) \ No newline at end of file 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..0d085a148 --- /dev/null +++ b/delivery_date_scheduler_odoo/views/res_config_settings_views.xml @@ -0,0 +1,42 @@ + + + + + + res.config.settings.view.form.inherit.delivery_date_scheduler_odoo + + res.config.settings + + + +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + \ No newline at end of file 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..d2bec5bd0 --- /dev/null +++ b/delivery_date_scheduler_odoo/views/sale_order_views.xml @@ -0,0 +1,17 @@ + + + + + + view.order.form.inherit.delivery_date_scheduler_odoo + + sale.order + + + + + + + + + \ No newline at end of file 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..860321c6d --- /dev/null +++ b/delivery_date_scheduler_odoo/views/website_template.xml @@ -0,0 +1,29 @@ + + + +