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

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.


아바타
취소
베스트 답변

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!
아바타
취소

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

작성자 베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
1
10월 24
11709
2
7월 25
716
0
12월 24
1286
2
10월 24
1412
1
8월 24
2534