Commit 6af7f074 authored by Romain Courteaud's avatar Romain Courteaud

Select only movement without delivery relation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2910 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bcaf3bb4
...@@ -138,6 +138,10 @@ class DeliveryBuilder(XMLObject, Amount, Predicate): ...@@ -138,6 +138,10 @@ class DeliveryBuilder(XMLObject, Amount, Predicate):
movement_list = select_method(kw) movement_list = select_method(kw)
sql_query = select_method(kw, src__=1) sql_query = select_method(kw, src__=1)
# XXX Use buildSQLQuery will be better
movement_list = filter(lambda x: x.getDeliveryRelatedValueList()==[],
movement_list)
# XXX Add predicate test # XXX Add predicate test
return movement_list return movement_list
......
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