Don't add move_query to clause if empty for issue958

This commit is contained in:
Cédric Krier committed 2009-04-09 11:31:27 +02:00
1 parent c25ca5e395
commit 103e78f72b
1 file changed
+3 -2
+3 -2
View File
@@ -334,8 +334,9 @@ class Product(ModelSQL, ModelView):
",".join(["%s" for i in location_ids]) + ") "
where_vals = location_ids[:]
where_clause += " AND " + move_query + " "
where_vals += move_val
if move_query:
where_clause += " AND " + move_query + " "
where_vals += move_val
if product_ids:
where_clause += "AND product in (" + \