Skip to content
Snippets Groups Projects
Commit 7b8b4779 authored by Olivier Colson's avatar Olivier Colson
Browse files

[FIX] crm: demo data: properly link attachment to lead and assign main attachment field

For consistency between the behavior of the platform and the demo data.
parent 5c6673c4
No related branches found
No related tags found
No related merge requests found
......@@ -446,6 +446,8 @@ Andrew</p>]]></field>
<field name="datas">bWlncmF0aW9uIHRlc3Q=</field>
<field name="datas_fname">YourCompany2012.doc</field>
<field name="name">YourCompany2012.doc</field>
<field name="res_model">crm.lead</field>
<field name="res_id" ref="crm_case_15"/>
</record>
<record id="msg_case15_1" model="mail.message">
<field name="subject">Plan to buy RedHat servers</field>
......@@ -475,6 +477,10 @@ Andrew</p>]]></field>
<field name="subtype_id" ref="mail.mt_comment"/>
<field name="attachment_ids" eval="[(6, 0, [ref('msg_case15_attach1')])]"/>
</record>
<!--Main attachment is usually registered by message_post, so here we must set it manually-->
<record id="crm_case_15" model="crm.lead">
<field name="message_main_attachment_id" ref="msg_case15_attach1"/>
</record>
<record id="msg_case15_3" model="mail.message">
<field name="subject">Re: Plan to buy RedHat servers</field>
<field name="model">crm.lead</field>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment