Skip to Content
मेन्यू
This question has been flagged
1 Reply
4651 Views

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.

Avatar
Discard
Best Answer

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>

Avatar
Discard
Related Posts Replies Views Activity
10
मई 20
8776
1
जन॰ 16
6403
1
जन॰ 25
23374
1
मई 21
5513
5
जन॰ 17
4403