![]()
" + result.done_count + "");
$("#team_count").append("
" + result.team_count + "");
+
+ 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
+ // Add other priorities and their corresponding count properties
+ };
+
+ // Loop through the priorities and create progress bars
+ for (var priority in priorityCounts) {
+ var progressBarWidth = priorityCounts[priority] + "%";
+
+ var progressBar = $("
").css("width", progressBarWidth);
+ var progressBarContainer = $("
").append(progressBar);
+ var progressValue = $("
").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++) {
+ var ticket = ticket_details[i]; // Get the current ticket object
+ var row = $("
|
");
+ // Assuming you have the Base64-encoded image data in a variable called ticket.assigned_image
+ var base64Image = ticket.assigned_image;
+
+ var assignedUserCell = $("
| ");
+ var imgElement = $("
![]()
");
+ imgElement.attr("src", "data:image/png;base64," + base64Image); // Set the image source
+ imgElement.attr("alt", "User Image"); // Set an alt attribute for accessibility
+ imgElement.addClass("user-image"); // Add the 'oe-avatar' class to the
![]()
element
+
+ // Append the img element to the assignedUserCell
+ assignedUserCell.append(imgElement);
+
+ // Append the assignedUserCell to the row
+ row.append(assignedUserCell);
+
+
+ row.append("
" + ticket.customer_name + " | ");
+ row.append("
" + ticket.ticket_name + " | ");
+ row.append(assignedUserCell);
+ row.append("
" + ticket.assigned_to + " | ");
+ row.append("
" + ticket.subject + " | ");
+ row.append("
" + ticket.priority + " | ");
+ tbody.append(row);
+ }
+
+
+
+
+
+ $(".response").append(result.response);
ajax.jsonRpc("/help/tickets", "call", {}).then(function (values) {
$('.pending_tickets').append(values);
});
diff --git a/odoo_website_helpdesk_dashboard/static/src/xml/dashboard_view.xml b/odoo_website_helpdesk_dashboard/static/src/xml/dashboard_view.xml
index e28c62013..785df30e9 100644
--- a/odoo_website_helpdesk_dashboard/static/src/xml/dashboard_view.xml
+++ b/odoo_website_helpdesk_dashboard/static/src/xml/dashboard_view.xml
@@ -10,16 +10,15 @@
href="/odoo_website_helpdesk_dashboard/static/src/css/dashboard.css"/>
-
-
+
+
-
@@ -62,12 +63,12 @@
@@ -86,12 +87,12 @@
+
+
+
+
CUSTOMER SATISFACTION:
+
+
😃
+
Response Received:
+
+
+
+
+
-
-
Received Tickets
-
-
+
+
+
+
+ Low :
+
+
-
-
-
Tickets by Month
-
-
-
+
+
+
+
-
-
-
-
-
Team - Tickets Count Ratio
-
-
-
+
+
+
+
-
-
-
Tickets - Projects Ratio
-
-
-
+
+
+
+
+
+
-
-
-
-
Billed Task - Team ratio
+
+
-
+
-
Team - Resolved Tickets
+
Team - Tickets Count Ratio
-
+
+
+
+
+
ISSUE
+
+
+
+
+
+
+ Customer Name |
+ Ticket |
+ |
+ Assigned to |
+ Subject |
+ Priority |
+
+
+
+
+
+
+
+
+
+
+
-