frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
21.32k stars 7.27k forks source link

[Filters] Error on delivery note list #9547

Closed rohitwaghchaure closed 7 years ago

rohitwaghchaure commented 7 years ago
  File "/home/frappe/benches/bench-2017-06-29/apps/frappe/frappe/model/db_query.py", line 323, in prepare_filter_condition
    value = getdate(f.value).strftime("%Y-%m-%d")
  File "/home/frappe/benches/bench-2017-06-29/apps/frappe/frappe/utils/data.py", line 40, in getdate
    return parser.parse(string_date).date()
  File "/home/frappe/benches/bench-2017-06-29/env/lib/python2.7/site-packages/dateutil/parser.py", line 1168, in parse
    return DEFAULTPARSER.parse(timestr, **kwargs)
  File "/home/frappe/benches/bench-2017-06-29/env/lib/python2.7/site-packages/dateutil/parser.py", line 556, in parse
    res, skipped_tokens = self._parse(timestr, **kwargs)
  File "/home/frappe/benches/bench-2017-06-29/env/lib/python2.7/site-packages/dateutil/parser.py", line 675, in _parse
    l = _timelex.split(timestr)         # Splits the timestr into tokens
  File "/home/frappe/benches/bench-2017-06-29/env/lib/python2.7/site-packages/dateutil/parser.py", line 192, in split
    return list(cls(s))
  File "/home/frappe/benches/bench-2017-06-29/env/lib/python2.7/site-packages/dateutil/parser.py", line 61, in __init__
    '{itype}'.format(itype=instream.__class__.__name__))
TypeError: Parser must be a string or character stream, not list
rohitwaghchaure commented 7 years ago

Fixed via PR https://github.com/frappe/frappe/pull/3589