From 671db82648087c16decc7cb021f9095414cf9cb0 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Fri, 4 Apr 2014 15:51:09 +0200 Subject: [PATCH 1/2] Fix lp:1302500 by evaluating an empty context to avoid error --- web_context_tunnel/static/src/js/context_tunnel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web_context_tunnel/static/src/js/context_tunnel.js b/web_context_tunnel/static/src/js/context_tunnel.js index 0bbc924ec..fed408501 100644 --- a/web_context_tunnel/static/src/js/context_tunnel.js +++ b/web_context_tunnel/static/src/js/context_tunnel.js @@ -17,6 +17,7 @@ openerp.web_context_tunnel = function(instance) { } if (!v_context) { v_context = (this.field || {}).context || {}; + v_context = new instance.web.CompoundContext(v_context).set_eval_context(false); } return v_context; }; From 87eb04224c332eafc8fca242b5246f071d7a86b6 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Mon, 7 Apr 2014 15:38:02 +0200 Subject: [PATCH 2/2] remove set_eval_context as initialized in init --- web_context_tunnel/static/src/js/context_tunnel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_context_tunnel/static/src/js/context_tunnel.js b/web_context_tunnel/static/src/js/context_tunnel.js index fed408501..aab1d5acd 100644 --- a/web_context_tunnel/static/src/js/context_tunnel.js +++ b/web_context_tunnel/static/src/js/context_tunnel.js @@ -17,7 +17,7 @@ openerp.web_context_tunnel = function(instance) { } if (!v_context) { v_context = (this.field || {}).context || {}; - v_context = new instance.web.CompoundContext(v_context).set_eval_context(false); + v_context = new instance.web.CompoundContext(v_context); } return v_context; };