跳至内容
菜单
此问题已终结
2 回复
12321 查看

I have a custom report and i want to remove header from the report.How it is possible.Thanks in advance.

形象
丢弃
编写者

thanks esther

最佳答案

Update for version 16 :

You need to define your own paperformat, and call that paper to action.
Adjust the margin_top to eliminate the header and margin_bottom value for the footer

<record id="custom_paper" model="report.paperformat">
<field name="name">custom paper formatfield>
<field name="default" eval="True" />
<field name="format">A4field>
<field name="page_height">0field>
<field name="page_width">0field>
<field name="orientation">Portraitfield>
<field name="margin_top">7field>
<field name="margin_bottom">7field>
<field name="margin_left">7field>
<field name="margin_right">7field>
<field name="header_line" eval="False" />
<field name="dpi">90field>
record>

Note : please fix the code above, especially the closing field. Tried many times to fix this answer but not works. This forum is messed up it can't save code block above properly.

Best regards,

Altela (altelasoftware.com)

形象
丢弃
最佳答案

If your report has a div class header tag remove ir. Otherwise It comes from the layout you are using and you have yo remove it from that layout.

形象
丢弃
相关帖文 回复 查看 活动
0
9月 24
1401
0
12月 18
2686
0
3月 18
3534
0
7月 17
7812
1
11月 16
2959