Commit dd78b72e authored by Romain Courteaud's avatar Romain Courteaud

Provide compatibility with previous data.

parent a1df26c9
...@@ -67,7 +67,7 @@ category_list = []\n ...@@ -67,7 +67,7 @@ category_list = []\n
if obj is None:\n if obj is None:\n
return []\n return []\n
\n \n
movement_portal_type = "Sale Order Line"\n movement_portal_type = ["Sale Packing List Line", "Sale Order Line"]\n
\n \n
portal = obj.getPortalObject()\n portal = obj.getPortalObject()\n
\n \n
...@@ -77,7 +77,9 @@ parent_url_list = []\n ...@@ -77,7 +77,9 @@ parent_url_list = []\n
for movement in portal.portal_catalog(\n for movement in portal.portal_catalog(\n
portal_type=movement_portal_type,\n portal_type=movement_portal_type,\n
strict_aggregate_uid=obj.getUid(),\n strict_aggregate_uid=obj.getUid(),\n
simulation_state=(\'ordered\', \'confirmed\'),\n default_resource_uid=portal.restrictedTraverse(portal.portal_preferences.getPreferredInstanceSetupResource()).getUid(),\n
# simulation_state=(\'ordered\', \'confirmed\', \'started\', \'stopped\'),\n
limit=1,\n
):\n ):\n
item = movement.getDestinationSectionValue(portal_type="Person")\n item = movement.getDestinationSectionValue(portal_type="Person")\n
if item is not None:\n if item is not None:\n
......
392 393
\ 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