Browse Source

May 16 : [UPDT] Updated 'odoo_website_helpdesk_dashboard'

dependabot/npm_and_yarn/odoo_website_helpdesk/static/src/cdn/minimist-1.2.8
AjmalCybro 2 years ago
parent
commit
2c84152d44
  1. 6
      odoo_website_helpdesk_dashboard/models/helpdesk_dashboard.py
  2. 6
      odoo_website_helpdesk_dashboard/static/src/xml/dashboard_view.xml

6
odoo_website_helpdesk_dashboard/models/helpdesk_dashboard.py

@ -208,15 +208,12 @@ class HelpDeskTicket(models.Model):
"""polarArea chart""" """polarArea chart"""
ticket_count = [] ticket_count = []
team_list = [] team_list = []
# print(tickets,'tickets')
tasks=[] tasks=[]
project_task = self.env['project.task'].search([('ticket_billed', '=', True)]) project_task = self.env['project.task'].search([('ticket_billed', '=', True)])
for rec in project_task: for rec in project_task:
tasks.append(rec.ticket_id.id) tasks.append(rec.ticket_id.id)
print(tasks,'tsk')
tickets = self.env['help.ticket'].search([('id', 'in', tasks)]) tickets = self.env['help.ticket'].search([('id', 'in', tasks)])
# ticket_ids = tickets.ids
print(tickets.ids,'tkts')
for rec in tickets: for rec in tickets:
# if rec.id in teams.ids: # if rec.id in teams.ids:
@ -239,7 +236,6 @@ class HelpDeskTicket(models.Model):
count.append(record.get('value')) count.append(record.get('value'))
# #
team = [count, name] team = [count, name]
print(team)
return team return team
@api.model @api.model

6
odoo_website_helpdesk_dashboard/static/src/xml/dashboard_view.xml

@ -126,7 +126,7 @@
<h2>Tickets by Month</h2> <h2>Tickets by Month</h2>
<hr/> <hr/>
<div class="graph_canvas"> <div class="graph_canvas">
<canvas class="ticket_month" width="150" height="120"/> <canvas class="ticket_month" />
</div> </div>
</div> </div>
</div> </div>
@ -135,7 +135,7 @@
<h2>Team - Tickets Count Ratio</h2> <h2>Team - Tickets Count Ratio</h2>
<hr/> <hr/>
<div class="graph_canvas"> <div class="graph_canvas">
<canvas class="team_ticket_count" width="150" height="100"/> <canvas class="team_ticket_count" />
</div> </div>
</div> </div>
@ -163,7 +163,7 @@
<h2>Team - Resolved Tickets</h2> <h2>Team - Resolved Tickets</h2>
<hr/> <hr/>
<div class="graph_canvas"> <div class="graph_canvas">
<canvas class="team_ticket_done" width="150" height="100"/> <canvas class="team_ticket_done"/>
</div> </div>
</div> </div>

Loading…
Cancel
Save