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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
|
9434 | |||
|
1
1月 16
|
7025 | |||
|
1
1月 25
|
24305 | |||
|
1
5月 21
|
6291 | |||
|
5
1月 17
|
5062 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.