Commit 65a30e82 authored by Jérome Perrin's avatar Jérome Perrin

another fix due to side change in aggregate relation.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10079 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d7976bdf
......@@ -72,8 +72,10 @@
"""\n
from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
transmission_sheet = sci[\'object\']\n
portal = transmission_sheet.getPortalObject()\n
\n
if not transmission_sheet.getAggregateList():\n
if not transmission_sheet.getRelatedAggregateList(\n
portal_type=portal.getPortalInvoiceTypeList()):\n
raise ValidationFailed(\'No Invoices selected.\')\n
</string> </value>
</item>
......@@ -83,6 +85,12 @@ if not transmission_sheet.getAggregateList():\n
<none/>
</value>
</item>
<item>
<key> <string>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
......@@ -123,6 +131,7 @@ if not transmission_sheet.getAggregateList():\n
<string>_getitem_</string>
<string>transmission_sheet</string>
<string>_getattr_</string>
<string>portal</string>
</tuple>
</value>
</item>
......@@ -150,4 +159,25 @@ if not transmission_sheet.getAggregateList():\n
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
5
\ No newline at end of file
6
\ 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