Commit 0703857a authored by Łukasz Nowak's avatar Łukasz Nowak

Purchase Packing Lists shall have no simulation.

parent 00fd86a5
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Category Related Membership Arity Constraint" module="erp5.portal_type"/>
</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>constraint_base_category</string> </key>
<value>
<tuple>
<string>causality</string>
</tuple>
</value>
</item>
<item>
<key> <string>constraint_portal_type</string> </key>
<value> <string>python: (\'Applied Rule\',)</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Purchase Packing Lists shall have no related simulation.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>no_applied_rule_constraint</string> </value>
</item>
<item>
<key> <string>max_arity</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>min_arity</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Category Related Membership Arity Constraint</string> </value>
</item>
</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>
492
\ No newline at end of file
493
\ No newline at end of file
......@@ -75,6 +75,10 @@ else:\n
limit = 1\n
always_remove = False\n
\n
if delivery.getPortalType() == \'Purchase Packing List\':\n
limit = 0\n
always_remove = True\n
\n
if root_applied_rule_count <= limit:\n
# nothing to do\n
return\n
......
838
\ No newline at end of file
839
\ No newline at end of file
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