summaryrefslogtreecommitdiff
path: root/sh_helpdesk/models/helpdesk_ticket_dashboard.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
commit1ca3b3df3421961caec3b747a364071c80f5c7da (patch)
tree6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /sh_helpdesk/models/helpdesk_ticket_dashboard.py
parentb57188be371d36d96caac4b8d65a40745c0e972c (diff)
initial commit
Diffstat (limited to 'sh_helpdesk/models/helpdesk_ticket_dashboard.py')
-rw-r--r--sh_helpdesk/models/helpdesk_ticket_dashboard.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/sh_helpdesk/models/helpdesk_ticket_dashboard.py b/sh_helpdesk/models/helpdesk_ticket_dashboard.py
new file mode 100644
index 0000000..8a175ac
--- /dev/null
+++ b/sh_helpdesk/models/helpdesk_ticket_dashboard.py
@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+# Part of Softhealer Technologies.
+
+from odoo import models, fields, _
+
+
+class TicketDashboard(models.Model):
+ _name = 'ticket.dashboard'
+ _description = 'Ticket Dashboard'
+
+ name = fields.Char('Name')
+
+ def get_ticket_data(self, ids):
+ return {
+ 'name': _('Tickets'),
+ 'type': 'ir.actions.act_window',
+ 'res_model': 'helpdesk.ticket',
+ 'view_mode': 'tree,form',
+ 'domain': [('id', 'in', ids)],
+ 'target': 'current'
+ }