diff --git a/web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js b/web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js index f46a18e8..6c8e365e 100644 --- a/web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js +++ b/web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js @@ -48,7 +48,7 @@ openerp.web_tree_many2one_clickable = function(instance, local) .first() .then(function(param) { if (param) { - self.use_many2one_clickable = ((param.value == 'True') or (param.value == 'true')); + self.use_many2one_clickable = (param.value.toLowerCase() == 'true'); } self.ir_option_clickable_loaded.resolve(); });