Hi everyone.
I have to update everytime one field's value based on another object's field. How to achieve it.Please share ur ideas.Thanks in advance.
Hi everyone.
I have to update everytime one field's value based on another object's field. How to achieve it.Please share ur ideas.Thanks in advance.
Yes u can go to create method in that model check condition and update value.
@api.model
def create(self, vals):
if values[u'key1'] = 'Something':
values[u'key2'] = 'update value'
<remaining code>
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
10
พ.ค. 20
|
10595 | |||
|
1
ม.ค. 16
|
8131 | |||
|
0
ม.ค. 26
|
14 | |||
|
1
ม.ค. 25
|
26300 | |||
|
1
พ.ค. 21
|
7794 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.