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.

4

reduce text area of text type field

By
Nehal
on 4/25/14, 4:05 AM 4,466 views

Hi,

How to reduce text area of the text field. I have tried and text area reduced but values are not saved in that. Can anyone help ?

0
Rajkumar
On 6/2/14, 5:19 AM

Hi,

Below code is useful to reduce text area

<fields name="notes" class="notes_width"/>

In your static/src/css/file.css

Add

.notes_width{
    height:100% !important;
    margin-left:10px !important;
    margin-top:10px !important;
}

Not worked for me. Have you checked?

Nehal
on 6/2/14, 7:21 AM
-1
ASP
On 4/25/14, 10:38 AM

Hi Nehal,

You can use size attribute to the fields.text to customize the size of your text area according to your need.

For Example:

'notes': fields.text('Notes', size=200, help='Add Notes'),

Let me know if you want something else.

Cheers

ASP:)

This will restrict the characters entered in Textarea. And I want to reduct textarea not the characters.

Nehal
on 5/29/14, 1:42 AM

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: 4/25/14, 4:05 AM
Seen: 4466 times
Last updated: 3/16/15, 8:10 AM