Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Change sales order line value according to field value change on sales order

By
Tharanga Jayasinghe
on 11/3/16, 4:09 AM 139 views

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

Please help


4
fasluca
On 11/3/16, 6:06 AM

@api.onchange   

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

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

Tharanga Jayasinghe
on 11/4/16, 12:46 AM

please mark as answer

fasluca
on 11/4/16, 12:51 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/3/16, 4:09 AM
Seen: 139 times
Last updated: 11/3/16, 6:06 AM