[IMP] Hide empty fields in form readonly
bzr revid: fme@openerp.com-20120604114433-4dvm68xvdmln0ck6
This commit is contained in:
parent
4d80adac5b
commit
1317543d72
|
@ -1893,6 +1893,9 @@
|
|||
.openerp .oe_form .oe_form_group_cell .oe_kanban_view {
|
||||
position: static;
|
||||
}
|
||||
.openerp .oe_form .oe_form_readonly .oe_form_field:empty {
|
||||
display: none;
|
||||
}
|
||||
.openerp .oe_form .oe_form_button.oe_button {
|
||||
height: 22px;
|
||||
white-space: nowrap;
|
||||
|
|
|
@ -1520,6 +1520,9 @@ $colour4: #8a89ba
|
|||
.oe_form_group_cell .oe_kanban_view
|
||||
// Hack due to absolute positioning of kanban view messing with o2m
|
||||
position: static
|
||||
|
||||
.oe_form_readonly .oe_form_field:empty
|
||||
display: none
|
||||
// }}}
|
||||
// FormView.buttons {{{
|
||||
.oe_form
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue