Return dictionary when given no locations for issue1190.

(transplanted from ce2a2525700133cba8b85f5c483147f3a8ccc21e)
This commit is contained in:
Ian Wilson committed 2009-09-24 23:58:33 -07:00
1 parent 498e266b8d
commit 2472adefc3
1 file changed
+1 -1
+1 -1
View File
@@ -135,7 +135,7 @@ class Product(OSV):
date_obj = self.pool.get('ir.date')
if not location_ids:
return []
return {}
if context is None:
context= {}
# Skip warehouse location in favor of their storage location