Community mailing list archives

Right way to extend financial reports

Lambda Networks AS, Levent Karakaş
- 09/17/2015 12:21:21
Hello all,

What is the right way to extend the existing financial reports in v8? In other words, how do we add some fields to a report? 

Assume we want to add a specific field to general ledger. We can add the field to template (account.report_generalledger) with xpath. Then, how do we add the field to model? It seems to get selected from database in this method:

Then do we just inherit the general_ledger class and override lines method? How do we manage that? I wonder if there's an example to this? Found this thread below but i couldn't use it in v8.

Or should I just forget about this inheritance stuff and create a new report from scratch?

Thanks for the help.