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.


[Bug Fixed] Error: Field account.invoice.... is accessed before being computed. [in Odoo 8.0]

on 10/8/14, 6:53 AM 936 views

I have added a custom functional field called "amount_profit" in account.invoice object adopting new API syntaxs..

So while computing amount_total, even profit for the same will be calculated. But whenever i try to save the Invoice record..

Am getting an error stated below:

Field account.invoice.amount_profit is accessed before being computed.



| 5 4 7
Bangalore, India

Techno-Functional Associate with 6+ years of experience in Odoo (formerly known as OpenERP).

On 10/29/14, 8:22 AM

Well.. It was a bug in Odoo standard..  version [openerp-8.0-ab7b5d7]....

Luckily they have fixed the issue in the new version [openerp-8.0-1b53469] module...

However my temporary fix for [openerp-8.0-ab7b5d7] was:
    1. I changed the function name [in case of inherited/overriden computational method]
    2. Added a dummy initialization for all the computational fields, even though they were not been accessed

Seemed to work pretty well...


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

1 follower(s)


Asked: 10/8/14, 6:53 AM
Seen: 936 times
Last updated: 3/16/15, 8:10 AM