<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <data noupdate="1">
        <record id="notification_send_error_travel_report_email" model="mail.template">
            <field name="name">Error Travel Report Send</field>
            <field
                name="model_id"
                ref="pms_l10n_es.model_pms_log_institution_traveller_report"
            />
            <field
                name="subject"
            >Error: ${object.pms_property_id.name}, ${object.target_date} Error sending the Traveler report</field>
            <field
                name="email_from"
            >${object.pms_property_id.company_id.partner_id.email | safe}</field>
            <field
                name="email_to"
            >${object.pms_property_id.partner_id.email | safe}</field>
            <field name="body_html" type="html">
                <div>
                    There was an error sending the traveler report
                </div>
            </field>
        </record>
    </data>

        <record
        id="notification_send_success_travel_report_email"
        model="mail.template"
    >
            <field name="name">Success Travel Report Send</field>
            <field
            name="model_id"
            ref="pms_l10n_es.model_pms_log_institution_traveller_report"
        />
            <field
            name="subject"
        >Succes: ${object.pms_property_id.name}, ${object.target_date} Traveler report sent successfully</field>
            <field
            name="email_from"
        >${object.pms_property_id.company_id.partner_id.email | safe}</field>
            <field
            name="email_to"
        >${object.pms_property_id.partner_id.email | safe}</field>
            <field name="body_html" type="html">
                <div>
                    Traveler report sent successfully
                </div>
            </field>
        </record>

</odoo>
