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>
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
10
mai 20
|
10652 | |||
|
1
janv. 16
|
8194 | |||
|
0
janv. 26
|
14 | |||
|
1
janv. 25
|
26387 | |||
|
1
mai 21
|
7846 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.