[IMP] openerp: imp design when render default form view

When a form view had only one field, it was fullwidth.
Now we add a separator automatically. That (seems) have no
effects on model with several field and fix the display when
only one field.
This commit is contained in:
Jeremy Kersten
2016-05-04 01:30:38 +02:00
parent 28791ab5db
commit 32aff64b85
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -630,6 +630,7 @@
<form string="Tags">
<group col="4">
<field name="name"/>
<separator/>
</group>
</form>
</field>
+2
View File
@@ -1449,6 +1449,8 @@ class BaseModel(object):
etree.SubElement(group, 'field', name=fname)
if field.type == 'text':
etree.SubElement(group, 'newline')
etree.SubElement(group, 'separator')
return view
def _get_default_search_view(self, cr, user, context=None):