[ADD] Backward compatibility layer for 7.0
bzr revid: fme@openerp.com-20130114135145-z51tp204vybz0dr3
This commit is contained in:
parent
8c1f9dc490
commit
31237c0b58
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue