odoo/addons/event/email_template.xml

59 lines
2.6 KiB
XML

<?xml version="1.0"?>
<openerp>
<data>
<record id="confirmation_event" model="email.template">
<field name="name">Confirmation of the Event</field>
<field name="model_id" ref="event.model_event_registration"/>
<field name="email_from" >${object.user_id.email or object.company_id.email or 'noreply@' + object.company_id.name + '.com'}</field>
<field name="email_to" >${object.email}</field>
<field name="subject">Your registration at ${object.event_id.name}</field>
<field name="body_text">
hello ${object.name},
The event ${object.event_id.name} that you registered for is confirmed and will be held from ${object.event_id.date_begin} to ${object.event_id.date_end}. For any further information please contact our event department.
we thank you for your participation
best regards
</field>
</record>
</data>
<data>
<record id="confirmation_registration" model="email.template">
<field name="name">Confirmation of the Registration</field>
<field name="model_id" ref="event.model_event_registration"/>
<field name="email_from" >${object.user_id.email or object.company_id.email or 'noreply@' + object.company_id.name + '.com'}</field>
<field name="email_to" >${object.email}</field>
<field name="subject">Your registration at ${object.event_id.name}</field>
<field name="body_text">
hello ${object.name},
We confirm you that your registration to the event ${object.event_id.name} has been recorded. You will automatically receive an email providing you more practical information (such as the schedule, the plan...) as soon as the event will be confirmed to be held.
we thank you for your participation
best regards
</field>
</record>
<!-- Default Values -->
<record model="ir.values" id="default_value_event_mail_confirmation">
<field name="name">default_email_event</field>
<field name="key">default</field>
<field name="key2"></field>
<field eval="ref('confirmation_event')" name="value_unpickle"/>
<field name="model">event.type</field>
</record>
<record model="ir.values" id="default_value_registration_mail_confirmation">
<field name="name">default_email_registration</field>
<field name="key">default</field>
<field name="key2"></field>
<field eval="ref('confirmation_registration')" name="value_unpickle"/>
<field name="model">event.type</field>
</record>
</data>
</openerp>