[FIX] Do not use node.parentElement (sorry all)

lp bug: https://launchpad.net/bugs/879797 fixed

bzr revid: fme@openerp.com-20111024092140-zvrtzmy9cppjyaj2
This commit is contained in:
Fabien Meghazi 2011-10-24 11:21:40 +02:00
parent 66c0054a51
commit 62c52bf0c2
1 changed files with 1 additions and 1 deletions

View File

@ -1048,7 +1048,7 @@ openerp.web.qweb = new QWeb2.Engine();
openerp.web.qweb.debug = (window.location.search.indexOf('?debug') !== -1);
openerp.web.qweb.format_text_node = function(s) {
// Note that 'this' is the Qweb Node of the text
var translation = this.node.parentElement.attributes['t-translation'];
var translation = this.node.parentNode.attributes['t-translation'];
if (translation && translation.value === 'off') {
return s;
}