Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4 Risposte
7802 Visualizzazioni

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?

Avatar
Abbandona

it populates the selection with the values that are in the field named "name".

Autore

what if there is already a field named name? how can i make it to populate other field items?

Risposta migliore

You could simply add widget="selection" where you want the company names to populate

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
5
ago 19
9571
3
apr 19
6824
1
mar 19
10693
1
mar 15
12333
2
mag 22
18048