Merge pull request #5894 from expsa/cencelled_report

Cencelled report
This commit is contained in:
Tahir Hassan 2025-12-30 18:18:22 +04:00 committed by GitHub
commit 9f743af5b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 22 additions and 13 deletions

View File

@ -8,23 +8,32 @@
<!-- Reuse sale order header layout -->
<t t-call="sale_order_report.sale_order_report_header">
<div class="page" style="position: relative;">
<div class="page" style="position: relative; min-height: 800px; overflow: visible;">
<!-- Watermark for canceled sponsorships -->
<t t-if="doc.state == 'canceled'">
<div style="position: absolute;
inset: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
color: red;
font-size: 5rem;
opacity: 0.1;
transform: rotate(35deg);
transform-origin: center;
z-index: 0;
top: 300px;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: calc(100% - 250px);
display: table;
z-index: 999;
pointer-events: none;">
Canceled
<div style="display: table-cell; vertical-align: middle; text-align: center;">
<span style="color: #FAD3D4;
font-size: 280px;
opacity: 0.5;
-webkit-transform: rotate(-35deg);
-moz-transform: rotate(-35deg);
transform: rotate(-35deg);
font-weight: bold;
white-space: nowrap;
display: inline-block;">
ملغي
</span>
</div>
</div>
</t>