Odoo Help


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.


function fields not getting updated

Sam path
on 6/17/14, 4:05 AM 901 views

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 ?

on 6/17/14, 5:18 AM
hello sir,

This is the code what I've done.

this works only for the first time margin calculation. If i edit the transport charges and save the margin is not re-computed

On Tue, Jun 17, 2014 at 2:48 PM, senthil <bornspy-gmail-com@openerp.my.openerp.com> wrote:

put ur code here for clear and better understanding ?

senthil Sent by OpenERP S.A. using OpenERP. Access your messages and documents in Odoo

Sam path
on 6/17/14, 7:28 AM

https://www.odoo.com/forum/Help-1/question/function-fields-not-getting-updated-54527 the code is available in this question

Sam path
on 6/17/14, 8:08 AM

Jagdish Panchal

--Jagdish Panchal--
| 5 3 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 6/17/14, 5:23 AM


Refer this link may help you 


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

2 follower(s)


Asked: 6/17/14, 4:05 AM
Seen: 901 times
Last updated: 3/16/15, 8:10 AM