estados.py
948 Bytes
from odoo import api, fields, models
class hgt_soporte_estado(models.Model):
""" Model for case stages. This models the main stages of a document
management flow. Main CRM objects (leads, opportunities, project
issues, ...) will now use only stages, instead of state and stages.
Stages are for example used to display the kanban view of records.
"""
_name = "hgt.soporte_estado"
_description = "Estados de las incidencias"
_rec_name = 'name'
_order = "sequence, name, id"
name = fields.Char(string='Nombre del estado', required=True)
sequence = fields.Integer(string='Secuencia', default=1, help="Usado para ordenar los estados, mientras mas bajo mas importante.")
fold = fields.Boolean(string='Replegado',
help='Esto oculta por defecto las incidencias contenidas.')
observaciones = fields.Char(string='Requisitos de la incidencia para estar en un estado', required=False)