İçereği Atla
Menü
Bu soru işaretlendi
7 Cevaplar
7541 Görünümler
En İyi Yanıt

Hello Maurice

try this

my_field = fields.Char(string='My Field', size=10) 
Avatar
Vazgeç
Üretici

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

Üretici

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

En İyi Yanıt

Hello,

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

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

Regards.

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

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