1
from odoo import fields, models
4
class HelpdeskTicketStage(models.Model):
5
_name = 'helpdesk.ticket.stage'
6
_description = 'Helpdesk Ticket Stage'
7
_order = 'sequence, id'
9
name = fields.Char(string='Stage Name', required=True, translate=True)
10
description = fields.Text(translate=True)
11
sequence = fields.Integer(default=1)
12
active = fields.Boolean(default=True)
13
unattended = fields.Boolean(
15
closed = fields.Boolean(
17
mail_template_id = fields.Many2one(
19
string='Email Template',
20
domain=[('model', '=', 'helpdesk.ticket')],
21
help="If set an email will be sent to the "
22
"customer when the ticket"
24
fold = fields.Boolean(
25
string='Folded in Kanban',
26
help="This stage is folded in the kanban view "
27
"when there are no records in that stage "
29
company_id = fields.Many2one(
32
default=lambda self: self.env['res.company']._company_default_get(