diff options
| author | Fabien Meghazi <fme@openerp.com> | 2011-07-27 16:31:59 +0200 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2011-07-27 16:31:59 +0200 |
| commit | 366f3ea01f59ba414dd56c5e831f2ced95e847ce (patch) | |
| tree | 373e45a7617ce5944717f6cc484f8de72268f0cf /addons/base/static/src/js | |
| parent | 9f9e2d53f9c509b17cfb8939cb35c1815a5e383d (diff) | |
[FIX] Fixed a form layout bug. Labels does not honnor @colspan
bzr revid: fme@openerp.com-20110727143159-1sn1yff2dagix9ke
Diffstat (limited to 'addons/base/static/src/js')
| -rw-r--r-- | addons/base/static/src/js/form.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/base/static/src/js/form.js b/addons/base/static/src/js/form.js index a8c6cbdb614..d68f75d0549 100644 --- a/addons/base/static/src/js/form.js +++ b/addons/base/static/src/js/form.js @@ -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') { |
