Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to display text across width of form

By
Luigi Sison
on 7/5/16, 12:29 PM 176 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>

0

Fabrice Henrion (fhe)

--Fabrice Henrion (fhe)--
5823
| 7 7 8
San Francisco, United States
--Fabrice Henrion (fhe)--

Director Odoo USA

Fabrice Henrion (fhe)
On 7/5/16, 9:24 PM

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/5/16, 12:29 PM
Seen: 176 times
Last updated: 7/5/16, 9:24 PM