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.
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
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)
i created the new model and add the field under them through UI nof openerp ,"Settings->Technical->database structure->models"
you can create separate custom modules in addons folder http://help.openerp.com/question/5696/openerp-7-module-develop-using-admin-settings-menu/