"app/views/groups/show.html.haml" did not exist on "6fa95a3d34838bf80d4fe69c9605640806d346ac"
Commit d41301d0 authored by Vincent Pelletier's avatar Vincent Pelletier

buildSQLQuery is expected to generate a join on catalog table...

buildSQLQuery is expected to generate a join on catalog table (Delivery_zGetTotal uses catalog table but does not have it in its "from" expression).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24953 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b3d8eb67
......@@ -137,12 +137,11 @@ class InventoryListBrain(ZSQLBrain):
Return the quantity of the current delivery for a resource
"""
total_kw = {
'explanation_uid': self.getExplanationUid(),
'resource_uid': self.resource_uid,
'variation_text': self.variation_text,
'movement.explanation_uid': self.getExplanationUid(),
'movement.resource_uid': self.resource_uid,
'movement.variation_text': self.variation_text,
}
total_kw.update(self.portal_catalog.buildSQLQuery(query_table='movement',
**total_kw))
total_kw.update(self.portal_catalog.buildSQLQuery(**total_kw))
result = self.Delivery_zGetTotal(**total_kw)
inventory = None
if len(result) > 0:
......
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