[ADD] Backward compatibility layer for 7.0

bzr revid: fme@openerp.com-20130114135145-z51tp204vybz0dr3
This commit is contained in:
Fabien Meghazi 2013-01-14 14:51:45 +01:00
parent 8c1f9dc490
commit 31237c0b58
1 changed files with 7 additions and 0 deletions

View File

@ -310,6 +310,13 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea
* @param {Boolean} [options.disable_custom_filters=false] do not load custom filters from ir.filters
*/
init: function(parent, dataset, view_id, defaults, options) {
// Backward compatibility - Can be removed when forward porting
if (Object(options) !== options) {
options = {
hidden: !!options
};
}
// End of Backward compatibility
this.options = _.defaults(options || {}, {
hidden: false,
disable_custom_filters: false,