CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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 ?
About This Community
Odoo Training Center
|Asked: 1/31/14, 1:38 AM|
|Seen: 2356 times|
|Last updated: 10/28/15, 1:15 AM|