Odoo Help


Sum of two fields in the third field in Openerp.

on 8/26/13, 8:54 AM 2,151 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.

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

on 8/26/13, 8:59 AM

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

on 8/26/13, 9:12 AM

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

on 8/26/13, 9:28 AM

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

on 8/26/13, 9:32 AM
on 8/26/13, 9:57 AM

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.


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

0 follower(s)


Asked: 8/26/13, 8:54 AM
Seen: 2151 times
Last updated: 3/16/15, 8:10 AM