<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data noupdate="1">

        <!-- Email template for email validation (for karma purpose) -->
        <record id="validation_email" model="mail.template">
            <field name="name">Forum: Email Verification</field>
            <field name="model_id" ref="base.model_res_users"/>
            <field name="subject">{{ object.company_id.name }} Profile validation</field>
            <field name="email_from">{{ object.company_id.email_formatted or object.email_formatted }}</field>
            <field name="email_to" eval="False"/>
            <field name="use_default_to" eval="True"/>
            <field name="description">Sent to forum visitors to confirm their mail address</field>
            <field name="email_layout_xmlid">mail.mail_notification_layout</field>
            <field name="email_layout_force_header" eval="True"/>
            <field name="email_layout_force_footer" eval="True"/>
            <field name="body_html" type="html"><t>
                            Hello <t t-out="object.name or ''">Marc Demo</t>,<br /><br />
                            You have been invited to validate your email in order to get access to "<t t-out="object.company_id.name or ''">YourCompany</t>" website.
                            To validate your email, please click on the button below:
                            <div style="margin: 32px 0px 32px 0px;">
                                <a t-att-href="ctx.get('token_url')"
                                    t-attf-style="background-color: {{object.company_id.email_secondary_color or '#875A7B'}}; padding: 8px 16px 8px 16px; text-decoration: none; color: {{object.company_id.email_primary_color or '#FFFFFF'}}; border-radius: 5px; font-size:13px;">
                                    Validate my account
                                </a>
                            </div>
                            Thanks for your participation!
            </t></field>
            <field name="lang">{{ object.lang }}</field>
            <field name="auto_delete" eval="True"/>
        </record>
    </data>
</odoo>
