Odoo Help


Group the "Invoice Lines" also by "Invoice Number" in View "Reporting -> Accounting -> Invoice Analysis"

Michael Karrer
on 3/27/13, 11:39 AM 1,878 views

How to group by "Invoice Number" and/or "Invoice Name" in View "Reporting -> Accounting -> Invoice Analysis" ?

Since these fields are not available in the account.invoice.report object i guess a small modification in account_invoice_report.py is needed but i just cant figure out how it works.

On 9/25/13, 8:43 AM


Do the following to get what you need:


1) In the class account_invoice_report(osv.osv), add a field for invoice number of char type

    'invoice_number': fields.char('Invoice number', size=128, readonly=True),

2) In the def init(self, cr) method, you need to add a column for invoice number, fetching it from the corresponding table


1) Add the invoice field in the tree view

2) Add the invoice field in the search view under group by tag

Hope my answer helps you and I deserve your upvote

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/27/13, 11:39 AM
Seen: 1878 times
Last updated: 3/16/15, 8:10 AM