Odoo Help

0

Details about report generation pipeline

By
Aurélien Rivet
on 3/12/16, 6:18 AM 753 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
0
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.

Register

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)

Stats

Asked: 3/12/16, 6:18 AM
Seen: 753 times
Last updated: 3/13/16, 12:28 AM