跳至內容
選單
此問題已被標幟
1 回覆
1110 瀏覽次數

what does change_default attribute do? 

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

what does this mean ?

頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
10月 20
2060
0
5月 20
6290
1
6月 16
11340
0
3月 15
3417
1
2月 23
7920