İçereği Atla
Menü
Bu soru işaretlendi
5425 Görünümler

I am trying to replace the existing sales order / quotation PDF report with a custom one:

<!-- REPLACE EXISTING TEMPLATE SALE ORDER -->
<report
id="sale.report_saleorder"
model="sale.order"
string="Presupuesto / Pedido"
report_type="qweb-pdf"
name="custom_reports.saleorder_custom"
file="custom_reports.saleorder_custom"
attachment = "(object.state in ('open','paid')) and ('P_'+(object.number or '').replace('/','')+'.pdf')"
/>
<record id="sale.report_saleorder" model="ir.actions.report.xml">
<field name="paperformat_id" ref="report.paperformat_euro"/>
</record>

But unfortunatelly I am getting duplicated entries (the new entry and the old standard one which fails) in the PRINT menu.

Any tips on what I am missing?

There must be something small as similar approach works fine for invoices.

Thanks

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Tem 23
6782
0
Eki 21
4920
3
Şub 24
11800
1
Ağu 15
4890
0
Ara 17
3526