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

what does change_default attribute do? 

change_default = False # whether the field may trigger a "user-onchange"

what does this mean ?

Avatar
Abbandona
Risposta migliore

If change_default = True, when the field's value changes, Odoo will check and may update the default values in ir.default based on the corresponding conditions.

Conversely, if change_default = False, even if the field meets the conditions in ir.default, changing it will not trigger any updates from ir.default.

In summary, change_default determines whether the field can affect the default values set in ir.default.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
ott 20
2060
0
mag 20
6290
1
giu 16
11340
0
mar 15
3417
1
feb 23
7920