<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <!-- email template to sent to partner with nonconformity informations -->
    <data noupdate="1">
        <record id="email_template_nonconformity" model="mail.template">
            <field name="name">Nonconformity</field>
            <field name="email_from">test@test.it</field>
            <field name="subject">Nonconformity N° ${object.id}: ${object.name}</field>
            <field name="email_to">${object.quality_contact_email}</field>
            <field
                name="model_id"
                ref="mgmtsystem_nonconformity.model_mgmtsystem_nonconformity"
            />
            <field name="auto_delete" eval="True" />
            <field name="lang">${object.partner_id.lang}</field>
            <field name="body_html">
                <![CDATA[
                    <p>Dear ${object.quality_contact_name},<br/><br/>
                    in attachment you have the Nonconformity report:<br/>
                    <strong>Nonconformity N°</strong>: ${object.id}<br/>
                    <strong>Name</strong>: ${object.name}<br/>
                    <strong>Description</strong>: ${object.description}<br/>
                    <br/>
                    Best regards<br>
                    </p>
                      ]]>
            </field>
        </record>
    </data>
</odoo>
