[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:
@@ -630,6 +630,7 @@
|
||||
<form string="Tags">
|
||||
<group col="4">
|
||||
<field name="name"/>
|
||||
<separator/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user