Odoo Help

Welcome!

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.

0

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

By
Michael Karrer
on 3/27/13, 11:39 AM 1,333 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.

0
Vivekrajan
On 9/25/13, 8:43 AM

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

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)

Stats

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