Re-apply chunck 6f0af488dd35
This commit is contained in:
1 parent
7a2f21f2b8
commit
703cd5131d
1 file changed
+5
-5
+5
-5
@@ -574,13 +574,13 @@ class OpenLocation(Wizard):
|
||||
context=context)
|
||||
res = act_window_obj.read(cursor, user, model_data.db_id, context=context)
|
||||
|
||||
if context == None: context = {}
|
||||
context['product'] = data['id']
|
||||
ctx = {}
|
||||
ctx['product'] = data['id']
|
||||
if data['form']['forecast_date']:
|
||||
context['stock_date_end'] = data['form']['forecast_date']
|
||||
ctx['stock_date_end'] = data['form']['forecast_date']
|
||||
else:
|
||||
context['stock_date_end'] = datetime.date.max
|
||||
res['context'] = str(context)
|
||||
ctx['stock_date_end'] = datetime.date.max
|
||||
res['context'] = str(ctx)
|
||||
|
||||
return res
|
||||
|
||||
|
||||
Reference in new issue
Block a user