Use stock_assign to compute product by location with future date

(transplanted from c934d6713653bd9a46ba1c1d566a172b9f055ccc)
This commit is contained in:
Cédric Krier committed 2009-10-28 09:17:16 +01:00
1 parent eb652b39b8
commit 9fbe8b54b6
1 file changed
+2 -1
+2 -1
View File
@@ -208,7 +208,8 @@ class Product(OSV):
'))'
today = date_obj.today(cursor, user, context=context)
state_date_vals = [
'done', 'assigned', today, today,
'done', context.get('stock_assign') and 'assigned' or 'done',
today, today,
'done', 'assigned', 'draft',
context['stock_date_end'], today,
context['stock_date_end'], today,