summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2012-06-04 13:44:33 +0200
committerFabien Meghazi <fme@openerp.com>2012-06-04 13:44:33 +0200
commit1317543d72ed42ab079dbced6209388200532b13 (patch)
tree0c88a11ec7d3ad75cfc86bf7cefda3e06e2ae9cd /addons/web/static/src/js
parent4d80adac5b029e1a71e823fb21fe4994a452131d (diff)
[IMP] Hide empty fields in form readonly
bzr revid: fme@openerp.com-20120604114433-4dvm68xvdmln0ck6
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/view_form.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index 6bc708527af..be78ce8f006 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -1004,7 +1004,7 @@ instance.web.form.FormRenderingEngine = instance.web.form.FormRenderingEngineInt
this.process($new_sheet);
},
process_form: function($form) {
- if ($form.find('> sheet').length == 0) {
+ if ($form.find('> sheet').length === 0) {
$form.addClass('oe_form_nosheet');
}
var $new_form = this.render_element('FormRenderingForm', $form.getAttributes());