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>
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
10
thg 5 20
|
10590 | |||
|
1
thg 1 16
|
8118 | |||
|
0
thg 1 26
|
14 | |||
|
1
thg 1 25
|
26283 | |||
|
1
thg 5 21
|
7786 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.