تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
7 الردود
7582 أدوات العرض

 

الصورة الرمزية
إهمال
أفضل إجابة

Hello Maurice

try this

my_field = fields.Char(string='My Field', size=10) 
الصورة الرمزية
إهمال
الكاتب

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

الكاتب

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

أفضل إجابة

Hello,

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

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

Regards.

الصورة الرمزية
إهمال
أفضل إجابة

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.

الصورة الرمزية
إهمال
الكاتب

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