[FIX] Fixed openerp.base.json_node_to_xml

bzr revid: fme@openerp.com-20110905141545-ntfbhdabmv98wklv
This commit is contained in:
Fabien Meghazi 2011-09-05 16:15:45 +02:00
parent dcff0ce930
commit 98e336c3ee
1 changed files with 1 additions and 1 deletions

View File

@ -774,7 +774,7 @@ openerp.base.json_node_to_xml = function(node, single_quote, indent) {
}
r += ' ' + attr + '="' + vattr + '"';
}
if (node.children.length) {
if (node.children && node.children.length) {
r += '>\n';
var childs = [];
for (var i = 0, ii = node.children.length; i < ii; i++) {