Browse Source

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 defined
pull/125/head
Sylvain LE GAL 10 years ago
parent
commit
123bfbcb4d
  1. 2
      web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js

2
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) {
if (param) {
self.use_many2one_clickable = (param.value == 'true');
}
self.ir_option_clickable_loaded.resolve();
});
return this.ir_option_clickable_loaded;

Loading…
Cancel
Save