[FIX] website_forum: use other attr than value to init select2
[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.email or object.company_id.email or 'noreply@' + object.company_id.name + '.com')|safe}</field>
8         <field name="email_to" >${object.email|safe}</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_located.strftime('%Y-%m-%d %H:%M:%S (%Z)')} to ${object.event_id.date_end_located.strftime('%Y-%m-%d %H:%M:%S (%Z)')}.
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>
16         </record>
17
18     </data>
19     <data>
20
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')|safe}</field>
25         <field name="email_to" >${object.email|safe}</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>
33         </record>
34
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>
42         </record>
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>
49         </record>
50
51     </data>
52 </openerp>