Fix lp:1302500 by evaluating an empty context to avoid error

pull/2/head
Yannick Vaucher 2014-04-04 15:51:09 +02:00
parent 70b5d4f754
commit 671db82648
1 changed files with 1 additions and 0 deletions

View File

@ -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;
};