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>
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
10
maj 20
|
10591 | |||
|
1
jan. 16
|
8118 | |||
|
0
jan. 26
|
14 | |||
|
1
jan. 25
|
26283 | |||
|
1
maj 21
|
7789 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.