Skip to Content
Menu
This question has been flagged
1 Reply
4755 Views

I want the field "definition" to display across the width of the form. Currently, it displays in half of the width.


Code:

<div class="oe_title oe_left">   

                            <h1> 

                                <field name="name" default_focus="1" placeholder="Name (e.g., subject)"/>

                            </h1>  

                            <field name="code"/>

                            <field name="definition" placeholder="Definition"/>  

                        </div>

Avatar
Discard
Best Answer

There is not a lot of context to your question (version, view, screenshot) but did you try to add a colspan argument? Try with 2 or 4.

<field name="definition" placeholder="Definition" colspan="4"/>

More information on views and particularly structural components of form views can be found in the technical documentation: https://www.odoo.com/documentation/9.0/reference/views.html#structural-components

Avatar
Discard