diff --git a/customer_order_comment/README.rst b/customer_order_comment/README.rst new file mode 100644 index 000000000..63de736c1 --- /dev/null +++ b/customer_order_comment/README.rst @@ -0,0 +1,50 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Customer Order Comment +====================== +This module helps you to add customer rating and comments through website. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + + +Credits +------- +* Developers: (V18) Mufeeda Shirin + (V17) Gayathri V + (V16) Athira Premanand +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/customer_order_comment/__init__.py b/customer_order_comment/__init__.py new file mode 100644 index 000000000..b4ecae9df --- /dev/null +++ b/customer_order_comment/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 models +from . import controllers diff --git a/customer_order_comment/__manifest__.py b/customer_order_comment/__manifest__.py new file mode 100644 index 000000000..86bb4bfc8 --- /dev/null +++ b/customer_order_comment/__manifest__.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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': 'Customer Order Comment', + 'version': '18.0.1.0.0', + 'summary': """This module helps you to add customer rating and comments through website. + """, + 'description': """This module can be used to manage the customer rating and + comments. The comments and rating added through website can be viewed in + respective sale order. + """, + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'category': 'Website/Website', + 'maintainer': 'Cybrosys Techno Solutions', + 'depends': ['website_sale'], + 'data': [ + 'views/sale_order_views.xml', + 'views/res_config_settings_views.xml', + 'views/customer_order_comment_templates.xml' + ], + 'assets': { + 'web.assets_frontend': [ + 'customer_order_comment/static/src/js/review_and_rating.js', + 'customer_order_comment/static/src/css/review_and_rating.css' + ], + }, + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False +} diff --git a/customer_order_comment/controllers/__init__.py b/customer_order_comment/controllers/__init__.py new file mode 100644 index 000000000..edf9aa8a6 --- /dev/null +++ b/customer_order_comment/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 customer_order_comment diff --git a/customer_order_comment/controllers/customer_order_comment.py b/customer_order_comment/controllers/customer_order_comment.py new file mode 100644 index 000000000..89049f5ad --- /dev/null +++ b/customer_order_comment/controllers/customer_order_comment.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################### +"""" +This module is used to add new route /final/customer_rating for adding the +review(comment) and rating from the website. +""" +from odoo import http +from odoo.http import request + + +class CustomerRatingAndReview(http.Controller): + """ This class helps to take comment and rating from website. """ + @http.route('/final/customer_rating', type='http', auth="public", + website=True, sitemap=False) + def customer_order_rating(self, **kw): + """ This function helps to fetch the values of comment and rating """ + order_id = request.env['sale.order'].sudo().browse(int(kw['order_id'])) + order_id.comment = kw['comment'] + order_id.rating = kw['rate_value'] + return request.redirect('/shop/confirmation') diff --git a/customer_order_comment/doc/RELEASE_NOTES.md b/customer_order_comment/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..b1d24c731 --- /dev/null +++ b/customer_order_comment/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 18.08.2025 +#### Version 18.0.1.0.0 +#### ADD +- Initial Commit for Customer Order Comment diff --git a/customer_order_comment/models/__init__.py b/customer_order_comment/models/__init__.py new file mode 100644 index 000000000..a879f88c5 --- /dev/null +++ b/customer_order_comment/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 sale_order +from . import res_config_settings diff --git a/customer_order_comment/models/res_config_settings.py b/customer_order_comment/models/res_config_settings.py new file mode 100644 index 000000000..26496ff3f --- /dev/null +++ b/customer_order_comment/models/res_config_settings.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################### +""" This module inherits res.config.settings to add new setting. """ +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + """ + Inherits res.config.settings to add new setting for toggle the feature. + """ + _inherit = 'res.config.settings' + + comment_configuration = fields.Boolean( + config_parameter='customer_order_comment.comment_configuration', + string='Comment Configuration', help='Enable/ Disable the feature.') diff --git a/customer_order_comment/models/sale_order.py b/customer_order_comment/models/sale_order.py new file mode 100644 index 000000000..dd347f48d --- /dev/null +++ b/customer_order_comment/models/sale_order.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################### +""" This module inherits sale.order to add new fields. """ +from odoo import fields, models + + +class SaleOrder(models.Model): + """ Inherits sale.order to add the fields comment and rating """ + _inherit = 'sale.order' + + comment = fields.Char(string='Comment', readonly=True, + help='The comment provided by the customer.') + rating = fields.Selection([ + ('0', 'Too Bad'), ('1', 'Poor'), ('2', 'Average Quality'), + ('3', 'Nice'), ('4', 'Good')], string='Rating', readonly=True, + help='The rating provided by the customer.') diff --git a/customer_order_comment/static/description/assets/icons/capture (1).png b/customer_order_comment/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/capture (1).png differ diff --git a/customer_order_comment/static/description/assets/icons/check.png b/customer_order_comment/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/check.png differ diff --git a/customer_order_comment/static/description/assets/icons/chevron.png b/customer_order_comment/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/chevron.png differ diff --git a/customer_order_comment/static/description/assets/icons/cogs.png b/customer_order_comment/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/cogs.png differ diff --git a/customer_order_comment/static/description/assets/icons/consultation.png b/customer_order_comment/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/consultation.png differ diff --git a/customer_order_comment/static/description/assets/icons/ecom-black.png b/customer_order_comment/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/ecom-black.png differ diff --git a/customer_order_comment/static/description/assets/icons/education-black.png b/customer_order_comment/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/education-black.png differ diff --git a/customer_order_comment/static/description/assets/icons/hotel-black.png b/customer_order_comment/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/hotel-black.png differ diff --git a/customer_order_comment/static/description/assets/icons/img.png b/customer_order_comment/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/img.png differ diff --git a/customer_order_comment/static/description/assets/icons/license.png b/customer_order_comment/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/license.png differ diff --git a/customer_order_comment/static/description/assets/icons/lifebuoy.png b/customer_order_comment/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/lifebuoy.png differ diff --git a/customer_order_comment/static/description/assets/icons/manufacturing-black.png b/customer_order_comment/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/manufacturing-black.png differ diff --git a/customer_order_comment/static/description/assets/icons/photo-capture.png b/customer_order_comment/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/photo-capture.png differ diff --git a/customer_order_comment/static/description/assets/icons/pos-black.png b/customer_order_comment/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/pos-black.png differ diff --git a/customer_order_comment/static/description/assets/icons/puzzle.png b/customer_order_comment/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/puzzle.png differ diff --git a/customer_order_comment/static/description/assets/icons/restaurant-black.png b/customer_order_comment/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/restaurant-black.png differ diff --git a/customer_order_comment/static/description/assets/icons/service-black.png b/customer_order_comment/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/service-black.png differ diff --git a/customer_order_comment/static/description/assets/icons/trading-black.png b/customer_order_comment/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/trading-black.png differ diff --git a/customer_order_comment/static/description/assets/icons/training.png b/customer_order_comment/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/training.png differ diff --git a/customer_order_comment/static/description/assets/icons/update.png b/customer_order_comment/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/update.png differ diff --git a/customer_order_comment/static/description/assets/icons/user.png b/customer_order_comment/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/user.png differ diff --git a/customer_order_comment/static/description/assets/icons/wrench.png b/customer_order_comment/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/customer_order_comment/static/description/assets/icons/wrench.png differ diff --git a/customer_order_comment/static/description/assets/misc/Cybrosys R.png b/customer_order_comment/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/Cybrosys R.png differ diff --git a/customer_order_comment/static/description/assets/misc/categories.png b/customer_order_comment/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/categories.png differ diff --git a/customer_order_comment/static/description/assets/misc/check-box.png b/customer_order_comment/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/check-box.png differ diff --git a/customer_order_comment/static/description/assets/misc/compass.png b/customer_order_comment/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/compass.png differ diff --git a/customer_order_comment/static/description/assets/misc/corporate.png b/customer_order_comment/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/corporate.png differ diff --git a/customer_order_comment/static/description/assets/misc/customer-support.png b/customer_order_comment/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/customer-support.png differ diff --git a/customer_order_comment/static/description/assets/misc/cybrosys-logo.png b/customer_order_comment/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/cybrosys-logo.png differ diff --git a/customer_order_comment/static/description/assets/misc/email.svg b/customer_order_comment/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/customer_order_comment/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/customer_order_comment/static/description/assets/misc/features.png b/customer_order_comment/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/features.png differ diff --git a/customer_order_comment/static/description/assets/misc/logo.png b/customer_order_comment/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/logo.png differ diff --git a/customer_order_comment/static/description/assets/misc/phone.svg b/customer_order_comment/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/customer_order_comment/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/customer_order_comment/static/description/assets/misc/pictures.png b/customer_order_comment/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/pictures.png differ diff --git a/customer_order_comment/static/description/assets/misc/pie-chart.png b/customer_order_comment/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/pie-chart.png differ diff --git a/customer_order_comment/static/description/assets/misc/right-arrow.png b/customer_order_comment/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/right-arrow.png differ diff --git a/customer_order_comment/static/description/assets/misc/star (1) 2.svg b/customer_order_comment/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/customer_order_comment/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/customer_order_comment/static/description/assets/misc/star.png b/customer_order_comment/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/star.png differ diff --git a/customer_order_comment/static/description/assets/misc/support (1) 1.svg b/customer_order_comment/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/customer_order_comment/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/customer_order_comment/static/description/assets/misc/support-email.svg b/customer_order_comment/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/customer_order_comment/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/customer_order_comment/static/description/assets/misc/support.png b/customer_order_comment/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/support.png differ diff --git a/customer_order_comment/static/description/assets/misc/tick-mark.svg b/customer_order_comment/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/customer_order_comment/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/customer_order_comment/static/description/assets/misc/whatsapp 1.svg b/customer_order_comment/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/customer_order_comment/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/customer_order_comment/static/description/assets/misc/whatsapp.png b/customer_order_comment/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/customer_order_comment/static/description/assets/misc/whatsapp.png differ diff --git a/customer_order_comment/static/description/assets/misc/whatsapp.svg b/customer_order_comment/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/customer_order_comment/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/customer_order_comment/static/description/assets/modules/1.gif b/customer_order_comment/static/description/assets/modules/1.gif new file mode 100644 index 000000000..8ac32db03 Binary files /dev/null and b/customer_order_comment/static/description/assets/modules/1.gif differ diff --git a/customer_order_comment/static/description/assets/modules/1.png b/customer_order_comment/static/description/assets/modules/1.png new file mode 100644 index 000000000..3bedf7981 Binary files /dev/null and b/customer_order_comment/static/description/assets/modules/1.png differ diff --git a/customer_order_comment/static/description/assets/modules/2.jpg b/customer_order_comment/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..a1dc39c89 Binary files /dev/null and b/customer_order_comment/static/description/assets/modules/2.jpg differ diff --git a/customer_order_comment/static/description/assets/modules/2.png b/customer_order_comment/static/description/assets/modules/2.png new file mode 100644 index 000000000..2c8fbb83f Binary files /dev/null and b/customer_order_comment/static/description/assets/modules/2.png differ diff --git a/customer_order_comment/static/description/assets/modules/3.png b/customer_order_comment/static/description/assets/modules/3.png new file mode 100644 index 000000000..25ed3e0b6 Binary files /dev/null and b/customer_order_comment/static/description/assets/modules/3.png differ diff --git a/customer_order_comment/static/description/assets/modules/4.png b/customer_order_comment/static/description/assets/modules/4.png new file mode 100644 index 000000000..bc5648b1a Binary files /dev/null and b/customer_order_comment/static/description/assets/modules/4.png differ diff --git a/customer_order_comment/static/description/assets/modules/5.png b/customer_order_comment/static/description/assets/modules/5.png new file mode 100644 index 000000000..7cc3625c7 Binary files /dev/null and b/customer_order_comment/static/description/assets/modules/5.png differ diff --git a/customer_order_comment/static/description/assets/modules/6.png b/customer_order_comment/static/description/assets/modules/6.png new file mode 100644 index 000000000..745d6db78 Binary files /dev/null and b/customer_order_comment/static/description/assets/modules/6.png differ diff --git a/customer_order_comment/static/description/assets/modules/banner.jpg b/customer_order_comment/static/description/assets/modules/banner.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/customer_order_comment/static/description/assets/modules/banner.jpg differ diff --git a/customer_order_comment/static/description/assets/screenshots/1.png b/customer_order_comment/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..9b01d2ac6 Binary files /dev/null and b/customer_order_comment/static/description/assets/screenshots/1.png differ diff --git a/customer_order_comment/static/description/assets/screenshots/2.png b/customer_order_comment/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..82891a8d8 Binary files /dev/null and b/customer_order_comment/static/description/assets/screenshots/2.png differ diff --git a/customer_order_comment/static/description/assets/screenshots/3.png b/customer_order_comment/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..b8cde0b45 Binary files /dev/null and b/customer_order_comment/static/description/assets/screenshots/3.png differ diff --git a/customer_order_comment/static/description/assets/screenshots/4.png b/customer_order_comment/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..61662f181 Binary files /dev/null and b/customer_order_comment/static/description/assets/screenshots/4.png differ diff --git a/customer_order_comment/static/description/assets/screenshots/hero.gif b/customer_order_comment/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..237bd8fdf Binary files /dev/null and b/customer_order_comment/static/description/assets/screenshots/hero.gif differ diff --git a/customer_order_comment/static/description/assets/screenshots/img1.png b/customer_order_comment/static/description/assets/screenshots/img1.png new file mode 100644 index 000000000..4bd6b2021 Binary files /dev/null and b/customer_order_comment/static/description/assets/screenshots/img1.png differ diff --git a/customer_order_comment/static/description/banner.jpg b/customer_order_comment/static/description/banner.jpg new file mode 100644 index 000000000..573054ab0 Binary files /dev/null and b/customer_order_comment/static/description/banner.jpg differ diff --git a/customer_order_comment/static/description/icon.png b/customer_order_comment/static/description/icon.png new file mode 100644 index 000000000..c48c350e4 Binary files /dev/null and b/customer_order_comment/static/description/icon.png differ diff --git a/customer_order_comment/static/description/index.html b/customer_order_comment/static/description/index.html new file mode 100644 index 000000000..8b79863d3 --- /dev/null +++ b/customer_order_comment/static/description/index.html @@ -0,0 +1,734 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Customer Order Comment

