Don't add move_query to clause if empty for issue958
This commit is contained in:
1 parent
c25ca5e395
commit
103e78f72b
1 file changed
+3
-2
+3
-2
@@ -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 (" + \
|
||||
|
||||
Reference in new issue
Block a user