Fix when stock_date_end is not set when calling products_by_location

This commit is contained in:
Bertrand Chenal committed 2008-09-10 18:10:53 +02:00
1 parent 03facd4a31
commit 58bb45a094
1 file changed
+1 -1
+1 -1
View File
@@ -114,7 +114,7 @@ class Product(OSV):
move_query, move_val = rule_obj.domain_get(cursor, user, 'stock.move')
if not context.get('stock_date_end'):
state_date_clause = ""
state_date_clause = "True"
state_date_vals = []
else:
# date end in the past: filter on state done for the moves