I want to write a custom module to replace mail templates.
Those templates are included in base Odoo addons, such as sale:
The sale.order
template ìs provided by the file /sale/data/mail_template_data.xml
This template is as follows:
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!--Email template -->
<record id="email_template_edi_sale" model="mail.template">
<field name="name">Sales Order - Send by Email</field>¬
...
</odoo>
As the custom module wants to replace this standard base template:
- Can a record with the same id be provided by the custom module to replace this mail template?
- What shall be writte in
<data noupdate>
? - What will happen if module
sale
is updated?
Odoo 10 community edition.