Odoo Help


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.


Using a preexisting python code

on 9/24/13, 7:54 AM 782 views

I have a working python code, this code have 5 variables and run a series of algorithms to present a final result. I need to implement this code in a custom module using 5 fields from account.account and then fill a a new field in the same form with the result.

Is it possible?, can someone take me to the right direcion?



| 3 2 6

Having 8+ years of OpenERP Experience. We are Specialized in OpenERP/CRM Solutions, software development, Web development, E commerce solutions & other open source solutions.

Skype : acespritech

Email : info@acespritech.com

On 9/24/13, 8:15 AM


Yes,You can do this.You can define a new function field and 5 normal text or integer field according to your data, in account.account.and in related function you can write your existing code.(if required 5 fields does not exist in account.account).

Otherwise you just have to define 1 function field and put your existing code into function,you can get value of existing fields' value in function using openerp API.

Acespritech Solutions Pvt. Ltd.
Mail: info@acespritech.com
Skype: acespritech
Blogs: http://acespritechblog.wordpress.com

Hi, thank u so much!.. i will try to do this. But i dont know exactly how, i make the code work directly in python interpreter i think that wasn't thr right aproach.

on 9/24/13, 8:33 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)


Asked: 9/24/13, 7:54 AM
Seen: 782 times
Last updated: 3/16/15, 8:10 AM