81 lines
3.1 KiB
XML
81 lines
3.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Copyright 2026 Nexa Systems Inc.
|
|
License OPL-1 (Odoo Proprietary License v1.0)
|
|
|
|
Re-point the stock "Send by Email" mail templates so the attached PDF
|
|
uses Fusion Reports branded design instead of Odoo's default layout.
|
|
|
|
`report_template_ids` is Many2many on mail.template; replacing with a
|
|
`[(6, 0, [...])]` op swaps the attached reports atomically.
|
|
|
|
noupdate="0" so upgrades re-apply the binding (counter-acts any manual
|
|
edit a user may have made in Settings → Technical → Email Templates).
|
|
-->
|
|
<odoo noupdate="0">
|
|
|
|
<!-- Sales: Send Quotation -->
|
|
<record id="sale.email_template_edi_sale" model="mail.template">
|
|
<field name="report_template_ids" eval="[(6, 0, [
|
|
ref('fusion_reports_templates.action_report_fr_sale_portrait')
|
|
])]"/>
|
|
</record>
|
|
|
|
<!-- Sales: Order Confirmation (confirmed SO) -->
|
|
<record id="sale.mail_template_sale_confirmation" model="mail.template">
|
|
<field name="report_template_ids" eval="[(6, 0, [
|
|
ref('fusion_reports_templates.action_report_fr_sale_portrait')
|
|
])]"/>
|
|
</record>
|
|
|
|
<!-- Invoice: Send -->
|
|
<record id="account.email_template_edi_invoice" model="mail.template">
|
|
<field name="report_template_ids" eval="[(6, 0, [
|
|
ref('fusion_reports_templates.action_report_fr_invoice_portrait')
|
|
])]"/>
|
|
</record>
|
|
|
|
<!-- Credit Note: Send -->
|
|
<record id="account.email_template_edi_credit_note" model="mail.template">
|
|
<field name="report_template_ids" eval="[(6, 0, [
|
|
ref('fusion_reports_templates.action_report_fr_invoice_portrait')
|
|
])]"/>
|
|
</record>
|
|
|
|
<!-- Payment: Receipt -->
|
|
<record id="account.mail_template_data_payment_receipt" model="mail.template">
|
|
<field name="report_template_ids" eval="[(6, 0, [
|
|
ref('fusion_reports_templates.action_report_fr_receipt_portrait')
|
|
])]"/>
|
|
</record>
|
|
|
|
<!-- Stock: Delivery confirmation -->
|
|
<record id="stock.mail_template_data_delivery_confirmation" model="mail.template">
|
|
<field name="report_template_ids" eval="[(6, 0, [
|
|
ref('fusion_reports_templates.action_report_fr_delivery_portrait')
|
|
])]"/>
|
|
</record>
|
|
|
|
<!-- Purchase: RFQ -->
|
|
<record id="purchase.email_template_edi_purchase" model="mail.template">
|
|
<field name="report_template_ids" eval="[(6, 0, [
|
|
ref('fusion_reports_templates.action_report_fr_purchase_portrait')
|
|
])]"/>
|
|
</record>
|
|
|
|
<!-- Purchase: Confirmed PO -->
|
|
<record id="purchase.email_template_edi_purchase_done" model="mail.template">
|
|
<field name="report_template_ids" eval="[(6, 0, [
|
|
ref('fusion_reports_templates.action_report_fr_purchase_portrait')
|
|
])]"/>
|
|
</record>
|
|
|
|
<!-- Purchase: Vendor Reminder -->
|
|
<record id="purchase.email_template_edi_purchase_reminder" model="mail.template">
|
|
<field name="report_template_ids" eval="[(6, 0, [
|
|
ref('fusion_reports_templates.action_report_fr_purchase_portrait')
|
|
])]"/>
|
|
</record>
|
|
|
|
</odoo>
|