Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Replacing default sale order / quote PDF report in XML, something wrong as I get duplicated entries.

By
E.M.
on 9/29/15, 4:45 PM 476 views

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/29/15, 4:45 PM
Seen: 476 times
Last updated: 9/29/15, 4:47 PM