Commit 4a1e76ef authored by Yusei Tahara's avatar Yusei Tahara

erp5_property_sheets: Ignore documents in cancelled or deleted validation state.

parent 1a049135
......@@ -6,6 +6,18 @@
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_identity_criterion</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_range_criterion</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Documents should have one group or use one project as Follow Up relation</string> </value>
......@@ -14,7 +26,7 @@
<key> <string>expression</string> </key>
<value> <string encoding="cdata"><![CDATA[
python: len(object.getFollowUpList()) > 0 \t or len(object.getGroupList()) > 0 or \t\t object.getValidationState() == "embedded"
python: len(object.getFollowUpList()) > 0 \t or len(object.getGroupList()) > 0 or \t\t object.getValidationState() in ("embedded", "cancelled", "deleted")
]]></string> </value>
</item>
......@@ -33,4 +45,34 @@ python: len(object.getFollowUpList()) > 0 \t or len(object.getGroup
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment