跳至內容
選單
此問題已被標幟
2757 瀏覽次數

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 !

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
7月 25
4756
2
12月 24
7868
0
12月 24
1481
2
11月 24
28649
2
5月 24
7562