odoo/odoo — pull request #3238 by rha-odoo (2014-10-22 10:21:26+00:00)
Title: [FIX] web: search bar does not suggest date field format based on user's...

... locale and always shows based on mmddyy using Date.parse, opw:615276

searchbar always suggests entered date in mmddyy format and not in user's language/locale. it is because in search.js, it directly calls Date.parse() instead of parse_value() , function parse_value() automatically parses the date based on user's locale.

Steps to reproduce:
- add field birthday in the hr.employee search view
- set English language locale as %d/%m/%Y
- search date, 10/11/2014 i.e. 10th November 2014
- search bar will suggest 11/10/2014

One should always search with proper format, searching date without any format i.e. 10112014 will always show 11/10/2014 because it won't match format for parseExact() and Date.parse() uses mmddyy by default.
I think this can be improved into master.