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.


Inheritance for account.financial.report model?

on 9/26/14, 10:28 AM 610 views

Well I'm working on jasper report and I want to create a new balance sheet report, so I reviewed that the following file: "addons\account\report\account_financial_report.py" returns a list with a dictionary with all information needed for balance sheet, I did some changes in that file to parse it to new report, but I want to create a new module and inherit that method (get_lines) to do my changes in my own files and don't use the openerp files. Is there some way to access to that method and get that list ?

I tried with the following:

class new_report_balance_sheet(osv.Model):

    _name = 'accounting.report'
    _inherit = 'accounting.report'

    def start_report(self, cr, uid, ids, data, context=None):

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: 9/26/14, 10:28 AM
Seen: 610 times
Last updated: 3/16/15, 8:10 AM