Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
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'),
or
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(
'product.banner',
'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
You'll need field of type "selection" for that.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký