<?xml version="1.0"?>
<object name="Batch"
        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="">Batch</property>
 <property name="description"></property>
 <property name="content_icon">++resource++bika.lims.images/batch.png</property>
 <property name="content_meta_type">Batch</property>
 <property name="product">bika.lims</property>
 <property name="factory">addBatch</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="AnalysisRequest"/>
 </property>
 <property name="allow_discussion">False</property>
 <property name="default_view_fallback">False</property>

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

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

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

 <action title="Analysis Requests"
         action_id="analysisrequests"
         category="object"
         condition_expr=""
         icon_expr="string:${portal_url}/++resource++bika.lims.images/analyissrequest.png"
         link_target=""
         url_expr="string:${object_url}/analysisrequests"
         i18n:attributes="title"
         i18n:domain="plone"
         visible="True">
  <permission value="View"/>
 </action>

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


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

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

 <action title="Sticker"
         action_id="sticker"
         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;filter_by_type=batch"
         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?filter_by_type=batch"
          i18n:attributes="title"
          visible="True">
      <permission value="View"/>
 </action>
</object>
