mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
31 lines
912 B
Python
31 lines
912 B
Python
# -*- coding: utf-8 -*-
|
|
# This file is part of lims_instrument_generic_form module for Tryton.
|
|
# The COPYRIGHT file at the top level of this repository contains
|
|
# the full copyright notices and license terms.
|
|
|
|
from trytond.pool import PoolMeta
|
|
import generic_form_xls
|
|
|
|
__all__ = ['ResultsImport']
|
|
|
|
|
|
class ResultsImport:
|
|
__name__ = 'lims.resultsimport'
|
|
__metaclass__ = PoolMeta
|
|
|
|
@classmethod
|
|
def __setup__(cls):
|
|
super(ResultsImport, cls).__setup__()
|
|
controllers = [
|
|
('generic_form_xls', 'Generic Form - XLS'),
|
|
]
|
|
for controller in controllers:
|
|
if controller not in cls.name.selection:
|
|
cls.name.selection.append(controller)
|
|
|
|
def loadController(self):
|
|
if self.name == 'generic_form_xls':
|
|
self.controller = generic_form_xls
|
|
else:
|
|
return super(ResultsImport, self).loadController()
|