Commit 8cc5c860 authored by Łukasz Nowak's avatar Łukasz Nowak

Avoid duplicates.

Inner joins can return duplicate lines in some cases.
parent e87ff59e
......@@ -324,6 +324,7 @@
kw[\'select_dict\']=select_dict\n
kw[\'left_join_list\']=select_dict.keys()\n
kw[\'delivery_uid\']=None\n
kw[\'group_by\']=(\'uid\',)\n
if src__==0:\n
return context.portal_catalog(**kw)\n
else:\n
......
393
\ No newline at end of file
394
\ No newline at end of file
......@@ -64,6 +64,7 @@ kw.update(\n
select_dict=select_dict,\n
left_join_list=select_dict.keys(),\n
delivery_uid=None,\n
group_by=(\'uid\',),\n
**{\'movement.destination_uid\': person_uid}\n
)\n
movement_list = context.portal_catalog(**kw)\n
......
59
\ No newline at end of file
60
\ 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