Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5095 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
9279
1
ian. 16
6875
1
ian. 25
24028
1
mai 21
6076
5
ian. 17
4901