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>
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
10
may 20
|
10594 | |||
|
1
ene 16
|
8125 | |||
|
0
ene 26
|
14 | |||
|
1
ene 25
|
26288 | |||
|
1
may 21
|
7789 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.