Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
1532 มุมมอง

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ต.ค. 20
2337
0
พ.ค. 20
6684
Too many values to unpack? แก้ไขแล้ว
1
มิ.ย. 16
11679
0
มี.ค. 15
3702
Inheriting attributes from Fields แก้ไขแล้ว
1
มี.ค. 23
8289