[FIX] correctly format result of date picker, otherwise search blows up

bzr revid: xmo@openerp.com-20110401152649-mpjug9jdp4qvap0i
This commit is contained in:
Xavier Morel 2011-04-01 17:26:49 +02:00
parent ac649d5ccc
commit b42333b86f
1 changed files with 3 additions and 1 deletions

View File

@ -666,7 +666,9 @@ openerp.base.search.DateField = openerp.base.search.Field.extend(
*/
start: function () {
this._super();
this.$element.find('input').datepicker();
this.$element.find('input').datepicker({
dateFormat: 'yy-mm-dd'
});
},
stop: function () {
this.$element.find('input').datepicker('destroy');