From abc31b611b3fe86e5362fe294a1b187547c2aa93 Mon Sep 17 00:00:00 2001 From: Antonio Espinosa Date: Wed, 24 Jun 2015 12:06:02 +0200 Subject: [PATCH 1/2] [FIX] Allow set web_tree_many2one_clickable.default as True --- .../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 fef50647..f46a18e8 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'); + self.use_many2one_clickable = ((param.value == 'True') or (param.value == 'true')); } self.ir_option_clickable_loaded.resolve(); }); From 0d7c5b07c204de82aa80c77ed687d12ed547a1b5 Mon Sep 17 00:00:00 2001 From: Antonio Espinosa Date: Thu, 25 Jun 2015 08:36:55 +0200 Subject: [PATCH 2/2] 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(); });