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
|
10678 | |||
|
1
1月 16
|
8219 | |||
|
0
1月 26
|
14 | |||
|
1
1月 25
|
26515 | |||
|
1
5月 21
|
7866 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.