콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
5 답글
2695 화면

Hi, 

I am trying to generate a pdf. I started with the basic to get the company details in the header and footer of the pdf i used web.external_layouts

but it gives me an empty blank page instead of the details. Am i missing something?







아바타
취소
작성자 베스트 답변

I did everything mentioned above still i am not able to get the header and footer and also the print button which automatically appears dosent seems to appear at all. I also noticed that if i download the pdf preview in settings it doesnt come with the header and footer.  It shows the header and footer only in the preview and disspappers after downloading ! 


아바타
취소
베스트 답변

Use 'web' module as depends in manifest file and restart your server

아바타
취소
베스트 답변

Hello Guhan,

I am assuming that you have added needed dependencies, if you not that you need to add 'depends': ['web'], in manifest.py

Generally header and footer are being added with such code


You can also use Odoo Studio for to implement this changes. Simply follow below steps 

  1. Click on Studio.
  2. Click on Reports.
  3. Select New.
  4. Choose External.
  5. You will automatically get pre-defined option for header and footer. 

I hope this will help you !

Thanks,
Vimal Rughani (Founder and CTO)
Himanjali Intelligent Automation Pvt Ltd
Contact:
 +91- 972-606-7737
Emailhello@himanjali.com 
NewsletterThe Odoo Scoop
Websitewww.himanjali.co


아바타
취소
베스트 답변

Hi,

Does your module depend on the web module? web.external_layout is part of the web module. If your module doesn't depend on it, adding a dependency might be necessary. 

Hope it Helps!

아바타
취소
관련 게시물 답글 화면 활동
Wrong PDF Format 해결 완료
2
3월 24
3239
0
11월 22
3350
0
9월 17
5612
0
3월 15
4005
1
3월 15
8806