kalenislims/lims_quality_control/configuration.py
2020-08-06 18:36:35 -03:00

17 lines
657 B
Python

# This file is part of lims_quality_control 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 ModelView, ModelSQL, fields, ModelSingleton
class Configuration(ModelSingleton, ModelSQL, ModelView):
'Quality configuration'
__name__ = 'lims.quality.configuration'
sample_location = fields.Many2One('stock.location', 'Sample Location',
domain=[('type', '=', 'storage')])
quality_sequence = fields.Many2One('ir.sequence',
'Quality Sequence', domain=[('code', '=', 'lims.quality.test')],
required=True)