Please review this at http://codereview.appspot.com/206083/show
Affected files: M product.py Index: product.py =================================================================== --- a/product.py +++ b/product.py @@ -363,7 +363,7 @@ if with_childs: query, args = location_obj.search(cursor, user, [ ('parent', 'child_of', location_ids), - ], context=context, query_string=True) + ], context=context, query_string=True, order=[]) where_clause = " IN (" + query + ") " where_vals = args else: @@ -414,7 +414,7 @@ "WHERE (%s) " \ "AND to_location %s "\ "GROUP BY to_location, product ,uom "\ - "UNION "\ + "UNION ALL "\ "SELECT from_location AS location, product, uom, "\ "-sum(quantity) AS quantity "\ "FROM stock_move " + product_template_join + \ -- tryton-dev@googlegroups.com mailing list