mirror of https://github.com/OCA/web.git
Merge pull request #113 from pedrobaeza/8.0-web_tree_many2one_clickable-fix
[FIX] web_tree_many2one_clickable: Don't complain if there is no parameter definedpull/125/head
commit
123bfbcb4d
|
@ -47,7 +47,9 @@ openerp.web_tree_many2one_clickable = function(instance, local)
|
||||||
.filter([['key', '=', 'web_tree_many2one_clickable.default']])
|
.filter([['key', '=', 'web_tree_many2one_clickable.default']])
|
||||||
.first()
|
.first()
|
||||||
.then(function(param) {
|
.then(function(param) {
|
||||||
|
if (param) {
|
||||||
self.use_many2one_clickable = (param.value == 'true');
|
self.use_many2one_clickable = (param.value == 'true');
|
||||||
|
}
|
||||||
self.ir_option_clickable_loaded.resolve();
|
self.ir_option_clickable_loaded.resolve();
|
||||||
});
|
});
|
||||||
return this.ir_option_clickable_loaded;
|
return this.ir_option_clickable_loaded;
|
||||||
|
|
Loading…
Reference in New Issue