Allow our users to modify mail template more easily - make the list accessible from the settings - give them a link to update relevant views to update header/footer - make the list and form of templates more readable - add a description on templates, allowing to describe their usage In order to better filter templates, a new category field is added that is computed based on active flag, description being set and the template having an xml ID. Master templates are active, with a description and an xml ID. Update master data to add description on some templates. task-2944770 closes odoo/odoo#101730 X-original-commit: dfa867343ee8842f3f127ac62584fd471b41dde1 Related: odoo/enterprise#32079 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
38 lines
1.8 KiB
XML
38 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<record id="mail_template_repair_quotation" model="mail.template">
|
|
<field name="name">Repair: Quotation</field>
|
|
<field name="model_id" ref="repair.model_repair_order"/>
|
|
<field name="subject">{{ object.partner_id.name }} Repair Orders (Ref {{ object.name or 'n/a' }})</field>
|
|
<field name="email_from">{{ (object.create_uid.email_formatted or user.email_formatted) }}</field>
|
|
<field name="partner_to">{{ object.partner_id.id }}</field>
|
|
<field name="description">Sent manually when clicking on "Send Quotation" on a repair order</field>
|
|
<field name="body_html" type="html">
|
|
<div style="margin: 0px; padding: 0px;">
|
|
<p style="margin: 0px; padding: 0px;font-size: 13px;">
|
|
Hello <t t-out="object.partner_id.name or ''">Brandon Freeman</t>,<br/>
|
|
Here is your repair order <strong t-out="object.name or ''">RO/00004</strong>
|
|
<t t-if="object.invoice_method != 'none'">
|
|
amounting in <strong><t t-out="format_amount(object.amount_total, object.pricelist_id.currency_id) or ''">$ 100.00</t>.</strong><br/>
|
|
</t>
|
|
<t t-else="">
|
|
.<br/>
|
|
</t>
|
|
You can reply to this email if you have any questions.
|
|
<br/><br/>
|
|
Thank you,
|
|
<t t-if="user.signature">
|
|
<br />
|
|
<t t-out="user.signature or ''">--<br/>Mitchell Admin</t>
|
|
</t>
|
|
</p>
|
|
</div></field>
|
|
<field name="report_template" ref="action_report_repair_order"/>
|
|
<field name="report_name">{{ (object.name or '').replace('/','_') }}</field>
|
|
<field name="lang">{{ object.partner_id.lang }}</field>
|
|
<field name="auto_delete" eval="True"/>
|
|
</record>
|
|
</data>
|
|
</odoo>
|