0
votes

Hi I am using openerp 7. I have created a module with some fields . Now I need to declare dropdown fields to add some additional features. Please give me some hint to do this

Hopes for suggestion

1

1 Answers

1
votes

For drop down list, you can use selection field. for example

'type': fields.selection([('a','Type A'),('b', 'Type B')],'Type')

You can want to show a many2one field as selection, for example, companies, in the view add widget="selection"

<field name="company_id" widget="selection">