<?xml version="1.0"?>
<object name="Sample"
        meta_type="Factory-based Type Information with dynamic views"
        xmlns:i18n="http://xml.zope.org/namespaces/i18n"
        i18n:domain="plone"
        purge="True">
 <property name="title" i18n:translate="">Sample</property>
 <property name="description"></property>
 <property name="content_icon">++resource++bika.lims.images/sample.png</property>
 <property name="content_meta_type">Sample</property>
 <property name="product">bika.lims</property>
 <property name="factory">addSample</property>
 <property name="add_view_expr"></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="SamplePartition"/>
 </property>
 <property name="allow_discussion">False</property>
 <property name="default_view_fallback">False</property>
 <property name="default_view">base_view</property>

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

 <action title="View"
         action_id="view"
         category="object"
         condition_expr=""
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/base_view"
         i18n:attributes="title"
         i18n:domain="plone"
         visible="True">
   <permission value="View"/>
 </action>

 <action title="Edit"
         action_id="edit"
         category="object"
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/base_edit"
         i18n:attributes="title"
         i18n:domain="plone"
         visible="True">
    <permission value="BIKA: Edit Sample"/>
 </action>

 <action title="Sample Partitions"
         action_id="partitions"
         category="object"
         condition_expr="python:context.bika_setup.getShowPartitions()"
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/partitions"
         i18n:attributes="title"
         i18n:domain="plone"
         visible="True">
   <permission value="BIKA: Manage Samples"/>
 </action>

 <action title="Analyses"
         action_id="analyses"
         category="object"
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/analyses"
         i18n:attributes="title"
         i18n:domain="plone"
         visible="True">
   <permission value="BIKA: Manage Samples"/>
 </action>

<!-- <action title="Labels"-->
<!--        action_id="labels"-->
<!--        category="object"-->
<!--        condition_expr=""-->
<!--        icon_expr="string:${object_url}/++resource++bika.lims.images/labels.png"-->
<!--        link_target=""-->
<!--        url_expr="string:${object_url}/labels"-->
<!--        i18n:attributes="title"-->
<!--        visible="True">-->
<!--   <permission value="View"/>-->
<!-- </action>-->

 <action title="Log"
         action_id="log"
         category="object"
         condition_expr=""
         url_expr="string:${object_url}/log"
         i18n:attributes="title"
         visible="True">
     <permission value="BIKA: View Log Tab"/>
 </action>


<action title="Large Sticker"
        action_id="sticker_large"
        category="document_actions"
        condition_expr=""
        icon_expr="string:${object_url}/++resource++bika.lims.images/sticker_large.png"
        link_target=""
        url_expr="string:${object_url}/sticker?autoprint=1&amp;size=large"
        i18n:attributes="title"
        visible="True">
   <permission value="View"/>
</action>

<action title="Small Sticker"
        action_id="sticker_small"
        category="document_actions"
        condition_expr=""
        icon_expr="string:${object_url}/++resource++bika.lims.images/sticker_small.png"
        link_target=""
        url_expr="string:${object_url}/sticker?autoprint=1&amp;size=small"
        i18n:attributes="title"
        visible="True">
   <permission value="View"/>
</action>

<action title="Stickers preview"
        action_id="sticker_preview"
        category="document_actions"
        condition_expr=""
        icon_expr="string:${object_url}/++resource++bika.lims.images/sticker_preview.png"
        link_target="Stickers preview"
        url_expr="string:${object_url}/sticker"
        i18n:attributes="title"
        visible="True">
    <permission value="View"/>
</action>
</object>