+

+ Know your customer's comments and ratings, and view them on + the sale order. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ The Customers can add comments in the order + confirmation page.

+
+
+
+
+
+
+ +
+
+

+ Review customer comment in the sale order form + view.

+
+
+
+
+
+
+ +
+
+

+ Enable/ disable the feature from backend..

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

+ Setting to enable/ disable from + backend

+

+ Navigate to Website → Configuration → Settings → Customer Order Comment, and use the + "Enable Customer Comment" option to allow or restrict customers from adding comments + and ratings on their orders.

+
+
+
+
+
+
+ +
+
+

+ Add your product to cart

+

+ Add product to the cart and proceed to checkout.

+ +
+
+
+
+
+
+ +
+
+

+ Customers can add comments and ratings on the order confirmation page.

+
+
+
+
+
+
+ +
+
+

+ Review customer comment in the form view of + sale order.

+

+ The comment and rating will get displayed in + "Customer Order Comment" tab in the Form + View of the corresponding Sale Order.

+ +
+
+
+
+
+
+
    +
  • + Check Lists are + Assigned per each Opportunity Stage. +
  • +
  • + The App Lets + Assign Security Groups for Each Check List + Point. +
  • +
  • + To Move a CRM + Lead Forward in your Funnel, Its Checklist + should be fully Confirmed. +
  • +
  • + Check List + Actions are Saved in History. +
  • +
