|
@ -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 |
|
|