Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3083 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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
}
Awatar
Odrzuć