Odoo Help

0

function fields not getting updated

By
Sam path
on 6/17/14, 4:05 AM 1,131 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 ?

senthil
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
1

Jagdish Panchal

--Jagdish Panchal--
2694
| 5 4 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

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

Hi

Refer this link may help you 

http://stackoverflow.com/questions/16185195/openerp-fields-function-explanation/16206895#16206895

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

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