This question has been flagged
7 Replies
5952 Views

 

Avatar
Discard
Best Answer

Hello Maurice

try this

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

What is the unit of 'size' ?

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

Author

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

Best Answer

Hello,

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

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

Regards.

Avatar
Discard
Best Answer

This question has been asked before:

https://www.odoo.com/fr_FR/forum/help-1/question/how-i-can-change-the-size-and-position-of-the-fields-in-a-form-27401 

Try to follow the link.

Regards.

Avatar
Discard
Author

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