Reviewers: ,


Please review this at http://codereview.tryton.org/704004/

Affected files:
  M forecast.py


Index: forecast.py
===================================================================

--- a/forecast.py
+++ b/forecast.py
@@ -548,7 +548,7 @@
         Collect products for which there is an outgoing stream between
         the given location and the destination.
         """
-        if self.choose.products:
+        if getattr(self.choose, 'products', None):
             return {'products': [x.id for x in self.choose.products]}
         pbl = self._get_product_quantity()
         products = []
@@ -575,7 +575,7 @@
         for product in Product.browse(product_ids):
             prod2uom[product.id] = product.default_uom.id

-        if self.choose.products:
+        if getattr(self.choose, 'products', None):
             products = [x.id for x in self.choose.products]
         else:
             products = None



--
--
[email protected] mailing list

--- You received this message because you are subscribed to the Google Groups "tryton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to