From 2472adefc3e984ce0765aea038d058c270edcf55 Mon Sep 17 00:00:00 2001 From: Ian Wilson Date: Thu, 24 Sep 2009 23:58:33 -0700 Subject: [PATCH] Return dictionary when given no locations for issue1190. (transplanted from ce2a2525700133cba8b85f5c483147f3a8ccc21e) --- product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product.py b/product.py index d8961017e7..86edf7043e 100644 --- a/product.py +++ b/product.py @@ -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