[IMP] crm: improved template and comments.

bzr revid: tde@openerp.com-20130314110239-1k1c8jrbax94gp8m
This commit is contained in:
Thibault Delavallée 2013-03-14 12:02:39 +01:00
parent 2ca8ff41c3
commit 4ae0b68452
2 changed files with 6 additions and 5 deletions

View File

@ -221,14 +221,15 @@
<field name="relation_field">section_id</field>
</record>
<!--Definition of an email template with an empty body that will be used in opportunity mailing. Used to give a
basis for email recipients, name and to ease the definition of a further elaborated template. -->
<!--Definition of an email template with an empty body that will be used in opportunity mailing.
Used to give a basis for email recipients, name and to ease the definition of a further
elaborated template. -->
<record id="lead_template" model="email.template">
<field name="name">Lead/Opportunity Mass Mail</field>
<field name="model_id" ref="crm.model_crm_lead"/>
<field name="auto_delete" eval="True"/>
<field name="partner_to">${object.partner_id and object.partner_id.id}</field>
<field name="email_to">${! object.partner_id and object.email}</field>
<field name="email_to">${not object.partner_id and object.email_from}</field>
<field name="body_html"></field>
</record>

View File

@ -597,8 +597,8 @@
'default_template_id': ref('crm.lead_template'),
}"/>
<!--Definition of an email template with an empty body that will be used in opportunity mailing. Used to give a
basis for email recipients, name and to ease the definition of a further elaborated template. -->
<!--Update of email_template defined in crm_lead_data, to add ref_ir_act_window
allowing to have a well formed email template (context action considered as set). -->
<record id="lead_template" model="email.template">
<field name="ref_ir_act_window" ref="crm.action_lead_mass_mail"/>
</record>