跳至內容
選單
此問題已被標幟
2 回覆
6295 瀏覽次數

I'm trying to hide external_layout_header template's elements (which will be moved to page div) using code:

<template id="e_commerce_external_layout_header" inherit_id="report.external_layout_header">

<xpath expr="//div[@class='header']" position="replace"></xpath>

</template>

,but when I print Sales Order/Quotation to PDF, external_layout_header template is empty as it should be, but there is some kind fixed space left, size of external_layout_header, when its not hidden.

This strange behavior I encountered only for external_layout_header, when I make changes for let's say sale.report_saleorder_document, the same replacing method works well, because no empty space is left, if element is replaced.

So my question is: Is it possible to remove that fixed header space, or maybe there is space reserved for header and it can not be removed?

Here is an example of header replaced and not: http://tinypic.com/r/13zzc6f/9

頭像
捨棄
最佳答案

Hi,

Yes you can change the paper format for the PDF reports from the UI itself.

Go to 

settings -> technical -> Reporting -> Paper Format


Here you can see different paper formats

Open the paper format which you need to make changes

If you need to change the header spacing. Make change in it

And finally save it

Regards

頭像
捨棄
最佳答案

Hello justas stankevicius,


if  you wan't to remove space of header you have create a paperformat for "sale order / quotation" in report action "paperformat" and give "margin top = 7 or lower value".

see below link it will helpful to you

https://www.odoo.com/forum/help-1/question/add-paperformat-to-a-report-or-how-to-add-a-relationship-to-a-new-generated-report-91278

Thanks,

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
2月 18
9094
1
4月 25
617
2
3月 25
742
4
11月 24
6414
1
3月 24
1401