add items for selection lists

This commit is contained in:
sinergia 2022-06-06 14:11:55 -05:00
parent 53125cf4d1
commit 7908826d9c
2 changed files with 16 additions and 5 deletions

View File

@ -7,10 +7,22 @@ from trytond.model import fields
__all__ = ['Product']
_RISK = [(None, '')]
_USE = [(None, '')]
_BIOMEDICAL_CLASS = [(None, '')]
_MAIN_TECNOLOGY = [(None, '')]
_RISK = [('uno', 'I'),
('dosA', 'IIA'),
('dosB', 'IIB')]
_USE = [('medico', 'Médico'),
('basico', 'Basico'),
('apoyo', 'Apoyo')]
_BIOMEDICAL_CLASS = [('diagnostico', 'Diagnóstico'),
('rehabilitación', 'Rehabilitación')]
_MAIN_TECNOLOGY = [('mecanico', 'Mecánico'),
('electrico', 'Electrico'),
('electronico', 'Electrónico'),
('hidraulico', 'Hidraulico'),
('neumatico', 'Neumatico')]
class Product(ModelSQL, ModelView, metaclass=PoolMeta):
'Product'

View File

@ -1,6 +1,5 @@
#This file is part of Tryton. The COPYRIGHT file at the top level of
#txhis repository contains the full copyright notices and license terms
from trytond.model import ModelView, ModelSQL