Hi, I am building a report on Qweb, using styles to get borders, colors, etc. The problem is that when the report is transformed from HTML to PDF, styles (colors, borders,...) are not displayed at the PDF document.
Any ideas?
Thanks!
Gonzalo
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi, I am building a report on Qweb, using styles to get borders, colors, etc. The problem is that when the report is transformed from HTML to PDF, styles (colors, borders,...) are not displayed at the PDF document.
Any ideas?
Thanks!
Gonzalo
You can add style for each element that you want to styling.
the other option is -> there is 3 div class for report: header, page / article, then footer, you need to put style tag inside of them.
example:
<div class="header">
<style>
<!-- add your style here -->
</style>
<!-- your other elements -->
</div>
<div class="page">
<style>
<!-- add your style here -->
</style>
<!-- your other elements -->
</div>
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
4
Mar 24
|
12657 | ||
|
5
Nov 24
|
45817 | ||
|
2
Feb 24
|
2139 | ||
|
3
Jan 20
|
6512 | ||
|
0
Jan 17
|
4883 |
Have you found any info about this so far?
the solution of jay vora from SerpentCS seems to be a solution to what appears to be a bug https://github.com/odoo/odoo/issues/1105
the other way is to have this issue tackled by Odoo SA as it's clearly a bug.