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

Hi Mates,
I think psql support var char and odoo has no such variable length fields. 
For a case,
Odoo docs defines: Char: A string of limited length. The required size parameter determines its size.
Where we can give its size as field attribute like size=30 .

But, I am looking for a field (Char / Text) where the size should be dynamic (Based on the value stored in it). I think this can save many reserved memory.
Any hints ?


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

Odoo only uses varchar data types in the database, even though in your source code you specify it as a Char field. I did a search of all data types used in the database and there wasn't a single table column that had a data type of char.

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

Yes. You are correct. I checked with Pgadmin

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مارس 24
9051
1
فبراير 24
1880
2
أكتوبر 23
6527
2
نوفمبر 22
6926
0
سبتمبر 21
3025