[FIX] attributes handling on HTML nodes

bzr revid: xmo@openerp.com-20111221103750-wemo7rszah8vvvxa
This commit is contained in:
Xavier Morel 2011-12-21 11:37:50 +01:00
parent 7af1a8662c
commit c49498e0a4
1 changed files with 2 additions and 1 deletions

View File

@ -3070,7 +3070,8 @@ openerp.web.form.WidgetHtml = openerp.web.form.Widget.extend({
[child.attrs.widget, type.type, child.tag])) (self.view, child);
$into.append(widget.render());
} else {
var $child = $(document.createElement(child.tag), child.attrs)
var $child = $(document.createElement(child.tag))
.attr(child.attrs)
.appendTo($into);
self.render_children(child, $child);
}