Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
15133 มุมมอง

Hello everyone!

We would like to increase the limit of input characters available for a field, for example, in the field "Work summary", from Project Managment / Tasks, is only limited to 128 characters, so how or where we could increase this limit?

Thanks!

Santiago

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Well the only reference I can find is this from the project.py file, but im not sure where to increase the size or where is the "osv" from where is importing fields.

from osv import fields, osvclass project_task_work(osv.osv):
_inherit = 'project.task.work'
_columns = {
            'name': fields.text('Work summary'),  
            } project_task_work()

Thanks!

อวตาร
ละทิ้ง

The size is being increased by using 'text' field (which has no length limit) over a 'char'. See here: http://doc.openerp.com/trunk/developers/server/03_module_dev_02/#type-of-fields.

ผู้เขียน

Great thanks for your answer, i guess the best would be to create a module that changes the default state, right? - Thanks!

คำตอบที่ดีที่สุด

See how project_work_description does.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Try the below field...

A text field with no limit in length.

Syntax:

fields.text('Field Name' [, Optional Parameters])

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Limiting field size in V14 onwards แก้ไขแล้ว
2
พ.ย. 22
3601
How to check the size of a field แก้ไขแล้ว
5
ม.ค. 24
15018
0
พ.ย. 19
66
1
ธ.ค. 17
4529
1
เม.ย. 24
1838