Is there any method to fetch the label of a selection field from its value?
'type': fields.selection([('product','Stockable Product'),('service','Service Product'), ('consu','Consumable Product')],'Type')
if we wish to fetch a product type like
product.type if its value is
'service' we want to get its label as
'Service Product', is there any way to get the label in python or in openerp ?
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
|Asked: 1/31/14, 1:38 AM|
|Seen: 1151 times|
|Last updated: 10/28/15, 1:15 AM|