Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4374 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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>

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
10
mai 20
8441
1
ian. 16
6105
1
ian. 25
22905
1
mai 21
5077
5
ian. 17
4116