I have a custom field as Company Name in a model and in another view of another model i want the values entered in company name field to show up as a drop down list. I have defined another field as select company and made it Many2one and mentioned the model in which company name is present but the drop down list is empty. How can i populate this company name values? I mean i have given the model name in many2one field but how does odoo know what values to populate with? Do i have to do anything?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
4
Réponses
7600
Vues
You could simply add widget="selection" where you want the company names to populate
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
5
août 19
|
9279 | ||
|
3
avr. 19
|
6583 | ||
|
1
mars 19
|
10417 | ||
|
1
mars 15
|
12142 | ||
|
2
mai 22
|
18048 |
it populates the selection with the values that are in the field named "name".
what if there is already a field named name? how can i make it to populate other field items?
Look into Odoo customization tips: https://www.pinterest.com/learnprogramming/learn-odooopenerp/