Reviewers: ced,
Description:
Avoid to open all the products when the user double-clic on a location
(of the stock locations tree). This is much faster when there is a lot
of product in the DB.
Please review this at http://codereview.appspot.com/2192047/
Affected files:
M product.py
Index: product.py
===================================================================
--- a/product.py
+++ b/product.py
@@ -130,7 +130,7 @@
pbl = self.products_by_location(
cursor, user, location_ids=context['locations'],
with_childs=True,
- skip_zero=False, context=context).iteritems()
+ skip_zero=True, context=context).iteritems()
processed_lines = []
for (location, product), quantity in pbl:
--
[email protected] mailing list