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

I tried to add header in pdf of accounting reports(wkhtmltopdf) using my own custom layout with image. But when i use the unfold option in the HTML view then  takes the pdf printout, the image in the header got automatically removed from the report.

The above is the code i have used to add the header

header = self.env['ir.actions.report'].render_template("custom_reports.account_report_header_layout", values=rcontext)

header = self.env['ir.actions.report'].render_template("web.minimal_layout", values=dict(rcontext, subst=True, body=header))

Tag used add image <img t-if="company.logo" t-att-src="image_data_uri(company.logo)" alt="Logo" style="height:60pt; width:210pt;"/>

I'm having wkhtmltopdf 0.12.1 (with patched qt) in my ubuntu 16.04

Anyone have any idea?

아바타
취소
관련 게시물 답글 화면 활동
2
9월 25
871
2
2월 23
2177
0
9월 21
2595
2
6월 19
8563
2
6월 16
6088