+
+
+
+
+
+
Version + 18.0.1.0.0|Released on:19th Jul 2025 +
+

+ + Initial Commit for Customer Order Comment.

+
+
+
+
+
+
+
+

+ 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/customer_order_comment/static/src/css/review_and_rating.css b/customer_order_comment/static/src/css/review_and_rating.css new file mode 100644 index 000000000..0127c603e --- /dev/null +++ b/customer_order_comment/static/src/css/review_and_rating.css @@ -0,0 +1,381 @@ +@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700); +* { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +body { + color: #545454; + font-family: "Open Sans", sans-serif; +} + +.wrapper { + margin: 0 auto; + max-width: 960px; + width: 100%; +} + +.master { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-pack: start; + -ms-flex-pack: start; + justify-content: flex-start; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + padding-top: 40px; +} + +h1 { + font-size: 20px; + margin-bottom: 20px; + text-align: center; +} + +h2 { + line-height: 160%; + margin-bottom: 20px; + text-align: center; +} + +.rating-component { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + margin-bottom: 10px; +} + +.rating-component .status-msg { + margin-bottom: 10px; + text-align: center; +} + +.rating-component .status-msg strong { + display: block; + font-weight: bold; + margin-bottom: 10px; +} + +.rating-component .stars-box { + -ms-flex-item-align: center; + align-self: center; + margin-bottom: 15px; +} + +.rating-component .stars-box .star { + color: #ccc; + cursor: pointer; +} + +.rating-component .stars-box .star.hover { + color: #ff5a49; +} + +.rating-component .stars-box .star.selected { + color: #ff5a49; +} + +.feedback-tags { + min-height: 119px; +} + +.feedback-tags .tags-container { + display: none; +} + +.feedback-tags .tags-container .question-tag { + text-align: center; + margin-bottom: 40px; +} + +.feedback-tags .tags-box { + display: -webkit-box; + display: -ms-flexbox; + text-align: center; + display: flex; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; + -ms-flex-wrap: wrap; + flex-wrap: wrap; +} + +.feedback-tags .tags-container .make-compliment { + padding-bottom: 20px; +} + +.feedback-tags .tags-container .make-compliment .compliment-container { + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + color: #000; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; +} + +.feedback-tags + .tags-container + .make-compliment + .compliment-container + .fa-smile-wink { + color: #ff5a49; + cursor: pointer; + font-size: 40px; + margin-top: 15px; + -webkit-animation-name: compliment; + animation-name: compliment; + -webkit-animation-duration: 2s; + animation-duration: 2s; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; +} + +.feedback-tags + .tags-container + .make-compliment + .compliment-container + .list-of-compliment { + display: none; + margin-top: 15px; +} + +.feedback-tags .tag { + border: 1px solid #ff5a49; + border-radius: 5px; + color: #ff5a49; + cursor: pointer; + margin-bottom: 10px; + margin-left: 10px; + padding: 10px; +} + +.feedback-tags .tag.chosen { + background-color: #ff5a49; + color: #fff; +} + +.list-of-compliment ul { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; +} + +.list-of-compliment ul li { + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + cursor: pointer; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + margin-bottom: 10px; + margin-left: 20px; + min-width: 90px; +} + +.list-of-compliment ul li:first-child { + margin-left: 0; +} + +.list-of-compliment ul li .icon-compliment { + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 2px solid #ff5a49; + border-radius: 50%; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + height: 70px; + margin-bottom: 15px; + overflow: hidden; + padding: 0 10px; + -webkit-transition: 0.5s; + transition: 0.5s; + width: 70px; +} + +.list-of-compliment ul li .icon-compliment i { + color: #ff5a49; + font-size: 30px; + -webkit-transition: 0.5s; + transition: 0.5s; +} + +.list-of-compliment ul li.actived .icon-compliment { + background-color: #ff5a49; + -webkit-transition: 0.5s; + transition: 0.5s; +} + +.list-of-compliment ul li.actived .icon-compliment i { + color: #fff; + -webkit-transition: 0.5s; + transition: 0.5s; +} + +.button-box .done { + background-color: #ff5a49; + border: 1px solid #ff5a49; + border-radius: 3px; + color: #fff; + cursor: pointer; + display: none; + min-width: 100px; + padding: 10px; +} + +.button-box .done:disabled, +.button-box .done[disabled] { + border: 1px solid #ff9b95; + background-color: #ff9b95; + color: #fff; + cursor: initial; +} + +.submitted-box { + display: none; + padding: 20px; +} + +.submitted-box .loader, +.submitted-box .success-message { + display: none; +} + +.submitted-box .loader { + border: 5px solid transparent; + border-top: 5px solid #4dc7b7; + border-bottom: 5px solid #ff5a49; + border-radius: 50%; + width: 60px; + height: 60px; + -webkit-animation: spin 0.8s linear infinite; + animation: spin 0.8s linear infinite; +} + +@-webkit-keyframes compliment { + 1% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + + 25% { + -webkit-transform: rotate(-30deg); + transform: rotate(-30deg); + } + + 50% { + -webkit-transform: rotate(30deg); + transform: rotate(30deg); + } + + 75% { + -webkit-transform: rotate(-30deg); + transform: rotate(-30deg); + } + + 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} + +@keyframes compliment { + 1% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + + 25% { + -webkit-transform: rotate(-30deg); + transform: rotate(-30deg); + } + + 50% { + -webkit-transform: rotate(30deg); + transform: rotate(30deg); + } + + 75% { + -webkit-transform: rotate(-30deg); + transform: rotate(-30deg); + } + + 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} + +@-webkit-keyframes spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} diff --git a/customer_order_comment/static/src/js/review_and_rating.js b/customer_order_comment/static/src/js/review_and_rating.js new file mode 100644 index 000000000..93df9f3fa --- /dev/null +++ b/customer_order_comment/static/src/js/review_and_rating.js @@ -0,0 +1,109 @@ +/** @odoo-module **/ +import publicWidget from "@web/legacy/js/public/public_widget"; + +publicWidget.registry.CustomerReviewProduct = publicWidget.Widget.extend({ + selector: '.master', + events: { + 'mouseover .rating-component .star': '_ReviewHover', + 'mouseout .rating-component .star': '_ReviewOut', + 'click .rating-component .stars-box .star': '_SubmitReview', + 'click .compliment-container .fa-smile-wink': '_SubmitCompliment', + 'click .feedback-tags': '_SubmitFeedBack', + }, + + _ReviewHover: function (ev) { + const onStar = parseInt(ev.target.dataset.value, 10); + const stars = this.el.querySelectorAll(".stars-box .star"); + + stars.forEach((star, index) => { + if (index < onStar) { + star.classList.add("hover"); + } + }); + }, + + _ReviewOut: function () { + const stars = this.el.querySelectorAll(".stars-box .star"); + + stars.forEach(star => { + star.classList.remove("hover"); + }); + }, + + _SubmitReview: function (ev) { + const onStar = parseInt(ev.target.dataset.value, 10); + const stars = ev.target.closest('.stars-box').children; + const ratingMessage = ev.target.dataset.message; + + const orderIdElement = document.getElementById('order_id'); + if (orderIdElement) { + orderIdElement.value = document.querySelector('.monetary_field')?.dataset.oeId || ''; + } + + const rateValueElement = document.querySelector('.rating-component .star-rate .rate-value'); + if (rateValueElement) { + rateValueElement.value = onStar; + } + + document.querySelectorAll(".fa-smile-wink, .button-box .done").forEach(el => el.style.display = "block"); + + const doneButton = document.querySelector(".button-box .done"); + if (doneButton) { + doneButton.disabled = onStar !== 5; + } + + Array.from(stars).forEach((star, index) => { + if (index < onStar) { + star.classList.add("selected"); + } else { + star.classList.remove("selected"); + } + }); + + const statusMsg = document.querySelector(".status-msg"); + if (statusMsg) { + const ratingMsgElement = statusMsg.querySelector(".rating_msg"); + if (ratingMsgElement) { + ratingMsgElement.value = ratingMessage; + } + statusMsg.innerHTML = ratingMessage; + } + + document.querySelectorAll("[data-tag-set]").forEach(el => el.style.display = "none"); + const tagSet = document.querySelector(`[data-tag-set="${onStar}"]`); + if (tagSet) { + tagSet.style.display = "block"; + } + }, + + _SubmitCompliment: function () { + this.el.style.display = "none"; + const complimentList = document.querySelector(".list-of-compliment"); + if (complimentList) { + complimentList.style.display = "block"; + } + }, + + _SubmitFeedBack: function (ev) { + const tagsBox = ev.target.closest("div.tags-box"); + if (!tagsBox) return; + + let chosenTags = tagsBox.querySelectorAll("input").length + 1; + + if (ev.target.classList.contains("chosen")) { + ev.target.classList.remove("chosen"); + chosenTags -= 2; // Subtract 2 since we are toggling the class + } else { + ev.target.classList.add("chosen"); + const doneButton = document.querySelector(".button-box .done"); + if (doneButton) { + doneButton.removeAttribute("disabled"); + } + } + + const doneButton = document.querySelector(".button-box .done"); + if (doneButton) { + doneButton.disabled = chosenTags <= 0; + } + }, +}); diff --git a/customer_order_comment/views/customer_order_comment_templates.xml b/customer_order_comment/views/customer_order_comment_templates.xml new file mode 100644 index 000000000..e02c0dc6b --- /dev/null +++ b/customer_order_comment/views/customer_order_comment_templates.xml @@ -0,0 +1,118 @@ + + + + + diff --git a/customer_order_comment/views/res_config_settings_views.xml b/customer_order_comment/views/res_config_settings_views.xml new file mode 100644 index 000000000..1709f79f4 --- /dev/null +++ b/customer_order_comment/views/res_config_settings_views.xml @@ -0,0 +1,28 @@ + + + + + res.config.settings.view.form.inherit.customer.order.comment + res.config.settings + + + + +

Customer Order Comment

+
+
+
+ +
+
+
+
+
+
+
+
+
diff --git a/customer_order_comment/views/sale_order_views.xml b/customer_order_comment/views/sale_order_views.xml new file mode 100644 index 000000000..bd9434ae9 --- /dev/null +++ b/customer_order_comment/views/sale_order_views.xml @@ -0,0 +1,21 @@ + + + + + sale.order.form.inherit.customer.order.comment + sale.order + + + + + + + + + + + + + + +