在写ODOO用户 自定义分组模块时用到了,这一部分,因为不熟练所以浪费了很多时间
模块写完了 就总结一下说说自己的感想
 
 instance.web.SearchViewDrawer=instance.web.Widget.extend{()}
这个对象相当于一个widget 也就是一个widget 固定的显示出来 当点击搜索框中的小三角的时候就弹出来
从这个方法中 add_common_inputs 可以看出来这个search的 共包含了这几个部分
        // add custom filters to this.inputs
        this.custom_filters = new instance.web.search.CustomFilters(this);
        // add Filters to this.inputs, need view.controls filled
        (new instance.web.search.Filters(this));
        (new instance.web.search.SaveFilter(this, this.custom_filters));
        // add Advanced to this.inputs
        (new instance.web.search.Advanced(this))
 
每new 一个对象 就相当于 执行一次插入的操作 把一个对象 所包含的东西插入到 固定的位置
在 
instance.web.SearchView 对象中new 了一个对象 instance.web.SearchViewDrawer