[FIX] clear value of date and datetime widget in search view on clear button.

lp bug: https://launchpad.net/bugs/901665 fixed

bzr revid: ysa@tinyerp.com-20111209123514-c54e5ea9tqjuc34s
This commit is contained in:
Yogesh (OpenERP) 2011-12-09 18:05:14 +05:30
parent 3cb695540e
commit 7010922d50
1 changed files with 10 additions and 5 deletions

View File

@ -409,6 +409,11 @@ openerp.web.SearchView = openerp.web.Widget.extend(/** @lends openerp.web.Search
this.$element.find('table:last').hide();
$('.searchview_extended_groups_list').empty();
_.each(this.inputs, function (input) {
if(input.datewidget && input.datewidget.value) {
input.datewidget.value = false;
}
});
setTimeout(this.on_clear, 0);
},
/**