Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2666 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Jul 25
4649
2
Des 24
7785
0
Des 24
1409
2
Nov 24
28561
2
Mei 24
7500