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

I have to rename report based on some condition though it's working fine.

But attachment is creating whenever we try to compose mail through send by email, though I clicked on cancel button. I don't want to create this unit i'll click on send.

<report  id="sale.report_sale_order"
        string="Quotation / Order"
        model="sale.order"
        report_type="qweb-pdf"
        file="sale.report_saleorder"
        name="sale.report_saleorder"   attachment="((object.state not in ('sale','done')) and ('Quotation '+object.name.replace('SO',''))+'.pdf') or ((object.state in ('sale','done')) and ('Sale Order '+object.name.replace('SO',''))+'.pdf')"
        attachment_use = "True"    />

Thanks !

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
lug 25
4782
2
dic 24
7889
0
dic 24
1494
2
nov 24
28684
2
mag 24
7577