For that you create a fields.function, then define a function that will 
retrieve the options from database and give the parameter type="selection" to 
the field definition.
something like:

'options': fields.function(_get_options, method=True, string='Options', 
type='selection' )


you have to define a _get_options method before the _columns definition in your 
class.

this fuction shall return a list of tuples like the options in a 
fields.selection definition

check the docs : 
http://doc.openerp.com/developer/2_5_Objects_Fields_Methods/field_type.html#functional-field

I hope it works




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=36018#36018

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to