Browse Source

July 20: [ADD] Initial commit 'odoo_website_helpdesk_dashboard'

pull/331/head
RisvanaCybro 9 months ago
parent
commit
f6fd878e43
  1. 60
      odoo_website_helpdesk_dashboard/README.rst
  2. 23
      odoo_website_helpdesk_dashboard/__init__.py
  3. 51
      odoo_website_helpdesk_dashboard/__manifest__.py
  4. 22
      odoo_website_helpdesk_dashboard/controllers/__init__.py
  5. 41
      odoo_website_helpdesk_dashboard/controllers/odoo_website_helpdesk_dashboard.py
  6. 7
      odoo_website_helpdesk_dashboard/doc/RELEASE_NOTES.md
  7. 22
      odoo_website_helpdesk_dashboard/models/__init__.py
  8. 194
      odoo_website_helpdesk_dashboard/models/helpdesk_dashboard.py
  9. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/check.png
  10. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/chevron.png
  11. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/cogs.png
  12. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/consultation.png
  13. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/ecom-black.png
  14. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/education-black.png
  15. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/hotel-black.png
  16. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/license.png
  17. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/lifebuoy.png
  18. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/manufacturing-black.png
  19. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/pos-black.png
  20. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/puzzle.png
  21. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/restaurant-black.png
  22. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/service-black.png
  23. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/trading-black.png
  24. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/training.png
  25. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/update.png
  26. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/user.png
  27. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/icons/wrench.png
  28. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/categories.png
  29. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/check-box.png
  30. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/compass.png
  31. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/corporate.png
  32. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/customer-support.png
  33. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/cybrosys-logo.png
  34. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/features.png
  35. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/logo.png
  36. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/pictures.png
  37. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/pie-chart.png
  38. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/right-arrow.png
  39. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/star.png
  40. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/support.png
  41. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/misc/whatsapp.png
  42. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/modules/1.jpg
  43. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/modules/2.jpg
  44. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/modules/3.jpg
  45. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/modules/4.jpg
  46. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/modules/5.jpg
  47. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/modules/6.jpg
  48. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/screenshots/1.png
  49. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/screenshots/2.png
  50. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/screenshots/3.png
  51. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/screenshots/4.png
  52. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/screenshots/5.png
  53. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/screenshots/6.png
  54. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/screenshots/7.png
  55. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/screenshots/8.png
  56. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/screenshots/9.png
  57. BIN
      odoo_website_helpdesk_dashboard/static/description/assets/screenshots/hero.gif
  58. BIN
      odoo_website_helpdesk_dashboard/static/description/banner.jpg
  59. BIN
      odoo_website_helpdesk_dashboard/static/description/icon.png
  60. 797
      odoo_website_helpdesk_dashboard/static/description/index.html
  61. 267
      odoo_website_helpdesk_dashboard/static/src/css/dashboard.css
  62. 290
      odoo_website_helpdesk_dashboard/static/src/js/dashboard_view.js
  63. 19288
      odoo_website_helpdesk_dashboard/static/src/js/lib/Chart.bundle.js
  64. 7828
      odoo_website_helpdesk_dashboard/static/src/js/lib/d3.min.js
  65. 224
      odoo_website_helpdesk_dashboard/static/src/xml/dashboard_view.xml
  66. 47
      odoo_website_helpdesk_dashboard/views/dashboard_templates.xml
  67. 13
      odoo_website_helpdesk_dashboard/views/menu_item.xml

60
odoo_website_helpdesk_dashboard/README.rst

@ -0,0 +1,60 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Website HelpDesk Dashboard
==========================
Website HelpDesk Dashboard Module Brings a Multipurpose Graphical Dashboard
for Website HelpDesk module
Depends
=======
[odoo_website_helpdesk] Custom addon by Cybrosys.
Tech
====
* [Python] - Models
* [XML] - Odoo views
Installation
============
- www.odoo.com/documentation/17.0/setup/install.html
- Install our custom addon
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
=======
General Public License, Version 3 (LGPL-3 v3).
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html)
Credits
=======
Developers: (V16) Robin K ,
(V17) Fathima Mazlin AM,
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
odoo_website_helpdesk_dashboard/__init__.py

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

51
odoo_website_helpdesk_dashboard/__manifest__.py

@ -0,0 +1,51 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<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': "Website HelpDesk Dashboard",
'version': '17.0.1.0.0',
'category': 'Website',
'summary': """Helpdesk Support Ticket Management Dashboard""",
'description': """Website HelpDesk Dashboard Module Brings a Multipurpose"""
"""Graphical Dashboard for Website HelpDesk module""",
'author': "Cybrosys Techno Solutions",
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.openhrms.com",
'depends': ['odoo_website_helpdesk', 'base'],
'data': [
'views/menu_item.xml',
'views/dashboard_templates.xml',
],
'assets': {
'web.assets_backend': [
'odoo_website_helpdesk_dashboard/static/src/css/dashboard.css',
'odoo_website_helpdesk_dashboard/static/src/js/lib/Chart.bundle.js',
'odoo_website_helpdesk_dashboard/static/src/xml/dashboard_view.xml',
'odoo_website_helpdesk_dashboard/static/src/js/dashboard_view.js'
],
},
'images': ['static/description/banner.png'],
'license': 'LGPL-3',
'auto_install': False,
'installable': True,
'application': False,
}

22
odoo_website_helpdesk_dashboard/controllers/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<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 odoo_website_helpdesk_dashboard

41
odoo_website_helpdesk_dashboard/controllers/odoo_website_helpdesk_dashboard.py

@ -0,0 +1,41 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<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 odoo import http
from odoo.http import request
class HelpDeskTickets(http.Controller):
@http.route(['/help/tickets'], type="json", auth="user")
def elearning_snippet(self):
tickets = []
help_tickets = request.env['ticket.helpdesk'].sudo().search(
[('stage_id.name', '=', 'Inbox')])
for i in help_tickets:
tickets.append(
{'name': i.name, 'subject': i.subject, 'id': i.id})
values = {
'h_tickets': tickets
}
response = http.Response(
template='odoo_website_helpdesk_dashboard.dashboard_tickets',
qcontext=values)
return response.render()

7
odoo_website_helpdesk_dashboard/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <odoo_website_helpdesk_dashboard>
#### 20.04.2024
#### Version 17.0.1.0.0
#### ADD
- Initial commit for Website HelpDesk Dashboard

22
odoo_website_helpdesk_dashboard/models/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<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 helpdesk_dashboard

194
odoo_website_helpdesk_dashboard/models/helpdesk_dashboard.py

@ -0,0 +1,194 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<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/>.
#
#############################################################################
import calendar
from odoo import api, models
class TicketHelpdesk(models.Model):
""" Inherited class to get help desk ticket details...."""
_inherit = 'ticket.helpdesk'
@api.model
def check_user_group(self):
"""Checking user group"""
user = self.env.user
if user.has_group('base.group_user'):
return True
return False
@api.model
def get_tickets_count(self):
""" Function To Get The Ticket Count"""
ticket_details = self.env['ticket.helpdesk'].search([])
ticket_data = []
for ticket in ticket_details:
ticket_data.append({
'ticket_name': ticket.name,
'customer_name': ticket.customer_id.name,
'subject': ticket.subject,
'priority': ticket.priority,
'assigned_to': ticket.assigned_user_id.name,
'assigned_image': ticket.assigned_user_id.image_1920,
})
tickets_new_count = self.env['ticket.helpdesk'].search_count(
[('stage_id.name', 'in', ['Inbox', 'Draft'])])
tickets_in_progress_count = self.env['ticket.helpdesk'].search_count(
[('stage_id.name', '=', 'In Progress')])
tickets_closed_count = self.env['ticket.helpdesk'].search_count(
[('stage_id.name', '=', 'Done')])
very_low_count = self.env['ticket.helpdesk'].search_count([
('priority', '=', '0')])
very_low_count1 = very_low_count * 10
low_count = self.env['ticket.helpdesk'].search_count([
('priority', '=', '1')])
low_count1 = low_count * 10
normal_count = self.env['ticket.helpdesk'].search_count([
('priority', '=', '2')])
normal_count1 = normal_count * 10
high_count = self.env['ticket.helpdesk'].search_count([
('priority', '=', '3')])
high_count1 = high_count * 10
very_high_count = self.env['ticket.helpdesk'].search_count([
('priority', '=', '4')])
very_high_count1 = very_high_count * 10
response = self.env['ticket.helpdesk'].search_count([
('review', '!=', None)])
teams_count = self.env['team.helpdesk'].search_count([])
tickets = self.env['ticket.helpdesk'].search(
[('stage_id.name', 'in', ['Inbox', 'Draft'])])
p_tickets = []
for ticket in tickets:
p_tickets.append(ticket.name)
values = {
'inbox_count': tickets_new_count,
'progress_count': tickets_in_progress_count,
'done_count': tickets_closed_count,
'team_count': teams_count,
'p_tickets': p_tickets,
'very_low_count1': very_low_count1,
'low_count1': low_count1,
'normal_count1': normal_count1,
'high_count1': high_count1,
'very_high_count1': very_high_count1,
'response': response,
'ticket_details': ticket_data,
}
return values
@api.model
def get_tickets_view(self):
""" Function To Get The Ticket View"""
tickets_new_count = self.env['ticket.helpdesk'].search_count(
[('stage_id.name', 'in', ['Inbox', 'Draft'])])
tickets_in_progress_count = self.env['ticket.helpdesk'].search_count(
[('stage_id.name', '=', 'In Progress')])
tickets_closed_count = self.env['ticket.helpdesk'].search_count(
[('stage_id.name', '=', 'Done')])
teams_count = self.env['team.helpdesk'].search_count([])
tickets_new = self.env['ticket.helpdesk'].search(
[('stage_id.name', 'in', ['Inbox', 'Draft'])])
tickets_in_progress = self.env['ticket.helpdesk'].search(
[('stage_id.name', '=', 'In Progress')])
tickets_closed = self.env['ticket.helpdesk'].search(
[('stage_id.name', '=', 'Done')])
teams = self.env['team.helpdesk'].search([])
new_list = []
progress_list = []
done_list = []
teams_list = []
for new in tickets_new:
new_list.append(str(new.name) + ' : ' + str(new.subject))
for progress in tickets_in_progress:
progress_list.append(
str(progress.name) + ' : ' + str(progress.subject))
for done in tickets_closed:
done_list.append(str(done.name) + ' : ' + str(done.subject))
for team in teams:
teams_list.append(team.name)
tickets = self.env['ticket.helpdesk'].search(
[('stage_id.name', 'in', ['Inbox', 'Draft'])])
p_tickets = []
for ticket in tickets:
p_tickets.append(ticket.name)
values = {
'inbox_count': tickets_new_count,
'progress_count': tickets_in_progress_count,
'done_count': tickets_closed_count,
'team_count': teams_count,
'new_tkts': new_list,
'progress': progress_list,
'done': done_list,
'teams': teams_list,
'p_tickets': p_tickets
}
return values
@api.model
def get_ticket_month_pie(self):
"""For pie chart"""
month_count = []
month_value = []
tickets = self.env['ticket.helpdesk'].search([])
for rec in tickets:
month = rec.create_date.month
if month not in month_value:
month_value.append(month)
month_count.append(month)
month_val = []
for index in range(len(month_value)):
value = month_count.count(month_value[index])
month_name = calendar.month_name[month_value[index]]
month_val.append({'label': month_name, 'value': value})
name = []
for record in month_val:
name.append(record.get('label'))
count = []
for record in month_val:
count.append(record.get('value'))
month = [count, name]
return month
@api.model
def get_team_ticket_count_pie(self):
"""For bar chart"""
ticket_count = []
team_list = []
tickets = self.env['ticket.helpdesk'].search([])
for rec in tickets:
if rec.team_id:
team = rec.team_id.name
if team not in team_list:
team_list.append(team)
ticket_count.append(team)
team_val = []
for index in range(len(team_list)):
value = ticket_count.count(team_list[index])
team_name = team_list[index]
team_val.append({'label': team_name, 'value': value})
name = []
for record in team_val:
name.append(record.get('label'))
count = []
for record in team_val:
count.append(record.get('value'))
team = [count, name]
return team

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
odoo_website_helpdesk_dashboard/static/description/assets/modules/1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
odoo_website_helpdesk_dashboard/static/description/assets/modules/2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
odoo_website_helpdesk_dashboard/static/description/assets/modules/3.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
odoo_website_helpdesk_dashboard/static/description/assets/modules/4.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
odoo_website_helpdesk_dashboard/static/description/assets/modules/5.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
odoo_website_helpdesk_dashboard/static/description/assets/modules/6.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
odoo_website_helpdesk_dashboard/static/description/assets/screenshots/7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

