Valencia Rodrigues (OpenERP) has proposed merging
lp:~openerp-dev/openobject-server/6.0-opw-18173-vro into
lp:openobject-server/6.0.
Requested reviews:
Raphael Collet (OpenERP) (rco-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/6.0-opw-18173-vro/+merge/79111
Hello,
The 'selection' field of ir.model.fields is a char type field, which places a
limit on the number of characters acceptable. Hence a fix is proposed to change
the type of this field to text, to remove size restriction.
This will allow the user to specify any number of characters (and selection
options) in this field.
Thanks
--
https://code.launchpad.net/~openerp-dev/openobject-server/6.0-opw-18173-vro/+merge/79111
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-server/6.0-opw-18173-vro.
=== modified file 'bin/addons/base/ir/ir_model.py'
--- bin/addons/base/ir/ir_model.py 2011-09-29 05:09:38 +0000
+++ bin/addons/base/ir/ir_model.py 2011-10-12 12:15:29 +0000
@@ -187,7 +187,7 @@
help="The model this field belongs to"),
'field_description': fields.char('Field Label', required=True, size=256),
'ttype': fields.selection(_get_fields_type, 'Field Type',size=64, required=True),
- 'selection': fields.char('Selection Options',size=128, help="List of options for a selection field, "
+ 'selection': fields.text('Selection Options', help="List of options for a selection field, "
"specified as a Python expression defining a list of (key, label) pairs. "
"For example: [('blue','Blue'),('yellow','Yellow')]"),
'required': fields.boolean('Required'),
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp