diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 7cf6cbe54e8..6f4fcde3e95 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -1698,6 +1698,10 @@ height: inherit !important; font-size: inherit; } +.openerp .oe_form_nosheet > *:not(.oe_form_topbar) { + margin-left: 10px !important; + margin-right: 10px !important; +} .openerp .oe_form .oe_form_label_help[for], .openerp .oe_form .oe_form_label[for] { font-weight: bold; white-space: nowrap; diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 1dc4f15c90b..4283a9633b3 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -1348,6 +1348,9 @@ $colour4: #8a89ba input height: inherit !important font-size: inherit + .oe_form_nosheet > *:not(.oe_form_topbar) + margin-left: 10px !important + margin-right: 10px !important // }}} // FormView.label {{{ diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index e92d5cf7635..6bc708527af 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -1004,6 +1004,9 @@ instance.web.form.FormRenderingEngine = instance.web.form.FormRenderingEngineInt this.process($new_sheet); }, process_form: function($form) { + if ($form.find('> sheet').length == 0) { + $form.addClass('oe_form_nosheet'); + } var $new_form = this.render_element('FormRenderingForm', $form.getAttributes()); this.handle_common_properties($new_form, $form); $form.contents().appendTo($new_form);