This question has been flagged
1 Reply
4168 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.

Avatar
Discard
Best Answer

Hi,

Do the following to get what you need:

account_invoice_report.py

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

account_invoice_report_view.xml

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

Avatar
Discard