Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1141 Visualizzazioni

i want to make the quotation invalid in cancel state



Avatar
Abbandona
Autore Risposta migliore
Inherit the pdf report template and add the above snippet of code to get invalid header in cancel state
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_saleorder_document_inherited" inherit_id="sale.report_saleorder_document">
<!-- Replace the stamp image with a red header text -->
<xpath expr="//div[@t-if='doc.client_order_ref']" position="before">
<div t-if="doc.state == 'cancel'" class="row mb-4">
<div class="col-12">
<div style="background-color: #FF0000; color: white; text-align: center; padding: 10px; font-size: 24px; font-weight: bold; border-radius: 5px;">
INVALID QUOTATION
</div>
</div>
</div>
</xpath>
</template>
</odoo>



Regards,

Nikhil

Accurates

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
lug 25
760
1
giu 25
795
2
giu 25
1004
2
mag 25
1104
1
set 25
3882