4 <record id="confirmation_event" model="email.template">
5 <field name="name">Confirmation of the Event</field>
6 <field name="model_id" ref="event.model_event_registration"/>
7 <field name="email_from" >${object.user_id.email or object.company_id.email or 'noreply@' + object.company_id.name + '.com'}</field>
8 <field name="email_to" >${object.email}</field>
9 <field name="subject">Your registration at ${object.event_id.name}</field>
10 <field name="body_html"><![CDATA[
11 <p>Hello ${object.name},</p>
12 <p>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}.
13 For any further information please contact our event department.</p>
14 <p>Thank you for your participation!</p>
15 <p>Best regards</p>]]></field>
21 <record id="confirmation_registration" model="email.template">
22 <field name="name">Confirmation of the Registration</field>
23 <field name="model_id" ref="event.model_event_registration"/>
24 <field name="email_from" >${object.user_id.email or object.company_id.email or 'noreply@' + object.company_id.name + '.com'}</field>
25 <field name="email_to" >${object.email}</field>
26 <field name="subject">Your registration at ${object.event_id.name}</field>
27 <field name="body_html"><![CDATA[
28 <p>Hello ${object.name},</p>
29 <p>We confirm that your registration to the event ${object.event_id.name} has been recorded.
30 You will automatically receive an email providing you more practical information (such as the schedule, the agenda...) as soon as the event is confirmed.</p>
31 <p>Thank you for your participation!</p>
32 <p>Best regards</p>]]></field>
35 <!-- Default Values -->
36 <record model="ir.values" id="default_value_event_mail_confirmation">
37 <field name="name">default_email_event</field>
38 <field name="key">default</field>
39 <field name="key2"></field>
40 <field eval="ref('confirmation_event')" name="value_unpickle"/>
41 <field name="model">event.type</field>
43 <record model="ir.values" id="default_value_registration_mail_confirmation">
44 <field name="name">default_email_registration</field>
45 <field name="key">default</field>
46 <field name="key2"></field>
47 <field eval="ref('confirmation_registration')" name="value_unpickle"/>
48 <field name="model">event.type</field>