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.


how to create statistics reports

on 12/8/14, 4:29 AM 417 views


I'm trying to create statistics report but I can't find any idea about this issue .

example : create report to show the stock quantity ,movements quantity and what arrived to warehouse .

Any help please ?




| 5 3 6
Jakarta, Indonesia
On 12/8/14, 4:41 AM

If you want to develop a statisctics report, first you need to develop the SQL statement first.  If you have the SQL statement, you have the option to execute and run the SQL statement using one of the available reporting engines (jasper_report, pentaho, etc.) or you can create a view and an ORM model with _auto set to False so that it can be displayed in from the web UI.  The _auto = False will tell ORM not to create the corresponding table.  To be able to use ORM, the SQL statement need to have id column.  You can check various samples available in odoo/addons: stock/report/report_stock.py and its corresponding view stock/report/report_stock_view.xml is a pair of example.

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: 12/8/14, 4:29 AM
Seen: 417 times
Last updated: 3/16/15, 8:10 AM