Skip to Content
Menu
This question has been flagged
2 Replies
4503 Views

I want to change sales order line field value depend on sales order field value.

Please help


Avatar
Discard
Best Answer

@api.onchange   

def button_update(self):
         if self.SOfield:
               for line in self.order_line:
                   line.write({'SOlinefield':self.SOfield})

Avatar
Discard
Author

Exactly what I want.Really it save my several hours.

please mark as answer

Related Posts Replies Views Activity
2
Nov 24
477
4
Feb 24
10165
1
Jan 24
370
0
May 23
831
4
Apr 23
38326