Skip to Content
Menu
This question has been flagged
1 Reply
994 Views

Hi,


I've created a new qweb report to substitute the default "Quotation / Order".


Here's the code:

<record id="pedido_interno_template" model="ir.actions.report">
<field name="name">Pedido Interno</field>
<field name="model">sale.order</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">new_report.pedido_interno_template</field>
<field name="report_file">new_report.pedido_interno_template</field>
<field name="binding_model_id" ref="sale.model_sale_order"/>
<field name="binding_type">report</field>
</record>

This code adds my "Pedido Interno" report to Print Menu, but...

Whenever I'm sending an e-mail the default report used on the PDF is still the "Quotation / Order" and not my new report




How can I make my new report the default report for emails ?

Avatar
Discard
Best Answer

There is a setting for this in the email template being used (Sale Orders: Send by email)

Advanced Settings tab > Optional report to print and attach

Avatar
Discard
Author

Thanks! Worked perfectly!