BIN
odoo_website_helpdesk_dashboard/static/description/assets/screenshots/8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

BIN
odoo_website_helpdesk_dashboard/static/description/assets/screenshots/9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 KiB

BIN
odoo_website_helpdesk_dashboard/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
odoo_website_helpdesk_dashboard/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

797
odoo_website_helpdesk_dashboard/static/description/index.html

@ -0,0 +1,797 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Website HelpDesk Dashboard</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
rel="stylesheet">
</head>
<body>
<section>
<div class="container"
style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center"
style="border-bottom:1px solid rgba(0, 0, 0, 0.22)">
<div class="my-3">
<img src="assets/misc/logo.png"
style="width:auto !important; height:40px !important">
</div>
<div class="my-3 d-flex align-items-center">
<div class="text-center"
style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;">
Community
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column"
style="margin: 80px 0px !important;">
<h1 style="font-size: 2.8rem;font-weight: 700; color:
#1A202C;">
Website HelpDesk Dashboard</h1>
<p class="my-3 mb-4"
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;">Multipurpose Graphical Dashboard for Website HelpDesk module.
</p>
<div style="width: 80%; margin-top: 3rem;">
<img src="assets/screenshots/hero.gif"
class="img-responsive" width="100%" height="auto">
</div>
</div>
</div>
<div class="container mt-5 mb-5">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4">
<p class="m-0"
style="font-weight: 600; font-size: 24px; color:#714b67 !important">
Key Highlights
</p>
</div>
<div class="row py-4">
<div class="col-md-6 col-sm-12 p-3">
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px;
background: #FFF;
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); ">
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67;
display: flex; justify-content: center; align-items: center;
margin-right: 10px; flex-shrink: 0;">
<i class="fa-solid fa-star "
style="color: #fff;font-size:14px;"></i>
</div>
<div>
<p style="color: #1A202C;font-weight: 600;
font-size: 1.2rem; margin-bottom: 2px;">
Classified tickets according to their stages.</p>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12 p-3">
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px;
background: #FFF;
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); ">
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67;
display: flex; justify-content: center; align-items: center;
margin-right: 10px; flex-shrink: 0;">
<i class="fa-solid fa-star "
style="color: #fff;font-size:14px;"></i>
</div>
<div>
<p style="color: #1A202C;font-weight: 600;
font-size: 1.2rem; margin-bottom: 2px;">
Manage Tickets in the backend easily.</p>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12 p-3">
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px;
background: #FFF;
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); ">
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67;
display: flex; justify-content: center; align-items: center;
margin-right: 10px; flex-shrink: 0;">
<i class="fa-solid fa-star "
style="color: #fff;font-size:14px;"></i>
</div>
<div>
<p style="color: #1A202C;font-weight: 600;
font-size: 1.2rem; margin-bottom: 2px;">
View status of tickets in the Doughnut Chart</p>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12 p-3">
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px;
background: #FFF;
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); ">
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67;
display: flex; justify-content: center; align-items: center;
margin-right: 10px; flex-shrink: 0; ">
<i class="fa-solid fa-star "
style="color: #fff;font-size:14px;"></i>
</div>
<div>
<p style="color: #1A202C;font-weight: 600;
font-size: 1.2rem; margin-bottom: 2px;">
Number of tickets allotted to each team can be seen in the bar chart.</p>
</div>
</div>
</div>
</div>
</div>
<div class="container rounded">
<ul class="nav nav-tabs d-flex"
style="width: fit-content;margin: 0 auto;gap: 1rem;">
<li class="col text-center py-2 text-nowrap "
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;">
<a
class="active show" data-toggle="tab" href="#tab1"
style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;">
<i class="fa-regular fa-image pr-2"
style="color: #fff;"></i>
Screenshots</a></li>
<li class="col text-center py-2 text-nowrap "
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;">
<a
data-toggle="tab" href="#tab2"
style="color: #fff;font-weight: 500; text-decoration: none;"><i
class="fa-solid fa-star pr-2"
style="color: #fff;"></i>Features</a></li>
<li class="col text-center py-2 text-nowrap "
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;">
<a
data-toggle="tab" href="#tab3"
style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i
class="fa-solid fa-book-open pr-2"
style="color: #fff;"></i>Released Notes</a></li>
</ul>
<div class="tab-content"
style="background-color: rgba(121, 113, 119, 0.04);">
<div id="tab1" class="tab-pane fade in active show">
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/1.png"
class="img-responsive" width="100%"
height="auto">
</div>
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
View Tickets created from website and also in the draft stage together inside 'New tickets' tile along with the count.</h4>
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/2.png"
class="img-responsive" width="100%"
height="auto">
</div>
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
Manage the tickets in backend by clicking on the 'New tickets' tiles.</h4>
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/3.png"
class="img-responsive" width="100%"
height="auto">
</div>
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
View Tickets that are in progress.</h4>
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/4.png"
class="img-responsive" width="100%"
height="auto">
</div>
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
View and manage tickets that are in the done/completed state.</h4>
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/5.png"
class="img-responsive" width="100%"
height="auto">
</div>
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
Manage helpdesk teams ,also shows the count of teams existing.</h4>
</div>
</div>
</div><div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/6.png"
class="img-responsive" width="100%"
height="auto">
</div>
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
To show the Ticket Priority.</h4>
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/7.png"
class="img-responsive" width="100%"
height="auto">
</div>
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
With the help of doughnut chart, Analyse the status of tickets.</h4>
</div>
</div>
</div><div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/8.png"
class="img-responsive" width="100%"
height="auto">
</div>
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
With the help of Bar graph, analyse ratio between the Helpdesk teams and No. of tickets assigned to them.</h4>
</div>
</div>
</div><div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/9.png"
class="img-responsive" width="100%"
height="auto">
</div>
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
In this view can analyze all tickets and their details.</h4>
</div>
</div>
</div>
</div>
<div id="tab2" class="tab-pane fade">
<div class="col-mg-12" style="padding: 1rem 4rem;">
<ul style="list-style: none; padding: 1rem 0;font-weight: 500;">
<li class="py-3"
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<span style="margin-right: 12px;"><img
src="assets/misc/star (1) 2.svg"
alt=""
width="16px"></span>Classified tickets according to their stages.
</li>
<li class="py-3"
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<span style="margin-right: 12px;"><img
src="assets/misc/star (1) 2.svg"
alt=""
width="16px"></span> Manage Tickets in the backend easily.
</li>
<li class="py-3"
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<span style="margin-right: 12px;"><img
src="assets/misc/star (1) 2.svg"
alt=""
width="16px"></span> View tickets that are created by customers, from website in the received tickets list.
</li><li class="py-3"
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<span style="margin-right: 12px;"><img
src="assets/misc/star (1) 2.svg"
alt=""
width="16px"></span> View status
of tickets in the Doughnut Chart.
</li><li class="py-3"
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<span style="margin-right: 12px;"><img
src="assets/misc/star (1) 2.svg"
alt=""
width="16px"></span> Number of tickets allotted to each team can be seen in the bar chart.
</li>
</ul>
</div>
</div>
<div id="tab3" class="tab-pane fade">
<div class="col-mg-12 active" style="padding: 1rem 4rem;">
<div class="py-3"
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="d-flex mb-3"
style="font-size: 0.8rem; font-weight: 500;"><span>Version
17.0.1.0.0</span><span
class="px-2">|</span><span
style="color: #714B67;font-weight: 600;">Released on:22 February 2024</span>
</div>
<p class="m-0"
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;">
Initial commit for All In One Hide Print
Button</p>
</div>
</div>
</div>
</div>
</div>
<div class="container mt-5">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5">
<p class="m-0"
style="font-weight: 600; font-size: 24px; color:#000 !important">
Related Products</p>
</div>
</div>
<div id="myCarousel" class="carousel slide py-3" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<div class="row p-4">
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/website_product_publish/"
style="color: #000; text-decoration: none;">
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;">
<div style="width: 300px; ">
<img src="assets/modules/1.jpg"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Quick Product Publish/Unpublish</p>
</div>
</a>
</div>
</div>
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/odoo_icecat_connector/"
style="color: #000; text-decoration: none;">
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;">
<div style="width: 300px; ">
<img src="assets/modules/2.jpg"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Odoo Icecat Connector</p>
</div>
</a>
</div>
</div>
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/shopping_through_agent/"
style="color: #000; text-decoration: none;">
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;">
<div style="width: 300px; ">
<img src="assets/modules/3.jpg"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Shopping Through Agent</p>
</div>
</a>
</div>
</div>
</div>
</div>
<div class="carousel-item">
<div class="row p-4">
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/website_upload_files/"
style="color: #000; text-decoration: none;">
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;">
<div style="width: 300px; ">
<img src="assets/modules/4.jpg"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Multiple Attachments In eCommerce Order</p>
</div>
</a>
</div>
</div>
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/website_multi_variant/"
style="color: #000; text-decoration: none;">
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;">
<div style="width: 300px;">
<img src="assets/modules/5.jpg"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Website Multi Variant Add to Cart</p>
</div>
</a>
</div>
</div>
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/website_pdf_preview_snippet/"
style="color: #000; text-decoration: none;">
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;">
<div style="width: 300px;">
<img src="assets/modules/6.jpg"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Website PDF Preview Snippet</p>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#myCarousel"
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="#myCarousel"
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 class="container mt-5">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4">
<p class="m-0"
style="font-weight: 600; font-size: 24px; color:#000 !important">
Our Services</p>
</div>
</div>
<div class="container my-5">
<div class="row py-3">
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/cogs.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Customization</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#DBC711; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/wrench.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Implementation</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/lifebuoy.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Support</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/user.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Hire
Odoo Developer</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#54A0FF; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/puzzle.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Integration</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/update.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Migration</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/consultation.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Consultancy</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/training.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Implementation</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#E6BE26; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/license.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Licensing Consultancy</p>
</div>
</div>
</div>
</div>
<div class="container mt-5">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4">
<p class="m-0"
style="font-weight: 600; font-size: 24px; color:#000 !important">
Our Industries</p>
</div>
</div>
<div class="container">
<div class="row my-5 py-4">
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100 "
style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);">
<img src="assets/icons/trading-black.png" width="42px"
height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">Trading</p>
<p>Easily procure and sell your products</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgb(209, 209, 209); padding: 30px;">
<img src="assets/icons/pos-black.png" width="42px"
height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">POS</p>
<p>Easy configuration and convivial experience</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px rgba(228, 227, 227, 0.373)">
<img src="assets/icons/education-black.png"
width="42px" height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">
Education</p>
<p>A platform for educational management</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style="border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; ">
<img src="assets/icons/manufacturing-black.png"
width="42px" height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">
Manufacturing</p>
<p>Plan, track and schedule your operations</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;">
<img src="assets/icons/ecom-black.png" width="42px"
height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">E-commerce
& Website</p>
<p>Mobile friendly, awe-inspiring product pages</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px rgba(228, 227, 227, 0.373);">
<img src="assets/icons/service-black.png" width="42px"
height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">Service
Management</p>
<p>Keep track of services and invoice</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px; ">
<img src="assets/icons/restaurant-black.png"
width="42px" height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">
Restaurant</p>
<p>Run your bar or restaurant methodically</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style=" padding: 30px;box-shadow: -5px 0 10px rgba(228, 227, 227, 0.373);">
<img src="assets/icons/hotel-black.png" width="42px"
height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">Hotel
Management</p>
<p>An all-inclusive hotel management application</p>
</div>
</div>
</div>
</div>
<div class="container mt-5">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5">
<p class="m-0"
style="font-weight: 600; font-size: 24px; color:#000 !important">
Support</p>
</div>
</div>
<div class="container my-5">
<div class="row" style="background-color: #FFFAFE;">
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"
style="border-right: 1px solid #D9D9D9;">
<div style="padding: 30px;">
<div class="d-flex align-items-center">
<img src="assets/misc/support (1) 1.svg" alt=""
width="60px" style="margin-right: 12px;">
<div style="padding: 0px 8px;">
<span
style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need
Help?</span>
<p class="m-0" style="color:#718096;">Got
questions or need help? Get in touch.</p>
<div style="font-weight: 400;"><span><img
src="assets/misc/support-email.svg"
alt=""
width="18px"
style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center">
<div style="padding: 30px;">
<div class="d-flex align-items-center">
<img src="assets/misc/whatsapp 1.svg" alt=""
width="60px" style="margin-right: 12px;">
<div>
<span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span>
<p class="m-0" style="color:#718096;">Say hi to
us on WhatsApp!</p>
<div style="font-weight: 400; font-size: 16px;"><span><img
src="assets/misc/phone.svg"
alt="" width="14px"
style="filter: invert(1); margin-right: 0.8rem;"></span>+91
99456767686
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>

