expected a character buffer object
When entering a date field in the tryton client the following exception is raised:
Traceback (most recent call last):
File "/home/sergi/nan/projectes/virtualenv/tests/tryton/tryton/common/datetime_.py", line 154, in focus_out
self.parse()
File "/home/sergi/nan/projectes/virtualenv/tests/tryton/tryton/common/datetime_.py", line 89, in parse
date = date_parse(text, self.__format).date()
File "/home/sergi/nan/projectes/virtualenv/tests/tryton/tryton/common/datetime_.py", line 26, in date_parse
monthfirst = formatted_date.index(7) <= 1
TypeError: expected a character buffer object
Steps to reproduce:
1. Install account module
2. Open Financial > Configuration -> Fiscalyears.
3. Enter '160101' or '01/01/2016' on start date.
This error was introduced on 44d7f51c9e85 as updating to an older revision fixes the problem.