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>
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
10
5월 20
|
10595 | |||
|
1
1월 16
|
8129 | |||
|
0
1월 26
|
14 | |||
|
1
1월 25
|
26292 | |||
|
1
5월 21
|
7791 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.