콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
15166 화면

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])

아바타
취소
관련 게시물 답글 화면 활동
2
11월 22
3632
5
1월 24
15057
0
11월 19
66
1
12월 17
4553
1
4월 24
1883