Hello All,
I created the custom module,in that I want to create the combo box and values for the combo box should come from the database.
Please help me on this.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello All,
I created the custom module,in that I want to create the combo box and values for the combo box should come from the database.
Please help me on this.
OpenERP/Odoo is a framework that do almost all the hard work in the behind and developer just do some definitions and arrangements. One of the things that this framework that do on behalf of the developer is to create combo boxes. You just need to define the field that needs to be a combo box on the view as a many2one.
Check, for example, the customer field on the sales order screen:
'partner_id': fields.many2one('res.partner', 'Customer', readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, required=True, change_default=True, select=True, track_visibility='always'),
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ýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 11 16
|
4788 | ||
|
2
thg 5 25
|
603 | ||
|
0
thg 3 25
|
702 | ||
|
2
thg 12 21
|
2462 | ||
|
0
thg 12 18
|
2083 |