Commit 1dbdf3b7 authored by Jérome Perrin's avatar Jérome Perrin

don't pass stock.date if it's empty.

This will only workf wirh erp5_core r30221


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30222 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c2d18b3f
......@@ -588,7 +588,8 @@ class SimulationTool(BaseTool):
elif at_date :
date_dict.setdefault('query', []).append(at_date)
date_dict['range'] = 'ngt'
column_value_dict['date'] = date_dict
if date_dict:
column_value_dict['date'] = date_dict
else:
column_value_dict['date'] = {'query': [to_date], 'range': 'ngt'}
column_value_dict['mirror_date'] = {'query': [from_date], 'range': 'nlt'}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment