<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data noupdate="1">
        <!-- TDE note: this should not be a mail template -->
        <record id="mail_template_base_install_request" model="mail.template">
            <field name="name">Mail: Install Request</field>
            <field name="model_id" ref="base_install_request.model_base_module_install_request"/>
            <field name="subject">Module Activation Request for "{{ object.module_id.shortdesc }}"</field>
            <field name="email_from">{{ object.user_id.email_formatted or user.email_formatted }}</field>
            <field name="partner_to" >{{ ctx['partner'].id}}</field>
            <field name="use_default_to" eval="False"/>
            <field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
    <p style="margin: 0px; padding: 0px; font-size: 13px;">
        Hello,
        <br/><br/>
        <span style="font-weight: bold;" t-out="object.user_id.name"/> has requested to activate the <span style="font-weight: bold;" t-out="object.module_id.shortdesc"/> module.
        <br/><br/>
        <blockquote>
            <t t-out="object.body_html"/>
        </blockquote>
        <br/><br/>
        <a t-attf-style="background-color: {{object.user_id.company_id.email_secondary_color or '#875A7B'}}; padding:8px 16px 8px 16px; text-decoration:none; color: {{object.user_id.company_id.email_primary_color or '#FFFFFF'}}; border-radius:5px" t-attf-href="/odoo/{{ object.module_id.id }}/action-base_install_request.action_base_module_install_review?menu_id={{ ctx['menu_id'] }}">Review Request</a>
        <br/><br/>
        Thanks,
        <t t-if="not is_html_empty(object.user_id.signature)">
            <br/><br/>
            <div>--<br/><t t-out="object.user_id.signature or ''">Mitchell Admin</t></div>
        </t>
        <br/><br/>
    </p>
</div>
            </field>
            <field name="lang">{{ ctx['partner'].lang or user.lang }}</field>
            <field name="auto_delete" eval="True"/>
        </record>
    </data>
</odoo>
