I have created a inherit module on sale.order module because I need to add discount fields on detail lines.
I define a function product_id_change() where I call super() and calculate a new unit price.
The execution is doing well, but I see the amount per line is right but the unit price is still the same.
I guess my inherit module is executed before some existing inherit modules on sale.order, do you know if it's possible to define an execution order?
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
|Asked: 5/17/14, 10:43 AM|
|Seen: 761 times|
|Last updated: 3/16/15, 8:10 AM|