267
odoo_website_helpdesk_dashboard/static/src/css/dashboard.css

@ -0,0 +1,267 @@
.o_action_manager {
overflow: auto !important;
}
.help_dashboards {
padding-top: 10px;
background-color: #f8faff !important;
}
.dashboard_card h4 {
font-size: 1.1rem;
}
.main-section {
margin-left: 6px;
}
.breadcrumbs {
margin-top: 0;
}
/* Widget One
---------------------------*/
.stat-content {
display: inline-block;
width: 66%;
}
.stat-icon {
display: inline-block;
}
.stat-widget-one .stat-icon {
vertical-align: top;
margin: auto;
width: 100%;
color: #01c490;
}
.stat-widget-one .stat-icon i {
font-size: 30px;
font-weight: 900;
display: inline-block;
color: #01c490;
}
.stat-widget-one .stat-text {
font-size: 11px;
color: #868e96;
font-weight: bold;
}
.stat-widget-one .stat-digit {
font-size: 24px;
color: #02448b;
}
.stat-count {
font-size: 20px;
text-align: center;
color: #00438b;
}
.stat-title {
font-size: 17px;
text-align: center;
color: #00438b;
}
/*=====================Dashboard===========================*/
.dashboard_card {
padding: 0px;
margin-bottom: 1.5rem;
border-radius: 0px;
box-shadow: none;
background: none;
transition: transform 0.2s ease, box-shadow 0.2s ease;
will-change: transform, box-shadow;
}
.dashboard_card:hover {
transform: translateY(-2px) translateZ(0) !important;
box-shadow: 0 10px 10px 0 rgba(62, 57, 107, 0.12), 0 0 0 transparent !important;
}
.helpdesk {
margin-top: 3%;
margin-bottom: 2%;
}
.helpdesk .stat-icon {
border-radius: 15px 0 0 15px;
width: 30%;
height: 100px;
text-align: center;
padding-top: 11%;
background: #4a5c9a;
color: #fff;
}
#team_ico {
-webkit-text-stroke: 1px #8e8e8e;
}
.helpdesk .dashboard_card {
border-radius: 15px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
will-change: transform, box-shadow;
box-shadow: 0 10px 40px 0 rgba(62, 57, 107, 0.07),
0 2px 9px 0 rgba(62, 57, 107, 0.06);
}
.stat-widget-one .stat-text {
font-size: 14px;
color: #314384ff;
margin: 2rem 0rem 1rem 0rem;
text-align: center;
}
.stat-widget-one .stat-digit {
font-size: 20px;
font-weight: bolder;
padding: 1px 10px 2px 0;
color: #8061a9;
text-shadow: 0px 0px 20px #000000;
text-align: center;
}
.stat-widget-one .stat-icon i {
font-size: 25px;
font-weight: 900;
display: inline-block;
color: #fff;
}
.stat-widget-one {
border-radius: 15px;
background-color: white;
text-align: inherit !important;
}
.stat-widget-one {
width: 100%;
}
.inbox_tickets .stat-widget-one .stat-text {
color: #706F8E;
}
.inbox_tickets .stat-icon {
background: #706F8E !important;
}
.inprogress_tickets .stat-widget-one .stat-text {
color: #9AA8A8;
}
.inprogress_tickets .stat-icon {
background: #9AA8A8 !important;
}
.done_tickets .stat-icon {
background: #847A9F !important;
}
.done_tickets .stat-widget-one .stat-text {
color: #847A9F;
}
.team_card .stat-icon {
background: #66719a !important;
}
.team_card .stat-widget-one .stat-text {
color: #66719a;
}
.dashboard_card-body {
display: flex;
justify-content: space-between;
align-items: center;
}
.pending_detail {
width: 75%;
padding: 0 0 0 40px;
margin: 0 0 0 4px;
}
.ticket_box {
height: 32rem;
overflow-y: auto;
}
.ticket_box_head {
text-align: center;
padding: 12px 0;
color: rgb(73 80 87 / 76%);
font-weight: bold;
font-size: 20px;
background: #b1cccc;
margin-bottom: 9px;
}
.tickets_head {
margin-left: 10px;
}
.pending_tickets {
padding-left: 0 ! important;
}
.tickets_list {
font-weight: 500;
font-size: 14px;
margin: 10px;
list-style-type: none;
border-radius: 5px;
border: 1px solid rgba(69, 72, 103, 0.71);
background: #f3f3f3bd;
padding: 10px !important;
}
.half_chart.chart-container.card-shadow {
height: 32rem;
}
.chart-container.card-shadow {
height: 32rem;
}
.row {
/* Define your styles here */
font-weight: bold;
margin-bottom: 20px;
/* Add more styles as needed */
transition: background-color 0.3s ease-in-out;
}
.td{
width:20%;
padding:15px;
transition: background-color 0.3s ease-in-out; /* Add a transition for background-color */
}
.td:hover {
background-color: #e0e0e0; /* Change the background color on hover */
}
.custom-tr{
width:10%;
}
.custom-tr:hover {
background-color: #ff8080; /* Change the background color on hover */
color: white; /* Change the text color on hover */
font-size: 18px; /* Change the font size on hover */
font-weight: normal; /* Change the font weight on hover */
border: 2px solid #ff8080; /* Add a border on hover */
/* Add more hover styles as needed */
}
.user-image{
width: 10%;
height: auto; /* Let the height adjust proportionally to maintain aspect ratio */
border-radius: 50%; /* This will create a circular shape */
display: block; /* Ensures it's a block element for proper centering */
margin: 0 auto; /* Centers the circular image horizontally */
}

