Browse Source

[FIX] web_tree_many2one_clickable: Don't complain if there is no parameter defined

pull/113/head
Pedro M. Baeza 10 years ago
parent
commit
7e67aaa627
  1. 4
      web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js

4
web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js

@ -47,7 +47,9 @@ openerp.web_tree_many2one_clickable = function(instance, local)
.filter([['key', '=', 'web_tree_many2one_clickable.default']])
.first()
.then(function(param) {
self.use_many2one_clickable = (param.value == 'true');
if (param) {
self.use_many2one_clickable = (param.value == 'true');
}
self.ir_option_clickable_loaded.resolve();
});
return this.ir_option_clickable_loaded;

Loading…
Cancel
Save