date_parse function of Tryton does not work with the Thai calendar
The line:
yearfirst = datetime.date(1988, 8, 16).strftime(format_).index('88') <= 2
raise ValueError when using a thai calendar because once the 1988-08-16 is formated with '%x' in the thai locale the year 1988 is transformed in 2531.