summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-01-08 15:55:35 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-01-08 15:55:35 +0700
commit579a43b9f471b8d6ee9af711ebe2c66994d4a63e (patch)
tree2aa090a0936dbc5ed12b96a47a9e244f537a1c0e
parent25db6100738bb880081f229e2b4facb75c4c9417 (diff)
<MIqdad> fix duplicate watermark not showing
-rw-r--r--fixco_custom/views/report_picking_list_new.xml39
1 files changed, 23 insertions, 16 deletions
diff --git a/fixco_custom/views/report_picking_list_new.xml b/fixco_custom/views/report_picking_list_new.xml
index a91be31..448ca97 100644
--- a/fixco_custom/views/report_picking_list_new.xml
+++ b/fixco_custom/views/report_picking_list_new.xml
@@ -47,6 +47,25 @@
tfoot {
display: table-footer-group;
}
+ .page {
+ position: relative;
+ min-height: 100vh;
+ }
+
+ .duplicate-watermark {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%) rotate(-30deg);
+ opacity: 0.15;
+ z-index: 0;
+ pointer-events: none;
+ }
+
+ .duplicate-watermark img {
+ width: 400px;
+ }
+
</style>
<t t-foreach="docs" t-as="o">
@@ -61,25 +80,13 @@
<div style="text-align: center; margin-bottom: 15px;">
<!-- Barcode -->
<div style="text-center: center; margin-bottom: 10px;">
- <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('QR', o.name, 100, 100)"
+ <img t-att-src="'https://xpanel.fixcomart.com/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('QR', o.name, 100, 100)"
style="width:250px;height:250px;" alt="QR Code"/>
</div>
<t t-if="was_printed_map.get(o.id)">
- <div style="
- position: absolute;
- left: 25%;
- right: 150%;
- bottom: 500%;
- top: 30%;
- width: 500px;
- height: 500px;
- transform: translate(-50%, -50%) rotate(-20deg);
- opacity: 0.50;
- z-index: 9999;
- pointer-events: none;
- ">
- <img t-att-src="duplicate_stamp" style="width:50%; height:50%;" />
- </div>
+ <div class="duplicate-watermark">
+ <img t-att-src="duplicate_stamp"/>
+ </div>
</t>
<h1 style="margin: 0; font-size: 24px; font-weight: bold;" t-field="o.name"/>
<div style="font-size: 18px; font-weight: bold; margin-top: 5px;">