blob: 8a175acd44d27e8fa1cbda74145a3b806e8ddee6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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'
}
|