Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
1308 Vues

what does change_default attribute do? 

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

what does this mean ?

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

Hi,

Please refer to the solved forum:

1. https://www.odoo.com/id_ID/forum/help-1/fields-definitions-parameter-change-default-97660


Hope it helps

Avatar
Ignorer
Publications associées Réponses Vues Activité
0
oct. 20
2227
0
mai 20
6463
1
juin 16
11502
0
mars 15
3544
1
févr. 23
8050