mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
25 lines
884 B
Python
25 lines
884 B
Python
# This file is part of lims_diagnosis module for Tryton.
|
|
# The COPYRIGHT file at the top level of this repository contains
|
|
# the full copyright notices and license terms.
|
|
|
|
from trytond.model import fields
|
|
from trytond.pool import PoolMeta
|
|
from trytond.pyson import Eval
|
|
|
|
|
|
class Analysis(metaclass=PoolMeta):
|
|
__name__ = 'lims.analysis'
|
|
|
|
diagnostician = fields.Many2One('lims.diagnostician', 'Diagnostician')
|
|
not_block_diagnosis = fields.Boolean('Does not block diagnosis',
|
|
help="This analysis is not necessary to begin diagnosing the sample")
|
|
diagnosis_template = fields.Many2One('lims.diagnosis.template',
|
|
'Diagnosis Template', states={'readonly': Eval('type') != 'group'},
|
|
depends=['type'])
|
|
|
|
|
|
class ProductType(metaclass=PoolMeta):
|
|
__name__ = 'lims.product.type'
|
|
|
|
diagnostician = fields.Many2One('lims.diagnostician', 'Diagnostician')
|