Odoo Help

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
On 6/23/15, 5:53 AM

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

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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