Browse Source

Apr 26 : [ADD] Initial Commit 'customer_order_comment'

dependabot/npm_and_yarn/odoo_website_helpdesk/static/src/cdn/minimist-1.2.8
Sayooj 2 years ago
parent
commit
ff80efd2ee
  1. 41
      customer_order_comment/README.rst
  2. 23
      customer_order_comment/__init__.py
  3. 54
      customer_order_comment/__manifest__.py
  4. 22
      customer_order_comment/controllers/__init__.py
  5. 39
      customer_order_comment/controllers/customer_order_comment.py
  6. 6
      customer_order_comment/doc/RELEASE_NOTES.md
  7. 23
      customer_order_comment/models/__init__.py
  8. 34
      customer_order_comment/models/res_config_settings.py
  9. 35
      customer_order_comment/models/sale_order.py
  10. BIN
      customer_order_comment/static/description/assets/icons/check.png
  11. BIN
      customer_order_comment/static/description/assets/icons/chevron.png
  12. BIN
      customer_order_comment/static/description/assets/icons/cogs.png
  13. BIN
      customer_order_comment/static/description/assets/icons/consultation.png
  14. BIN
      customer_order_comment/static/description/assets/icons/ecom-black.png
  15. BIN
      customer_order_comment/static/description/assets/icons/education-black.png
  16. BIN
      customer_order_comment/static/description/assets/icons/hotel-black.png
  17. BIN
      customer_order_comment/static/description/assets/icons/license.png
  18. BIN
      customer_order_comment/static/description/assets/icons/lifebuoy.png
  19. BIN
      customer_order_comment/static/description/assets/icons/manufacturing-black.png
  20. BIN
      customer_order_comment/static/description/assets/icons/pos-black.png
  21. BIN
      customer_order_comment/static/description/assets/icons/puzzle.png
  22. BIN
      customer_order_comment/static/description/assets/icons/restaurant-black.png
  23. BIN
      customer_order_comment/static/description/assets/icons/service-black.png
  24. BIN
      customer_order_comment/static/description/assets/icons/trading-black.png
  25. BIN
      customer_order_comment/static/description/assets/icons/training.png
  26. BIN
      customer_order_comment/static/description/assets/icons/update.png
  27. BIN
      customer_order_comment/static/description/assets/icons/user.png
  28. BIN
      customer_order_comment/static/description/assets/icons/wrench.png
  29. BIN
      customer_order_comment/static/description/assets/misc/categories.png
  30. BIN
      customer_order_comment/static/description/assets/misc/check-box.png
  31. BIN
      customer_order_comment/static/description/assets/misc/compass.png
  32. BIN
      customer_order_comment/static/description/assets/misc/corporate.png
  33. BIN
      customer_order_comment/static/description/assets/misc/customer-support.png
  34. BIN
      customer_order_comment/static/description/assets/misc/cybrosys-logo.png
  35. BIN
      customer_order_comment/static/description/assets/misc/features.png
  36. BIN
      customer_order_comment/static/description/assets/misc/logo.png
  37. BIN
      customer_order_comment/static/description/assets/misc/pictures.png
  38. BIN
      customer_order_comment/static/description/assets/misc/pie-chart.png
  39. BIN
      customer_order_comment/static/description/assets/misc/right-arrow.png
  40. BIN
      customer_order_comment/static/description/assets/misc/star.png
  41. BIN
      customer_order_comment/static/description/assets/misc/support.png
  42. BIN
      customer_order_comment/static/description/assets/misc/whatsapp.png
  43. BIN
      customer_order_comment/static/description/assets/modules/1.png
  44. BIN
      customer_order_comment/static/description/assets/modules/2.png
  45. BIN
      customer_order_comment/static/description/assets/modules/3.png
  46. BIN
      customer_order_comment/static/description/assets/modules/4.png
  47. BIN
      customer_order_comment/static/description/assets/modules/5.png
  48. BIN
      customer_order_comment/static/description/assets/modules/6.png
  49. BIN
      customer_order_comment/static/description/assets/screenshots/1.png
  50. BIN
      customer_order_comment/static/description/assets/screenshots/2.png
  51. BIN
      customer_order_comment/static/description/assets/screenshots/3.png
  52. BIN
      customer_order_comment/static/description/assets/screenshots/4.png
  53. BIN
      customer_order_comment/static/description/assets/screenshots/5.png
  54. BIN
      customer_order_comment/static/description/assets/screenshots/6.png
  55. BIN
      customer_order_comment/static/description/assets/screenshots/hero.gif
  56. BIN
      customer_order_comment/static/description/banner.png
  57. BIN
      customer_order_comment/static/description/icon.png
  58. 538
      customer_order_comment/static/description/index.html
  59. 380
      customer_order_comment/static/src/css/review_and_rating.css
  60. 83
      customer_order_comment/static/src/js/review_and_rating.js
  61. 93
      customer_order_comment/views/customer_order_comment_templates.xml
  62. 30
      customer_order_comment/views/res_config_settings_views.xml
  63. 23
      customer_order_comment/views/sale_order_views.xml

