This question has been flagged
2 Replies
9545 Views

I have used for watermark text in qweb (Odoo 10). But watermark text only show in first page(not iteration). I can't show all pdf page. Please help how to solved than kind of issue.


Can you any one help me. If you know the answer . Please shared.


Thank you.


Avatar
Discard
Best Answer

Hello MURUGAN ,

You can follow below steps for show watermark text on all page in qweb report:

Prepare custom report_external_layout_header template ,add  <div class=”header” > tag  in your qweb report template
or
you can add <div class=”header”>tag  before <t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})" /> tag in your custom qweb report :
xml code :

      <div class="header" >
            <!-- Company Header Details-->
            <div 
style="position:absolute;opacity:0.25;z-index:1000;transform:rotate(300deg);-webkit-transform:rotate(300deg);width:150%;">
            <p style="font-size:50px;">WATERMARK TEXT</p>
            </div>
        </div>


Hope this will help you.

Thanks!
Avatar
Discard

Hi..

<template id="report_receipt_document_bank_all">

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

<t t-if="' ' in docs.bank_guarantee_template">

<div id="logistics_page" class="page" >

<div class="container">

<div

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

<p style="font-size:400px;">DRAFT</p>

</div>

<span t-field="docs.bank_guarantee_template" />

</div>

</div>

</t>

</t>

I get this only in one page ,i have two page ,how to addwater mark in two page .thanks advance

This is my current output ,actually i have two pagess ,but after adding watermark the font size of page also decreassing https://prnt.sc/he1mpc

Author Best Answer

Thank You. Jainesh Shah,
I had fixed this issue same as idea.

Avatar
Discard