<?xml version="1.0"?>
<object name="Instrument"
        meta_type="Factory-based Type Information with dynamic views"
        xmlns:i18n="http://xml.zope.org/namespaces/i18n"
        i18n:domain="senaite.core"
        purge="True">

 <property name="title" i18n:translate="">Instrument</property>
 <property name="description"></property>
 <property name="content_icon">senaite_theme/icon/instrument</property>
 <property name="content_meta_type">Instrument</property>
 <property name="product">bika.lims</property>
 <property name="factory">addInstrument</property>
 <property name="add_view_expr">string:${object/absolute_url}/base_edit</property>
 <property name="link_target"></property>
 <property name="global_allow">False</property>
 <property name="filter_content_types">True</property>
 <property name="allowed_content_types">
    <element value="InstrumentCalibration"/>
    <element value="InstrumentCertification"/>
    <element value="InstrumentMaintenanceTask"/>
    <element value="InstrumentScheduledTask"/>
    <element value="InstrumentValidation"/>
    <element value="Analysis"/>
    <element value="ReferenceAnalysis"/>
    <element value="Multifile"/>
    <element value="AutoImportLog"/>
 </property>
 <property name="allow_discussion">False</property>
 <property name="default_view_fallback">False</property>

 <alias from="(Default)" to="base_view"/>
 <alias from="view" to="base_view"/>
 <alias from="edit" to="base_edit"/>

 <action title="View"
         action_id="view"
         category="object"
         condition_expr=""
         url_expr="string:${object_url}"
         i18n:attributes="title"
         i18n:domain="senaite.core"
         visible="True">
  <permission value="View"/>
 </action>

 <action title="Edit"
         action_id="edit"
         category="object"
         condition_expr=""
         url_expr="string:${object_url}/edit"
         i18n:attributes="title"
         i18n:domain="senaite.core"
         visible="True">
  <permission value="Modify portal content"/>
 </action>

 <action title="QC Results"
         action_id="referenceanalyses"
         category="object"
         url_expr="string:${object_url}/referenceanalyses"
         i18n:attributes="title"
         i18n:domain="senaite.core"
         visible="True">
    <permission value="Modify portal content"/>
 </action>

 <action title="Calibrations"
        action_id="calibrations"
        category="object"
        condition_expr=""
        icon_expr="string:${portal_url}/images/instrumentcalibration.png"
        url_expr="string:${object_url}/calibrations"
        i18n:attributes="title"
        visible="True">
    <permission value="Modify portal content"/>
 </action>

 <action title="Calibration Certificates"
         action_id="certifications"
         category="object"
         url_expr="string:${object_url}/certifications"
         i18n:attributes="title"
         i18n:domain="senaite.core"
         visible="True">
    <permission value="Modify portal content"/>
 </action>

 <action title="Maintenance"
        action_id="maintenance"
        category="object"
        condition_expr=""
        icon_expr="string:${portal_url}/images/instrumentmaintenance.png"
        url_expr="string:${object_url}/maintenance"
        i18n:attributes="title"
        visible="False">
    <permission value="Modify portal content"/>
 </action>

 <action title="Validations"
        action_id="validations"
        category="object"
        condition_expr=""
        icon_expr="string:${portal_url}/images/instrumentvalidation.png"
        url_expr="string:${object_url}/validations"
        i18n:attributes="title"
        visible="True">
    <permission value="Modify portal content"/>
 </action>

  <action title="Schedule"
        action_id="schedule"
        category="object"
        condition_expr=""
        icon_expr="string:${portal_url}/images/instrumentschedule.png"
        url_expr="string:${object_url}/schedule"
        i18n:attributes="title"
        visible="False">
    <permission value="Modify portal content"/>
  </action>

  <action title="Documents"
        action_id="instrumentmultifile"
        category="object"
        condition_expr=""
        icon_expr="string:${portal_url}/images/instrumentcertification.png"
        url_expr="string:${object_url}/multifile"
        i18n:attributes="title"
        visible="True">
    <permission value="Modify portal content"/>
 </action>

 <action title="Auto-Import Logs"
       action_id="instrumentautoimportlogs"
       category="object"
       condition_expr=""
       url_expr="string:${object_url}/instrumentautoimportlogs"
       i18n:attributes="title"
       visible="True">
   <permission value="Modify portal content"/>
</action>
</object>
