[FIX] Fixed a form layout bug. Labels does not honnor @colspan

bzr revid: fme@openerp.com-20110727143159-1sn1yff2dagix9ke
This commit is contained in:
Fabien Meghazi
2011-07-27 16:31:59 +02:00
parent 9f9e2d53f9
commit 366f3ea01f
+2 -1
View File
@@ -770,11 +770,12 @@ openerp.base.form.WidgetLabel = openerp.base.form.Widget.extend({
if (this.node.tag == 'label' && this.node.attrs.colspan) {
this.is_field_label = false;
this.template = "WidgetParagraph";
this.colspan = this.node.attrs.colspan;
} else {
this.is_field_label = true;
this.template = "WidgetLabel";
this.colspan = 1;
}
this.colspan = 1;
},
render: function () {
if (this['for'] && this.type !== 'label') {