forked from Techsystech/web
Adujst search_more option to accept True or true values.
parent
b22894cc21
commit
7a81b2fc32
|
@ -62,8 +62,10 @@ openerp.web_m2x_options = function (instance) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// add options search_more to force enable or disable search_more button
|
// add options search_more to force enable or disable search_more button
|
||||||
if(typeof this.options.search_more === 'boolean') {
|
var search_more_defined = !_.isUndefined(this.options.search_more)
|
||||||
this.search_more = this.options.search_more
|
if((search_more_defined && this.options.search_more.toLowerCase() === "true") ||
|
||||||
|
!(search_more_defined && this.options.search_more.toLowerCase() === "false") && (self.view.ir_options['web_m2x_options.search_more'] === "True")) {
|
||||||
|
this.search_more = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// add options field_color and colors to color item(s) depending on field_color value
|
// add options field_color and colors to color item(s) depending on field_color value
|
||||||
|
|
Loading…
Reference in New Issue