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

getResultValue does not work in proxied script.

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