Commit 24dc1e3b authored by Fabien Morin's avatar Fabien Morin

buildSQLQuery is also called in portal_catalog


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26944 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5b663449
...@@ -122,7 +122,6 @@ class DeliveryBuilder(OrderBuilder): ...@@ -122,7 +122,6 @@ class DeliveryBuilder(OrderBuilder):
if self.getResourcePortalType() not in ('', None): if self.getResourcePortalType() not in ('', None):
kw['resourceType'] = self.getResourcePortalType() kw['resourceType'] = self.getResourcePortalType()
if self.simulation_select_method_id in ['', None]: if self.simulation_select_method_id in ['', None]:
kw.update(self.portal_catalog.buildSQLQuery(**kw))
movement_list = [x.getObject() for x in self.portal_catalog(**kw)] movement_list = [x.getObject() for x in self.portal_catalog(**kw)]
else: else:
select_method = getattr(self.getPortalObject(), self.simulation_select_method_id) select_method = getattr(self.getPortalObject(), self.simulation_select_method_id)
......
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