Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
8907 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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.

Avatar
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
0
dub 20
2991
3
srp 18
10715
5
lis 24
47249
5
srp 20
15753
1
zář 17
4812