[IMP] mail.message: added a child_ids relationship on message, linked to parent_id...
[odoo/odoo.git] / addons / event / email_template.xml
1 <?xml version="1.0"?>
2 <openerp>
3     <data>
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.user_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_text">
11         hello ${object.name},
12
13         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.
14
15         we thank you for your participation
16
17         best regards
18         </field>
19         </record>
20
21     </data>
22     <data>
23
24         <record id="confirmation_registration" model="email.template">
25         <field name="name">Confirmation of the Registration</field>
26         <field name="model_id" ref="event.model_event_registration"/>
27         <field name="email_from" >${object.user_id.user_email or object.company_id.email or 'noreply@' + object.company_id.name + '.com'}</field>
28         <field name="email_to" >${object.email}</field>
29         <field name="subject">Your registration at ${object.event_id.name}</field>
30         <field name="body_text">
31         hello ${object.name},
32
33         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.
34
35         we thank you for your participation
36
37         best regards
38         </field>
39         </record>
40
41         <!-- Default Values -->
42         <record model="ir.values" id="default_value_event_mail_confirmation">
43             <field name="name">default_email_event</field>
44             <field name="key">default</field>
45             <field name="key2"></field>
46             <field eval="ref('confirmation_event')" name="value_unpickle"/>
47             <field name="model">event.type</field>
48         </record>
49         <record model="ir.values" id="default_value_registration_mail_confirmation">
50             <field name="name">default_email_registration</field>
51             <field name="key">default</field>
52             <field name="key2"></field>
53             <field eval="ref('confirmation_registration')" name="value_unpickle"/>
54             <field name="model">event.type</field>
55         </record>
56
57     </data>
58 </openerp>