Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3062 Visualizzazioni

how to select a field by default to display in the results fields from many2one fields.

Avatar
Abbandona
Risposta migliore

If the question is how to define a default value in a many2one field, you can put it in the class object definition in your module.py file:

_defaults = {
    'your_field' : default_value
}
Avatar
Abbandona