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

I'm trying to customize the external layout xml for document reports (especially Sales Order/Invoice).

The report rendering in Studio (html) works fine but the rendering doesn't work for PDF documents.

How can I enable bootstrap for PDF documents?


Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

With odoo 12, they use bootstrap 4. therefore you need to use bootstrap 4 class for your layout developments. some class on bootstrap 3, not working with version 04. because of that you have to use bootstrap 4 with odoo 12.  

Awatar
Odrzuć
Najlepsza odpowiedź

Yoy can use bootstrap classes in pdf documents if they don't depend on Bootstrap media queries (@media). For example, class="col-4" works, while class="col-md-4" does not. If class="col-4" does not work for example, set the following parameter system report.url = "localhost:8069" being localhost:8069 the url of your server.


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
wrz 21
2512
1
maj 18
3715
2
sty 17
6809
3
mar 15
7554
2
paź 24
2289