Hi all,
I've created a field Transport charges in sale order which fetches the amount from delivery method field in sale order. This field is used in the computation of margin.
Margin now is "Selling price - Cost price". but I've altered it as "Selling price - Cost price - Transport Charges" and it is working fine when i create the order freshly but if I edit the transport charges amount in a already created order the margin is not getting updated, It remains the old margin. The margin is not getting computed and updated again.
Can anyone help me how to update or where am I going wrong
put ur code here for clear and better understanding ?
https://www.odoo.com/forum/Help-1/question/function-fields-not-getting-updated-54527 the code is available in this question