From 0d7c5b07c204de82aa80c77ed687d12ed547a1b5 Mon Sep 17 00:00:00 2001 From: Antonio Espinosa Date: Thu, 25 Jun 2015 08:36:55 +0200 Subject: [PATCH] Use toLowerCase() instead another comparator --- .../static/src/js/web_tree_many2one_clickable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); });