This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
pfwbged.basecontent/src/pfwbged/basecontent/profiles/default/types/pfwb.invoice.xml

66 lines
2.3 KiB
XML

<?xml version="1.0"?>
<object name="pfwb.invoice" meta_type="Dexterity FTI" i18n:domain="plone"
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<!-- Basic metadata -->
<property name="title" i18n:translate="">Invoice</property>
<property name="description" i18n:translate=""></property>
<property name="icon_expr">string:${portal_url}/++resource++pfwb.invoice_icon.png</property>
<property name="global_allow">True</property>
<property name="allow_discussion">False</property>
<!-- Behaviors -->
<property name="behaviors" purge="True">
<element value="plone.app.content.interfaces.INameFromTitle"/>
<element value="plone.app.dexterity.behaviors.metadata.IBasic"/>
<element value="pfwbged.basecontent.behaviors.IPfwbDocument"/>
<element value="pfwbged.basecontent.behaviors.IPfwbIncomingMail"/>
<element value="pfwbged.basecontent.behaviors.IDeadline"/>
</property>
<!-- Contained Types -->
<property name="filter_content_types">True</property>
<property name="allowed_content_types" purge="False">
<element value="dmsmainfile"/>
<element value="dmsappendixfile"/>
<element value="information"/>
<element value="opinion"/>
<element value="task"/>
<element value="validation"/>
<element value="pfwbgedlink"/>
</property>
<!-- schema interface -->
<property name="schema">pfwbged.basecontent.types.IInvoice</property>
<!-- class used for content items -->
<property name="klass">pfwbged.basecontent.types.Invoice</property>
<!-- add permission -->
<property name="add_permission">cmf.AddPortalContent</property>
<!-- View information -->
<property name="default_view">view</property>
<property name="default_view_fallback">False</property>
<property name="view_methods">
<element value="view"/>
</property>
<!-- Method aliases -->
<alias from="(Default)" to="(dynamic view)"/>
<alias from="edit" to="@@edit"/>
<alias from="sharing" to="@@sharing"/>
<alias from="view" to="(selected layout)"/>
<!-- Actions -->
<action title="View" action_id="view" category="object" condition_expr=""
url_expr="string:${object_url}" visible="True">
<permission value="View"/>
</action>
<action title="Edit" action_id="edit" category="object" condition_expr=""
url_expr="string:${object_url}/edit" visible="True">
<permission value="Modify portal content"/>
</action>
</object>