Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Dr Obx
On 6/23/15, 6:08 AM

I'm not sure what exactly you want to achieve but here is an example:

Field selection type definition (old API):

'questions': fields.selection([('1','question 1'),('2','question 2'),('3','question 3'),('4','question 4'),('5','question 5') ],'Choose one'),


you can create/add a class (as example banners which is a class related to model "product" so you can change it to your own model)

#============= B A N N E R S ===============

class product_banner(orm.Model):

_name = 'product.banner'

_columns = {

'name': fields.char('Banner'),

'banner': fields.binary('Image file'),


class product_template(orm.Model):

_inherit = 'product.template'

_columns = {

'product_banner_id': fields.many2one(


'Banner', help='Display Banner on product image', ondelete='restrict'),


will be fully editable  so you can change/add more if needed.

i need to select multiple answers at same time

on 7/9/15, 1:28 AM


| 6 5 7
Tbilisi, Georgia
On 6/23/15, 5:53 AM

You'll need field of type "selection" for that.

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 6/23/15, 5:47 AM
Seen: 679 times
Last updated: 9/4/15, 3:23 AM