Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5052 Lượt xem

Hi. 

I want to print a report with no margin in the top


I have tried different layout

  1. t-call="web.internal_layout">
  2. t-call="web.basic_layout">
  3. t-call="web.external_layout">
  4. t-call="web.report_layout">
  5. t-call="web.minimal_layout">

Also tried with CSS

  1. id="report_assets_common" name="css pdf assets" inherit_id="web.report_assets_common">
  2. expr="." position="inside">
  3. rel="stylesheet" type="text/css" href="/my_module/static/src/css/report.css"/>
  1. .article {
  2. margin-top: -140px !important;
  3. z-index: 1000;
  4. }

This move the content up but it looks like the header is a white block in front

external_layout


basic_layout




Thanks


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello @notteccon 

Hope you are doing well.

For you to remove the top margin you will need to change the paper-format top-margin value to 0 if you complelety need to remove the top margin. By doing this all the reports will be printed without the header. 

You could refer the screenshot attached.

Hope this would be helpful.





Thanks & Regards,
Email:    odoo@aktivsoftware.com 

Skype: kalpeshmaheshwari

Ảnh đại diện
Huỷ bỏ
Tác giả

Hi Jainesh.
Thank you so much. It makes sense, i'll try as soon as possible. Do you know if there is a way to edit the paper format for a specific report?
Thanks again
Best regards

Hi @notteccon

For you to edit a paper format for specific report you will need to add the report to the associated reports field in the paper-format or you could create a new paper-format for particular report and add the report to the above mentioned field.

Hope this would be helpful.

Bài viết liên quan Trả lời Lượt xem Hoạt động
PDF reports Đã xử lý
5
thg 7 25
2336
Wrong PDF Format Đã xử lý
2
thg 3 24
2860
0
thg 11 22
3044
0
thg 9 17
5327
1
thg 3 15
8443