Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How to increase characters field limit size

By
Santiago
on 3/7/13, 2:39 AM 3,733 views

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

0
Santiago
On 3/7/13, 3:59 AM

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.

vim24
on 3/12/13, 6:52 PM

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

Santiago
on 3/15/13, 3:30 PM
0
Mazhar Iqbal Rana
On 2/3/15, 1:55 AM

Try the below field...

A text field with no limit in length.

Syntax:

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

0
eLBati
On 3/7/13, 3:35 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 3/7/13, 2:39 AM
Seen: 3733 times
Last updated: 3/16/15, 8:10 AM