Odoo Help

5
3 Answers
0
Nikunj Ladava (nla)
2/3/17, 12:38 AM

Hello Nehal,

i have solution for your problem i think it will help you.

First you have to create any  field of Text in your py file

comment = fields.Text(string="Comment")


and while using this field in your xml file you need to give width  for it.

i.e  

<field name="comment" style=' max-width: 1150px;  width: 500px'/>

so max width for your textarea is 1150 pixel and minimum width is 500 pixel



0
Rajkumar
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;
}

1 Comment
Nehal
6/2/14, 7:21 AM

Not worked for me. Have you checked?

Ask a Question
Writer
2131
Nehal
Keep Informed
2 follower(s)
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now