This question has been flagged
4470 Views

in openerp v7.0 i created a new model named "x_sar" the inside it created three fields "x_a" ,"x_b", "x_c" . with text field .

I need the sum of the value entered in the fields "x_a" and "x_b" in the third field "x_c". How to get this sum in the third field .Which py file i will give the code for the sum. Any on please help.

Avatar
Discard

you can use on_change method or third column use function field Example are given in the below link http://forum.openerp.com/forum/topic32460.html

Author

thanks prakash. for this which py file i add this code.

use the same python file already you have added three column.(in the .py file)

Author

i created the new model and add the field under them through UI nof openerp ,"Settings->Technical->database structure->models"