mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
17 lines
657 B
Python
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)
|