41
customer_order_comment/README.rst

@ -0,0 +1,41 @@
.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg
:target: http://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 <https://cybrosys.com/>`__
Credits
-------
* Developers: version 16: Athira Premanand @cybrosys, 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 <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

23
customer_order_comment/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Technologies (<https://www.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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import models
from . import controllers

54
customer_order_comment/__manifest__.py

@ -0,0 +1,54 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Technologies (<https://www.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 <http://www.gnu.org/licenses/>.
#
###############################################################################
{
'name': 'Customer Order Comment',
'version': '16.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': ['base', 'sale', 'website', '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.png'],
'license': 'LGPL-3',
'installable': True,
'auto_install': False,
'application': False
}

22
customer_order_comment/controllers/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Technologies (<https://www.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 <http://www.gnu.org/licenses/>.
#
###############################################################################
from . import customer_order_comment

39
customer_order_comment/controllers/customer_order_comment.py

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Technologies (<https://www.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 <http://www.gnu.org/licenses/>.
#
###############################################################################
""""
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')

6
customer_order_comment/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <customer_order_comment>
#### 26.04.2023
#### Version 16.0.1.0.0
#### ADD
Initial Commit for Customer Order Comment

23
customer_order_comment/models/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Technologies (<https://www.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 <http://www.gnu.org/licenses/>.
#
###############################################################################
from . import sale_order
from . import res_config_settings

34
customer_order_comment/models/res_config_settings.py

@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Technologies (<https://www.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 <http://www.gnu.org/licenses/>.
#
###############################################################################
""" 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.')

35
customer_order_comment/models/sale_order.py

@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Technologies (<https://www.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 <http://www.gnu.org/licenses/>.
#
###############################################################################
""" 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([
('1', 'Poor'), ('2', 'Too Bad'), ('3', 'Average Quality'),
('4', 'Nice'), ('5', 'Good')], string='Rating', readonly=True,
help='The rating provided by the customer.')

BIN
customer_order_comment/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
customer_order_comment/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
customer_order_comment/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
customer_order_comment/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
customer_order_comment/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
customer_order_comment/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
customer_order_comment/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
customer_order_comment/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
customer_order_comment/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
customer_order_comment/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
customer_order_comment/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
customer_order_comment/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
customer_order_comment/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
customer_order_comment/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
customer_order_comment/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
customer_order_comment/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
customer_order_comment/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
customer_order_comment/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
customer_order_comment/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
customer_order_comment/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
customer_order_comment/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
customer_order_comment/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
customer_order_comment/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
customer_order_comment/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
customer_order_comment/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
customer_order_comment/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
customer_order_comment/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
customer_order_comment/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
customer_order_comment/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
customer_order_comment/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
customer_order_comment/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
customer_order_comment/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
customer_order_comment/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
customer_order_comment/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
customer_order_comment/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
customer_order_comment/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
customer_order_comment/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
customer_order_comment/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
customer_order_comment/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
customer_order_comment/static/description/assets/screenshots/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

BIN
customer_order_comment/static/description/assets/screenshots/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

BIN
customer_order_comment/static/description/assets/screenshots/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

BIN
customer_order_comment/static/description/assets/screenshots/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
customer_order_comment/static/description/assets/screenshots/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
customer_order_comment/static/description/assets/screenshots/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

BIN
customer_order_comment/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

BIN
customer_order_comment/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
customer_order_comment/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

538
customer_order_comment/static/description/index.html

@ -0,0 +1,538 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42" style="width: 42px; height: 42px;"/>
<div>
<div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">Customer Order Comment</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Know your customer's comments and ratings, and view them on the sale order.
</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif" class="img-responsive" style="width: 100%; margin-left: auto; margin-right: auto;"/>
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2" style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png"/>
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Explore This Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn more about this module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center" style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View features of this module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center" style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View screenshots for this module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview">
<div class="d-flex justify-content-center align-items-center mr-2" style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Overview</h2>
</div>
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
Can your customer comment on their order while placing an order? It is imperative to know what
customers think about your products, or they can also comment to improve their shopping experience
or on your Odoo website!
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features">
<div class="d-flex justify-content-center align-items-center mr-2" style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png"/>
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Features</h2>
</div>
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center" style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">The Customers can add comments in the order confirmation page.</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Review customer comment in the sale order form view.</span>
</div>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Enable/ disable the feature from backend.</span>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Setting to enable/ disable from backend
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">You can enable/ disable customer order comment feature from backend. Navigate to
Website/ Configuration/ Settings/ Customer Order Comment and use the enable or disable
the feature using the setting Comment Configuration.</p>
<img src="assets/screenshots/1.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> Add your product to cart</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p>
<img src="assets/screenshots/2.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Do process checkout.</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p>
<img src="assets/screenshots/3.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Do payment.</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p>
<img src="assets/screenshots/4.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Customer can add comment in the order confirmation page.</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p>
<img src="assets/screenshots/5.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Review customer comment in the form view of sale order.</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">The comment and rating will get displayed in "Customer Order Comment" tab in the Form View
of the corresponding Sale Order.</p>
<img src="assets/screenshots/6.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png"/>
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding: 30px;">
<div class="carousel-item" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/website_product_attachments/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;"
src="assets/modules/1.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/customer_geolocation/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;"
src="assets/modules/2.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/website_cart_clear/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;"
src="assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/ecommerce_barcode_search/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;"
src="assets/modules/4.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/website_return_management/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;"
src="assets/modules/5.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/product_visibility_website/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;"
src="assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev" style="width:35px; color:#000"> <span
class="carousel-control-prev-icon"><i class="fa fa-chevron-left" style="font-size:24px"></i></span>
</a> <a class="carousel-control-next" href="#demo1" data-slide="next" style="width:35px; color:#000">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right" style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/star.png"/>
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</div>
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/corporate.png"/>
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/education-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/service-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</div>
<!-- END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png"/>
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48" style="width: 42px; height: 42px;"/>
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help? Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52" style="width: 52px; height: 52px;"/>
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31"
style="width:144px; height: 31px; margin-top: 40px;"/>
</div>
</div>
</div>
<!-- END OF SUPPORT -->

380
customer_order_comment/static/src/css/review_and_rating.css

@ -0,0 +1,380 @@
@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;
}
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);
}
}

83
customer_order_comment/static/src/js/review_and_rating.js

@ -0,0 +1,83 @@
odoo.define('customer_order_comment.review_and_rating', function(require){
'use strict';
/**
* The methods defined here are used for adding the comments and rating at
* the time of confirmation of orders and different styles were applied at
* the time of occurrence of some events like button click, mouseout etc.
*/
$(".rating-component .star").on("mouseover", function () {
var onStar = parseInt($(this).data("value"), 10);
$(this).parent().children("i.star").each(function (e) {
if (e < onStar) {
$(this).addClass("hover");
} else {
$(this).removeClass("hover");
}
});
}).on("mouseout", function () {
$(this).parent().children("i.star").each(function (e) {
$(this).removeClass("hover");
});
});
$(".rating-component .stars-box .star").on("click", function () {
var onStar = parseInt($(this).data("value"), 10);
var stars = $(this).parent().children("i.star");
var ratingMessage = $(this).data("message");
$('#order_id').val($('.monetary_field').data('oe-id'))
var msg = onStar;
$('.rating-component .star-rate .rate-value').val(msg);
$(".fa-smile-wink").show();
$(".button-box .done").show();
if (onStar === 5) {
$(".button-box .done").removeAttr("disabled");
} else {
$(".button-box .done").attr("disabled", "true");
}
for (var i = 0; i < stars.length; i++) {
$(stars[i]).removeClass("selected");
}
for (var i = 0; i < onStar; i++) {
$(stars[i]).addClass("selected");
}
$(".status-msg .rating_msg").val(ratingMessage);
$(".status-msg").html(ratingMessage);
$("[data-tag-set]").hide();
$("[data-tag-set=" + onStar + "]").show();
});
$(".feedback-tags ").on("click", function () {
var chosenTagsLength = $(this).parent("div.tags-box").find("input").length + 1;
if ($(this).hasClass("chosen")) {
$(this).removeClass("chosen");
chosenTagsLength = chosenTagsLength - 2;
} else {
$(this).addClass("chosen");
$(".button-box .done").removeAttr("disabled");
}
if (chosenTagsLength <= 0) {
$(".button-box .done").attr("enabled", "false");
}
});
$(".compliment-container .fa-smile-wink").on("click", function () {
$(this).fadeOut("slow", function () {
$(".list-of-compliment").fadeIn();
});
});
$(".done").on("click", function () {
$(".rating-component").hide();
$(".feedback-tags").hide();
$(".button-box").hide();
$(".submitted-box").show();
$(".submitted-box .loader").show();
setTimeout(function () {
$(".submitted-box .loader").hide();
$(".submitted-box .success-message").show();
}, 1500);
});
});

93
customer_order_comment/views/customer_order_comment_templates.xml

@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Template for adding review and rating for the products -->
<template id="customer_orders_comments" inherit_id="website_sale.confirmation"
name="Customer Comment">
<xpath expr="//div[hasclass('container')]"
position="after">
<t t-set="data" t-value="request.env['ir.config_parameter'].sudo().get_param('customer_order_comment.comment_configuration')"/>
<t t-if="data">
<div class="wrapper" style="border: 1px solid rgba(0, 0, 0, 0.125);">
<div class="master">
<form action="/final/customer_rating">
<h1>Review and Rating</h1>
<h2>How was your experience about our product?</h2>
<div class="rating-component">
<div class="status-msg">
<label>
<input class="rating_msg" type="hidden" name="rating_msg" value=""/>
</label>
</div>
<div class="stars-box">
<i class="star fa fa-star" title="1 star" data-message="Poor"
data-value="1"/>
<i class="star fa fa-star" title="2 stars" data-message="Too bad"
data-value="2"/>
<i class="star fa fa-star" title="3 stars" data-message="Average quality"
data-value="3"/>
<i class="star fa fa-star" title="4 stars" data-message="Nice"
data-value="4"/>
<i class="star fa fa-star" title="5 stars" data-message="Very good quality"
data-value="5"/>
</div>
<div class="star-rate">
<label>
<input class="rate-value" type="hidden" name="rate_value" value=""/>
</label>
</div>
</div>
<div class="feedback-tags">
<div class="tags-container" data-tag-set="1">
<div class="question-tag">
Why was your experience so bad?
</div>
</div>
<div class="tags-container" data-tag-set="2">
<div class="question-tag">
Why was your experience so bad?
</div>
</div>
<div class="tags-container" data-tag-set="3">
<div class="question-tag">
Why was your average rating experience?
</div>
</div>
<div class="tags-container" data-tag-set="4">
<div class="question-tag">
Why was your experience good?
</div>
</div>
<div class="tags-container" data-tag-set="5">
<div class="make-compliment">
<div class="compliment-container">
Give a compliment
<i class="far fa-smile-wink"/>
</div>
</div>
</div>
<div class="tags-box">
<input type="text" class="tag form-control" name="comment"
id="inlineFormInputName"
placeholder="please enter your review"/>
<input type="hidden" name="order_id" value="" id="order_id"/>
</div>
</div>
<div class="button-box">
<input type="submit" class=" done btn btn-warning" disabled="disabled"
value="Add review"/>
</div>
<div class="submitted-box">
<div class="loader"/>
<div class="success-message">
Thank you!
</div>
</div>
</form>
</div>
</div>
</t>
</xpath>
</template>
</odoo>

30
customer_order_comment/views/res_config_settings_views.xml

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherits Settings form view to add new toggle setting for the feature -->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.customer.order.comment</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="20"/>
<field name="inherit_id" ref="website.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='website_settings']" position="after">
<h2>Customer Order Comment</h2>
<div class="row mt16 o_settings_container">
<div class="col-12 col-lg-6 o_setting_box" id="comment_configuration">
<div class="o_setting_left_pane">
<field name="comment_configuration"/>
</div>
<div class="o_setting_right_pane">
<label for="comment_configuration"/>
<div class="text-muted">
Do you want to disable customer order comment feature?
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>

23
customer_order_comment/views/sale_order_views.xml

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherits Sale Order form view to add the new fields -->
<record id="sale_order_view_form" model="ir.ui.view">
<field name="name">sale.order.form.inherit.customer.order.comment</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook/page[@name='other_information']" position="after">
<page string="Customer Order Comment" name="customer_comment" >
<group>
<field name="comment" string="Comment" widget="text"/>
</group>
<group>
<field name="rating" string="Rating" widget="priority"/>
</group>
</page>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save