Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
7 Odpowiedzi
20820 Widoki

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

Awatar
Odrzuć

Have you found any info about this so far?

Not much, we been able to get a CSS stylesheet to work, buy some tags are still not working... Don't know why...


2014-09-03 7:47 GMT-03:00 Houssine BAKKALI <houssine-bakkali-gmail-com@mail.odoo.com>:

Have you found any info about this so far?

--
Houssine BAKKALI
Sent by OpenERP S.A. using Odoo about Forum Post Using CSS Styles in Qweb PDF report



--
Ing. Gonzalo Ruzafa
(+54 9 341)153 718905
skype: gonzaloruzafa

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

Thank you for the information! However, it modifies the Odoo code... there must be another way... don't you think?


2014-09-03 9:46 GMT-03:00 Houssine BAKKALI <houssine-bakkali-gmail-com@mail.odoo.com>:

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

--
Houssine BAKKALI
Sent by OpenERP S.A. using Odoo , access directly to Forum Post Using CSS Styles in Qweb PDF report



--
Ing. Gonzalo Ruzafa
(+54 9 341)153 718905
skype: gonzaloruzafa

the other way is to have this issue tackled by Odoo SA as it's clearly a bug.

Sure


2014-09-03 10:51 GMT-03:00 Houssine BAKKALI <houssine-bakkali-gmail-com@mail.odoo.com>:

the other way is to have this issue tackled by Odoo SA as it's clearly a bug.

--
Houssine BAKKALI
Sent by OpenERP S.A. using Odoo about Forum Post Using CSS Styles in Qweb PDF report



--
Ing. Gonzalo Ruzafa
(+54 9 341)153 718905
skype: gonzaloruzafa

Najlepsza odpowiedź

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>

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
mar 24
13151
5
lis 24
46250
2
lut 24
2396
3
sty 20
6687
0
sty 17
5103