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

Details about report generation pipeline

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

--Axel Mendoza--
10308
| 7 7 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 an 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

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