To make selection field in OpenERP (Odoo)
In Selection Field first we have to go in .py file (python file)
After that we have to decide where you want to give selection Field and then give attribute Selection to that field.
Like below python code in .py file -
class product_product(osv.osv):
_inherit='product.product'
_columns= {
'Inventory_Type':fields.selection ((('inventory', 'Inventory'), ('services', 'Services'), ('group', 'Group')), 'Inventory Type'),
}
product_product()
0 Comment(s)