[FIX] event: email sending fixed

bzr revid: qdp-launchpad@openerp.com-20120228115844-wj27gviqmzsd05yy
This commit is contained in:
Quentin (OpenERP) 2012-02-28 12:58:44 +01:00
parent 86a476d466
commit 78b15c2af4
1 changed files with 4 additions and 4 deletions

View File

@ -5,10 +5,10 @@
<field name="name">Confirmation of the Event</field>
<field name="model_id" ref="event.model_event_registration"/>
<field name="email_from" >${object.user_id.user_email or object.company_id.email or 'noreply@localhost'}</field>
<field name="email_to" >${object.email_from}</field>
<field name="email_to" >${object.email}</field>
<field name="subject">Ticket for ${object.event_id.name}</field>
<field name="body_text">
hello ${object.contact_id.name},
hello ${object.name},
The event ${object.event_id.name} that you registered from 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.
@ -25,10 +25,10 @@
<field name="name">Confirmation of the Registration</field>
<field name="model_id" ref="event.model_event_registration"/>
<field name="email_from" >${object.user_id.user_email or object.company_id.email or 'noreply@localhost'}</field>
<field name="email_to" >${object.email_from}</field>
<field name="email_to" >${object.email}</field>
<field name="subject">Ticket for ${object.event_id.name}</field>
<field name="body_text">
hello ${object.contact_id.name},
hello ${object.name},
We confirm your registration to the event ${object.event_id.name} to be held from ${object.event_id.date_begin} to ${object.event_id.date_end}