trytonpsk-crm_fiduprevisora/case.py

25 lines
991 B
Python
Raw Permalink Normal View History

2020-04-16 15:28:18 +02:00
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
2023-02-17 19:34:43 +01:00
from trytond.model import fields
from trytond.pool import PoolMeta
2020-06-15 23:22:03 +02:00
from trytond.pyson import Eval, Bool, Not
2020-04-16 15:28:18 +02:00
class Case(metaclass=PoolMeta):
__name__ = "crm.case"
macroprocess = fields.Char('Macroprocess')
process_service = fields.Char('Process Service')
motives_health = fields.Char('Motives General Health')
type_request = fields.Char('Type Request')
priority = fields.Char('Priority')
time_max = fields.Numeric('Time Max Response (days)', digits=(2, 0))
quality_attribute = fields.Char('Quality Attribute')
required_attach = fields.Boolean('Required Attach')
2020-06-15 23:22:03 +02:00
attach_description = fields.Char('Attach Description', states={
'invisible': (Not(Bool(Eval('required_attach')))),
'required': (Bool(Eval('required_attach'))),
})
2020-04-16 15:28:18 +02:00
def get_rec_name(self, name):
return self.name