Commit af7fbc0d authored by Łukasz Nowak's avatar Łukasz Nowak

getResultValue does not work in proxied script.

parent d1373ffc
......@@ -69,13 +69,12 @@ for sale_packing_list_line in portal.portal_catalog(\n
raise ValueError(sale_packing_list_line.getPath())\n
all_delivered = False\n
if all_delivered:\n
open_order_line = portal.portal_catalog.getResultValue(\n
for open_order_line in portal.portal_catalog(\n
default_aggregate_uid=context.getUid(),\n
portal_type=\'Open Sale Order Line\',\n
validation_state=\'validated\')\n
if open_order_line is not None:\n
# XXX: Mahybe system shall *NOT* work without Open Sale Orders\n
open_order_line.getParentValue().getDestinationDecisionValue().Person_updateOpenOrder(remove_id=open_order_line.getId())\n
validation_state=\'validated\'):\n
if open_order_line.getValidationState() == \'validated\':\n
open_order_line.getParentValue().getDestinationDecisionValue().Person_updateOpenOrder(remove_id=open_order_line.getId())\n
</string> </value>
</item>
<item>
......
610
\ No newline at end of file
611
\ 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