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.

1
Indrabhan Bhamare
On 9/4/15, 7:15 AM

Hello Maurice

try this

my_field = fields.Char(string='My Field', size=10) 

What is the unit of 'size' ?

Maurice Agée
on 9/4/15, 7:40 AM
Hello Maurice

The unit size of the char field is 128 characters



Thanks
Indrabhan

On Fri, Sep 4, 2015 at 5:10 PM, Maurice Agée <maurice.agee@verdotips2.com> wrote:

What is the unit of 'size' ?

--
Maurice Agée
Sent by Odoo S.A. using Odoo access your messages

Indrabhan Bhamare
on 9/4/15, 8:00 AM

hello Indrabhan, i think 128 is the default number of characters. my question is about the size of characters like "3 mm " .

Maurice Agée
on 9/4/15, 8:35 AM
1
Abder
On 9/7/15, 2:35 AM

Hello,

You can change the size of the char field in the XML-file :

<field name="my_field" style="font-size:13pt;"/>

Regards.

-1

Drees Far

--Drees Far--
1130
| 5 2 6
Tunis, Tunisia
--Drees Far--
Drees Far
On 9/4/15, 6:18 AM

Hello Dress Far What is the unit of 'width' in the code " " ?

Maurice Agée
on 9/4/15, 8:37 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: 9/4/15, 6:04 AM
Seen: 383 times
Last updated: 9/7/15, 2:35 AM