290
odoo_website_helpdesk_dashboard/static/src/js/dashboard_view.js

@ -0,0 +1,290 @@
/** @odoo-module **/
import { registry } from "@web/core/registry";
import { jsonrpc } from "@web/core/network/rpc_service";
import { _t } from "@web/core/l10n/translation";
import { Component } from "@odoo/owl";
import { onMounted, useRef } from "@odoo/owl";
import { useService } from "@web/core/utils/hooks";
/** Initializes the HelpDeskDashBoard component**/
class HelpDeskDashBoard extends Component{
/**Set up function**/
setup() {
super.setup();
var self = this;
this.ref = useRef("helpDeskDashboard")
this.rpc = useService("rpc");
this.actionService = useService("action");
onMounted(this.onMounted);
}
/**Function for onMounted**/
onMounted(){
this.render_dashboards();
this.render_graphs();
}
/**To render the charts**/
render_graphs() {
var self = this;
self.render_tickets_month_graph();
self.render_team_ticket_count_graph();
}
/**Doughnut chart: TICKET STATUS**/
render_tickets_month_graph() {
var self = this;
var ctx = this.ref.el.querySelector('#ticket_month')
jsonrpc('/web/dataset/call_kw/ticket.helpdesk/get_tickets_count', {
model: "ticket.helpdesk",
method: "get_tickets_view",
args: [],
kwargs: {},
}).then(function (values) {
var data = {
labels: ['New', 'In Progress', 'Solved'],
datasets: [{
data: [values.inbox_count, values.progress_count, values.done_count],
backgroundColor: [
"#665191",
"#ff7c43",
"#ffa600"
],
borderColor: [
"#003f5c",
"#2f4b7c",
"#f95d6a"
],
borderWidth: 1
}]
};
/** Options **/
var options = {
responsive: true,
title: false,
legend: {
display: true,
position: "right",
labels: {
fontColor: "#333",
fontSize: 16
}
},
scales: {
yAxes: [{
gridLines: {
color: "rgba(0, 0, 0, 0)",
display: false,
},
ticks: {
min: 0,
display: false,
}
}]
}
};
/** Create Chart class object **/
var chart = new Chart(ctx, {
type: "doughnut",
data: data,
options: options
});
});
}
/** Bar chart: Team - Tickets Count Ratio **/
render_team_ticket_count_graph() {
var self = this
var ctx = this.ref.el.querySelector('.team_ticket_count');
jsonrpc('/web/dataset/call_kw/ticket.helpdesk/get_tickets_count', {
model: "ticket.helpdesk",
method: "get_team_ticket_count_pie",
args: [],
kwargs: {},
}).then(function (arrays) {
var data = {
labels: arrays[1],
datasets: [{
label: "",
data: arrays[0],
backgroundColor: [
'rgba(255, 99, 132, 0.2)',
'rgba(255, 159, 64, 0.2)',
'rgba(255, 205, 86, 0.2)',
'rgba(75, 192, 192, 0.2)',
'rgba(54, 162, 235, 0.2)',
'rgba(153, rpc102, 255, 0.2)',
'rgba(201, 203, 207, 0.2)'
],
borderColor: ['rgb(255, 99, 132)',
'rgb(255, 159, 64)',
'rgb(255, 205, 86)',
'rgb(75, 192, 192)',
'rgb(54, 162, 235)',
'rgb(153, 102, 255)',
'rgb(201, 203, 207)'
],
borderWidth: 1
},]
};
/** Options **/
var options = {
responsive: true,
title: false,
maintainAspectRatio: true,
legend: {
display: false
},
scales: {
yAxes: [{
display: true,
ticks: {
beginAtZero: true,
steps: 10,
stepValue: 5,
// max: 100
}
}]
}
};
/** Create Chart class object **/
var chart = new Chart(ctx, {
type: "bar",
data: data,
options: options
});
});
}
/** List view of tickets in dashboard **/
render_dashboards() {
var self = this;
jsonrpc('/web/dataset/call_kw/ticket.helpdesk/get_tickets_count', {
model: 'ticket.helpdesk',
method: 'get_tickets_count',
args: [],
kwargs: {},
}).then(function(result) {
var inbox_count_span = document.createElement("span");
inbox_count_span.textContent = result.inbox_count
self.ref.el.querySelector('#inbox_count').appendChild(inbox_count_span);
var progress_count_span = document.createElement("span");
progress_count_span.textContent = result.progress_count
self.ref.el.querySelector('#inprogress_count').appendChild(progress_count_span);
var done_count_span = document.createElement("span");
done_count_span.textContent = result.done_count
self.ref.el.querySelector('#done_count').appendChild(done_count_span);
var team_count_span = document.createElement("span");
team_count_span.textContent = result.team_count
self.ref.el.querySelector('#team_count').appendChild(team_count_span);
var priorityCounts = {
very_low: result.very_low_count1,
low: result.low_count1,
normal: result.normal_count1,
high: result.high_count1,
very_high : result.very_high_count1
};
/**Loop through the priorities and create progress bars**/
for (var priority in priorityCounts) {
var progressBarWidth = priorityCounts[priority] + "%";
var progressBar = $("<div class='progress-bar'></div>").css("width", progressBarWidth);
var progressBarContainer = $("<div class='progress'></div>").append(progressBar);
var progressValue = $("<div class='progress-value'></div>").text(priorityCounts[priority] + "%");
// Append the progress bar container to elements with class corresponding to the priority
$("." + priority + "_count").append(progressBarContainer);
$("." + priority + "_count .progress-value").append(progressValue);
}
var tbody = $(".ticket-details");
var ticket_details = result.ticket_details;
for (var i = 0; i < ticket_details.length; i++) {
/** Get the current ticket object **/
var ticket = ticket_details[i];
var row = $("<tr></tr>");
/** Assuming you have the Base64-encoded image data in a
variable called ticket.assigned_image **/
var base64Image = ticket.assigned_image;
var assignedUserCell = $("<td class='td'></td>");
var imgElement = $("<img>");
/** Set the image source **/
imgElement.attr("src", "data:image/png;base64," + base64Image);
/** Set an alt attribute for accessibility **/
imgElement.attr("alt", "User Image");
/** Add the 'oe-avatar' class to the <img> element **/
imgElement.addClass("user-image");
/** Append the img element to the assignedUserCell **/
assignedUserCell.append(imgElement);
/** Append the assignedUserCell to the row **/
row.append(assignedUserCell);
row.append("<td class='td'>" + ticket.customer_name + "</td>");
row.append("<td class='td'>" + ticket.ticket_name + "</td>");
row.append(assignedUserCell);
row.append("<td>" + ticket.assigned_to + "</td>");
row.append("<td>" + ticket.subject + "</td>");
row.append("<td>" + ticket.priority + "</td>");
tbody.append(row);
}
$(".response").append(result.response);
self.rpc('/help/tickets', {}).then((values) => {
$('.pending_tickets').append(values);
});
});
}
/** To show new tickets **/
tickets_inbox(ev) {
var self = this;
ev.stopPropagation();
ev.preventDefault();
self.actionService.doAction({
name: _t("Inbox"),
type: 'ir.actions.act_window',
res_model: 'ticket.helpdesk',
view_mode: 'tree,form',
views: [[false, 'list'], [false, 'form']],
domain: [['stage_id.name', 'in', ['Inbox', 'Draft']]],
context: {default_stage_id_name: 'Draft'},
target: 'current'
});
}
/** To show in progress tickets **/
tickets_inprogress(ev) {
var self = this;
ev.stopPropagation();
ev.preventDefault();
self.actionService.doAction({
name: _t("In Progress"),
type: 'ir.actions.act_window',
res_model: 'ticket.helpdesk',
view_mode: 'tree,form',
views: [[false, 'list'], [false, 'form']],
domain: [['stage_id.name', '=', 'In Progress']],
context: {create: false},
target: 'current'
});
}
/** To show done tickets **/
tickets_done(ev) {
var self = this;
ev.stopPropagation();
ev.preventDefault();
self.actionService.doAction({
name: _t("Done"),
type: 'ir.actions.act_window',
res_model: 'ticket.helpdesk',
view_mode: 'tree,form',
views: [[false, 'list'], [false, 'form']],
domain: [['stage_id.name', '=', 'Done']],
context: {create: false},
target: 'current'
});
}
/** To show the helpdesk teams**/
helpdesk_teams(ev) {
var self = this;
ev.stopPropagation();
ev.preventDefault();
self.actionService.doAction({
name: _t("Teams"),
type: 'ir.actions.act_window',
res_model: 'team.helpdesk',
view_mode: 'tree,form',
views: [[false, 'list'], [false, 'form']],
target: 'current'
});
}
}
HelpDeskDashBoard.template = 'DashBoardHelpDesk'
registry.category("actions").add("helpdesk_dashboard", HelpDeskDashBoard)

