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

Hello,

I want watermark that is to be displayed on every page of Qweb report.Following is code snippet but I unable to get watermark in every report page please guide for the same.

<template id="report_sla_contract_ac">

     <t t-call="report.external_layout">

             <t t-foreach="docs" t-as="o">

                     <div class="page">

                             <div style="position:absolute;opacity:0.25;z-index:1000;transform:rotate(300deg);-webkit-transform:rotate(300deg);width:150%;">

                                    <p style="font-size:120px;color:orange;">Watermark Text To Display </p>

                            </div>

                    </div>

         </t>

     </t>

</template>

Thanks in advance

아바타
취소
베스트 답변

Hello,


Add the code for watermark in header of external layout add div with inline css .

<div style="position:absolute;opacity:0.25;z-index:1000;transform:rotate(300deg);-webkit-transform:rotate(300deg);width:150%;">

<p>WATERMARK</p>  

</div>


I hope you find this helpful.

아바타
취소

I tried it in custom layout. But it truncates the content and showing watermark in all pages. Could you help me!

관련 게시물 답글 화면 활동
0
4월 20
2988
3
8월 18
10715
5
11월 24
47242
5
8월 20
15750
1
9월 17
4811