Commit 6bdc6943 authored by Łukasz Nowak's avatar Łukasz Nowak

Show only from validated open sale order.

parent 0343f865
...@@ -53,15 +53,9 @@ ...@@ -53,15 +53,9 @@
<value> <string>portal = context.getPortalObject()\n <value> <string>portal = context.getPortalObject()\n
person_uid = portal.ERP5Site_getPropertyFromAuthenticatedMemberPersonValue(\'uid\')\n person_uid = portal.ERP5Site_getPropertyFromAuthenticatedMemberPersonValue(\'uid\')\n
\n \n
open_order_uid_list = [x.uid for x in portal.portal_catalog(\n
portal_type="Open Sale Order",\n
simulation_state="started",\n
default_destination_section_uid=person_uid)\n
]\n
\n
return portal.portal_catalog(\n return portal.portal_catalog(\n
portal_type="Open Sale Order Line",\n portal_type="Open Sale Order Line",\n
parent_uid=open_order_uid_list,\n parent_uid=portal.portal_catalog.getResultValue(portal_type=\'Open Sale Order\', default_destination_decision_uid=person_uid, validation_state=\'validated\').getUid(),\n
**kw\n **kw\n
)\n )\n
</string> </value> </string> </value>
......
335 336
\ 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