19288
odoo_website_helpdesk_dashboard/static/src/js/lib/Chart.bundle.js

File diff suppressed because it is too large

7828
odoo_website_helpdesk_dashboard/static/src/js/lib/d3.min.js

File diff suppressed because it is too large

224
odoo_website_helpdesk_dashboard/static/src/xml/dashboard_view.xml

@ -0,0 +1,224 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates id="template" xml:space="preserve">
<t t-name="HelpDesk_Dashboard" owl="1">
<div class="helpdesk_dashboards">
<div class="container-fluid helpdesk_dashboard_main"/>
</div>
</t>
<t t-name="DashBoardHelpDesk">
<link rel="stylesheet"
href="/odoo_website_helpdesk_dashboard/static/src/css/dashboard.css"/>
<div class="row main-section mt-5" t-ref="helpDeskDashboard">
<h2 class="section-header" style="font-size: 2em; color:#4a5c9a;">HelpDesk Dashboard</h2>
<div class="col-sm-6 col-md-3-12 col-md-6 col-lg-3 helpdesk inbox_tickets"
t-on-click="tickets_inbox">
<div class="dashboard_card" data-toggle="collapse">
<div class="dashboard_card-body panel panel-new">
<div class="stat-widget-one" style="background-color:pink">
<div class="stat-icon">
<i class="fa fa-inbox"/>
</div>
<div class="stat-content">
<div class="stat-text" style="color:black">New Tickets</div>
<div class="stat-digit" id="inbox_count">
</div>
</div>
</div>
</div>
<div class="panel-new-collapse collapse">
<div id="help_new_tickets"
style="border:none; font-size:8px; padding:0 8px 8px 8px;">
<br/>
<br/>
<p style="border:none; font-size:14px; padding:0 15px 15px 15px;"></p>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3-12 col-md-6 col-lg-3 salon_spa_orders helpdesk inprogress_tickets"
t-on-click="tickets_inprogress">
<div class="dashboard_card" data-toggle="collapse">
<div class="dashboard_card-body panel panel-progress">
<div class="stat-widget-one" style="background-color:orange">
<div class="stat-icon">
<i class="fa fa-spinner"/>
</div>
<div class="stat-content">
<div class="stat-text"
style="color:black">Tickets In Progress</div>
<div class="stat-digit" id="inprogress_count">
</div>
</div>
</div>
</div>
<div class="panel-progress-collapse collapse">
<div id="help_progress_tickets"
style="border:none; font-size:8px; padding:0 8px 8px 8px;">
<br/>
<br/>
<p style="border:none; font-size:14px; padding:0 15px 15px 15px;"></p>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3-12 col-md-6 col-lg-3 helpdesk done_tickets"
t-on-click="tickets_done">
<div class="dashboard_card" data-toggle="collapse">
<div class="dashboard_card-body panel panel-done">
<div class="stat-widget-one" style="background-color:pink">
<div class="stat-icon">
<i class="fa fa-check"/>
</div>
<div class="stat-content">
<div class="stat-text" style="color:black">Done Tickets</div>
<div class="stat-digit" id="done_count">
</div>
</div>
</div>
</div>
<div class="panel-done-collapse collapse">
<div id="help_done_tickets"
style="border:none; font-size:14px; padding:0 15px 15px 15px;">
<br/>
<br/>
<p style="font-style:italic; font-weight:100;"></p>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3-12 col-md-6 col-lg-3 helpdesk team_card"
t-on-click="helpdesk_teams">
<div class="dashboard_card" data-toggle="collapse">
<div class="dashboard_card-body panel panel-team">
<div class="stat-widget-one" style="background-color:white">
<div class="stat-icon">
<i class="fa fa-group" id="team_ico"/>
</div>
<div class="stat-content">
<div class="stat-text" style="color:black">HelpDesk Teams</div>
<div class="stat-digit" id="team_count">
</div>
</div>
</div>
</div>
<div class="panel-team-collapse collapse">
<div id="help_teams"
style="border:none; font-size:14px; padding:0 15px 15px 15px;">
<br/>
<br/>
<p style="font-style:italic; font-weight:100;"></p>
</div>
</div>
</div>
</div>
<div class="dashboard_card"
style="display: flex; justify-content: center; align-items: center;">
<div style="color: black; font-weight: bold; height: 60px; width: 700px; text-align: center;">
<span>CUSTOMER SATISFACTION:</span>
<div style="display: flex; justify-content: center; align-items: center;">
<span>😃</span>
<span>Response Received:</span>
<div style="width: 10px;"></div> <!-- Using width for spacing -->
<div class="response"></div>
</div>
</div>
</div>
<div class="row ticket-section">
<div class="col-12 col-sm-12 col-md-4 ticket_box chart-container card-shadow">
<h2 class="tickets_head">Ticket Priority</h2>
<hr/>
<div class="col-xs-12 text-align">
<div class="text-color">
<div class="line">
Very low :
<div class="very_low_count" widget="progressbar">
<div class="progress-value">
</div>
</div>
</div>
</div>
</div>
<div class="col-xs-12 text-align">
<div class="text-color">
<div class="line">
Low :
<div class="low_count" widget="progressbar">
<div class="progress-value"></div>
</div>
</div></div>
</div>
<div class="col-xs-12 text-align">
<div class="text-color">
<div class="line">
Normal :
<div class="normal_count" widget="progressbar">
<div class="progress-value"></div>
</div>
</div>
</div>
</div>
<div class="col-xs-12 text-align">
<div class="text-color">
<div class="line">
High :
<div class="high_count" widget="progressbar">
<div class="progress-value"></div>
</div>
</div>
</div>
</div>
<div class="col-xs-12 text-align">
<div class="text-color">
<div class="line">
Very High :
<div class="very_high_count" widget="progressbar">
<div class="progress-value"></div>
</div>
</div>
</div>
</div>
</div>
<div class="col-12 col-sm-12 col-md-4">
<div class="leads_month_pie_div half_chart chart-container card-shadow">
<h2>TICKET STATUS</h2>
<hr/>
<div class="graph_canvas">
<canvas id="ticket_month" width="200" height="120"/>
</div>
</div>
</div>
<div class="col-12 col-sm-12 col-md-4">
<div class="team_ticket_div half_chart chart-container card-shadow">
<h2>Team - Tickets Count Ratio</h2>
<hr/>
<div class="graph_canvas">
<canvas class="team_ticket_count"/>
</div>
</div>
</div>
<div class="col-100 col-sm-100 col-md-20">
<div class="leads_month_pie_div half_chart chart-container card-shadow">
<h2>ISSUE</h2>
<hr/>
<!-- Add a table to display ticket details -->
<table class="ticket-table">
<thead>
<tr style="font-size: 16px; font-weight: bold; background-color: pink; color: black;height:50%"
class="custom-tr">
<th style="width: 20%; min-width: 20px; font-size: 13px;">Customer Name</th>
<th style="width: 20%; min-width: 10px; font-size: 13px;">Ticket</th>
<th style="width: 20%; min-width: 20px; font-size: 13px;"> </th>
<th style="width: 20%; min-width: 20px; font-size: 13px;">Assigned to</th>
<th style="width: 20%; min-width: 20px; font-size: 13px;">Subject</th>
<th style="width: 20%; min-width: 20px; font-size: 13px;">Priority</th>
</tr>
</thead>
<tbody class="ticket-details">
</tbody>
</table>
</div>
</div>
</div>
</div>
</t>
</templates>

