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'),
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
lis 16
|
4799 | ||
|
2
maj 25
|
637 | ||
|
0
mar 25
|
713 | ||
Can Packaging and Combo Use the SAME Barcode
Rozwiązane
|
|
2
gru 21
|
2484 | |
|
0
gru 18
|
2083 |