Odoo Help


Details about report generation pipeline

Aurélien Rivet
on 3/12/16, 6:18 AM 1,019 views

Hi all,

I really would like to know more about the report generation pipeline and the differents steps before actual generation: when template inheritance is made, when qweb tags (<t>) and attributes are parsed and so on. Details are welcome. Also, is the pipeline different when doing HTML or PDF generation ? 

I am on Odoo 8, by the way.

@Axel Mendoza, yes I have read the source code but I couldn't find what I expected. What drove me to ask this question is the following statement: there is not a clean way to link an external css file to one specific report (not others). I tried in many way even by using JavaScript (add a link in the head tag) but it doesn't work. I think that wkhtmltopdf doesn'nt execute my JS code. To insert style to a report, I had to put it between style tag, which I find very ugly. Ok, I read the Github issue about that and considerations about future intergration of web assets and also "pseudo" namespaces for each module reports. But I find too badthe fact that the usual web for web developer (link tag in head) doesn't work. But I agree, it is not really a question nor an answer, but rather an opinion.

Aurélien Rivet
on 3/14/16, 11:19 AM

Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 3/13/16, 12:28 AM

Is the same for HTML or PDF. For those specific details and also not a very explicit question I suggest that you need to read the source code of the report module and the qweb rendering template engine at base module. QWEB Reports are just QWEB templates rendering as HTML and for PDF files they just use the lib WKHTMLTOPDF to convert it into a PDF file. But the details are on the source code

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/12/16, 6:18 AM
Seen: 1019 times
Last updated: 3/13/16, 12:28 AM