from bika.lims.workflow import in_state from bika.lims.workflow.analysis import STATE_RETRACTED, STATE_REJECTED from bika.lims.workflow.duplicateanalysis import events from zope.interface import implements # A reference back to the original analysis from which this one was duplicated. Analysis = UIDReferenceField( 'Analysis', required=1, allowed_types=('Analysis', 'ReferenceAnalysis'), ) # TODO Analysis - Duplicates shouldn't have this attribute, only ReferenceAns ReferenceAnalysesGroupID = StringField('ReferenceAnalysesGroupID', ) schema = schema.copy() + Schema(( Analysis, ReferenceAnalysesGroupID, )) class DuplicateAnalysis(AbstractRoutineAnalysis): implements(IDuplicateAnalysis) security = ClassSecurityInfo() displayContentsTab = False schema = schema @security.public def getRequest(self): """Returns the Analysis Request of the original analysis. """
from bika.lims.workflow.duplicateanalysis import events from zope.interface import implements # A reference back to the original analysis from which this one was duplicated. Analysis = UIDReferenceField( 'Analysis', required=1, allowed_types=('Analysis', 'ReferenceAnalysis'), ) # TODO Analysis - Duplicates shouldn't have this attribute, only ReferenceAns ReferenceAnalysesGroupID = StringField( 'ReferenceAnalysesGroupID', ) schema = schema.copy() + Schema(( Analysis, ReferenceAnalysesGroupID, )) class DuplicateAnalysis(AbstractRoutineAnalysis): implements(IDuplicateAnalysis) security = ClassSecurityInfo() displayContentsTab = False schema = schema @security.public def getRequest(self): """Returns the Analysis Request of the original analysis. """