summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2011-10-11 13:54:24 +0200
committerFabien Meghazi <fme@openerp.com>2011-10-11 13:54:24 +0200
commita1eadf8a600bb8bcf1facee1a03758f07b2db01b (patch)
tree2d417131d4da7766d20d3cbe3e4e607343073e73
parent039e42110f6abeeb92bdd522d0c029fa5a88a8af (diff)
[IMP] Form frame : Force nolabel='1' when widget='statusbar'
Hardcoded exception but this way, we retain backward compatibility between addons & old clients bzr revid: fme@openerp.com-20111011115424-rme5btg594euln2v
-rw-r--r--addons/web/static/src/js/view_form.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index ad94286e102..451360d3d0c 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -756,6 +756,10 @@ openerp.web.form.WidgetFrame = openerp.web.form.Widget.extend({
var type = {};
if (node.tag == 'field') {
type = this.view.fields_view.fields[node.attrs.name] || {};
+ if (node.attrs.widget == 'statusbar') {
+ // This way we can retain backward compatibility between addons and old clients
+ node.attrs.nolabel = '1';
+ }
}
var widget = new (this.view.registry.get_any(
[node.attrs.widget, type.type, node.tag])) (this.view, node);