add items for selection lists
This commit is contained in:
parent
53125cf4d1
commit
7908826d9c
20
product.py
20
product.py
@ -7,10 +7,22 @@ from trytond.model import fields
|
|||||||
|
|
||||||
__all__ = ['Product']
|
__all__ = ['Product']
|
||||||
|
|
||||||
_RISK = [(None, '')]
|
_RISK = [('uno', 'I'),
|
||||||
_USE = [(None, '')]
|
('dosA', 'IIA'),
|
||||||
_BIOMEDICAL_CLASS = [(None, '')]
|
('dosB', 'IIB')]
|
||||||
_MAIN_TECNOLOGY = [(None, '')]
|
|
||||||
|
_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):
|
class Product(ModelSQL, ModelView, metaclass=PoolMeta):
|
||||||
'Product'
|
'Product'
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||||
#txhis repository contains the full copyright notices and license terms
|
#txhis repository contains the full copyright notices and license terms
|
||||||
|
|
||||||
from trytond.model import ModelView, ModelSQL
|
from trytond.model import ModelView, ModelSQL
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user