47
odoo_website_helpdesk_dashboard/views/dashboard_templates.xml

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Template for view all tickets in list view-->
<template id="dashboard_tickets" name="Pending Tickets template">
<t t-foreach="h_tickets" t-as="ticket">
<div class="tickets_list" t-att-id="ticket['id']"
t-att-value="ticket['id']">
<t t-esc="ticket['name']+' | '+ticket['subject']"/>
</div>
</t>
</template>
<!-- Table for ticket in dashboard-->
<template id="dashboard_ticket_detailed" name="Tickets template">
<t t-foreach="h_tickets" t-as="ticket">
<div class="col-xs-12 " style="padding:0;">
<div class="ticket_box_head">
<t t-esc="ticket['name']+' - ('+ticket['create_date'].strftime('%d-%b-%y')"/>
)
</div>
</div>
<div class="row m-4 pt-3 w-75">
<div class="col-sm-6 col-md-3-12 col-md-6 col-lg-6 ">
<h3 class="ticket_name">
Ticket Name :
<t t-esc="ticket['name']"/>
</h3>
<h3 class="ticket_subject">
Ticket Issue :
<t t-esc="ticket['subject']"/>
</h3>
</div>
<div class="col-sm-6 col-md-3-12 col-md-6 col-lg-3">
<h4 class="ticket_customer">
<t t-if="ticket['customer_name']">
Customer :
<t t-esc="ticket['customer_name']"/>
</t>
</h4>
<h4 class="ticket_subject">
Description :
<t t-esc="ticket['description']"/>
</h4>
</div>
</div>
</t>
</template>
</odoo>

13
odoo_website_helpdesk_dashboard/views/menu_item.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="action_website_helpdesk_dashboard" model="ir.actions.client">
<field name="name">HelpDesk</field>
<field name="tag">helpdesk_dashboard</field>
</record>
<menuitem id="odoo_website_helpdesk.menu_helpdesk" name="Helpdesk"
action="action_website_helpdesk_dashboard"
sequence="5"/>
<menuitem name="Dashboard" id="menu_helpdesk_dashboard_new"
parent="odoo_website_helpdesk.menu_helpdesk" sequence="0"
action="action_website_helpdesk_dashboard"/>
</odoo>
Loading…
Cancel
Save