Odoo Help

Welcome!

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.

0

Sum of two fields in the third field in Openerp.

By
charlesraj
on 8/26/13, 8:54 AM 1,566 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

Prakash
on 8/26/13, 8:59 AM

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

charlesraj
on 8/26/13, 9:12 AM

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

Prakash
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"

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

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

0 follower(s)

Stats

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