summaryrefslogtreecommitdiff
path: root/addons/mail/data
diff options
context:
space:
mode:
authorRandhir Mayatra (OpenERP) <rma@tinyerp.com>2012-11-19 16:38:24 +0530
committerRandhir Mayatra (OpenERP) <rma@tinyerp.com>2012-11-19 16:38:24 +0530
commitd23c5c8dca985dd0fde280c9237dee85b7bb4d7a (patch)
treecf03bc2a74a1d9e93b5ef571fb78070c09c9857b /addons/mail/data
parentf4ab81afb8285a8157258232c5fb2a6745ae7f72 (diff)
parent66afff1b52b7ab6ab8c340e18960fb6367cfb714 (diff)
[MERGE]merge with trunk
bzr revid: rma@tinyerp.com-20121119110824-rj4y32rfbszqln7g
Diffstat (limited to 'addons/mail/data')
-rw-r--r--addons/mail/data/mail_demo.xml61
-rw-r--r--addons/mail/data/mail_group_data.xml11
2 files changed, 56 insertions, 16 deletions
diff --git a/addons/mail/data/mail_demo.xml b/addons/mail/data/mail_demo.xml
index bda93fc485d..a5eaa63956a 100644
--- a/addons/mail/data/mail_demo.xml
+++ b/addons/mail/data/mail_demo.xml
@@ -2,49 +2,90 @@
<openerp>
<data noupdate="1">
+ <!-- Update demo user to avoid mail bombing -->
+ <record id="base.partner_demo" model="res.partner">
+ <field name="notification_email_send">none</field>
+ </record>
+
+ <!-- Pushed to all employees -->
<record id="message_blogpost0" model="mail.message">
<field name="model">mail.group</field>
<field name="res_id" ref="mail.group_all_employees"/>
- <field name="body">Your monthly meal vouchers arrived. You can get them at Christine's office.
-This month you also get 250 EUR of eco-vouchers if you have been in the company for more than a year.</field>
+ <field name="body"><![CDATA[<p>Your monthly meal vouchers arrived. You can get them at Christine's office.</p>]]></field>
<field name="type">comment</field>
<field name="subtype_id" ref="mt_comment"/>
+ <field name="author_id" ref="base.partner_root"/>
</record>
-
<record id="message_blogpost0_comment0" model="mail.message">
<field name="model">mail.group</field>
<field name="res_id" ref="group_all_employees"/>
- <field name="body"><![CDATA[Great.]]></field>
+ <field name="body"><![CDATA[<p>Oh, I had forgotten. This month you also get 250 EUR of eco-vouchers if you have been in the company for more than a year.</p>]]></field>
<field name="parent_id" ref="message_blogpost0"/>
<field name="type">comment</field>
<field name="subtype_id" ref="mt_comment"/>
+ <field name="author_id" ref="base.partner_root"/>
</record>
-
<record id="message_blogpost0_comment1" model="mail.message">
<field name="model">mail.group</field>
<field name="res_id" ref="group_all_employees"/>
- <field name="body">Thanks, but where is Christine's office, if I may ask? (I'm new here)</field>
+ <field name="body"><![CDATA[<p>Thanks! Could you please remind me where is Christine's office, if I may ask? I'm new here!</p>]]></field>
<field name="parent_id" ref="message_blogpost0"/>
<field name="type">comment</field>
<field name="subtype_id" ref="mt_comment"/>
+ <field name="author_id" ref="base.partner_demo"/>
</record>
-
+ <!-- This one is starred for having mailboxes with demo data -->
<record id="message_blogpost0_comment2" model="mail.message">
<field name="model">mail.group</field>
<field name="res_id" ref="group_all_employees"/>
- <field name="body">Building B3, second floor on the right :-)</field>
+ <field name="body"><![CDATA[<p>Building B3, second floor on the right :-).</p>]]></field>
<field name="parent_id" ref="message_blogpost0"/>
<field name="type">comment</field>
<field name="subtype_id" ref="mt_comment"/>
+ <field name="author_id" ref="base.partner_root"/>
+ <field name="favorite_user_ids" eval="[(6, 0, [ref('base.user_root'), ref('base.user_demo')])]"/>
</record>
-
<record id="message_blogpost0_comment3" model="mail.message">
<field name="model">mail.group</field>
<field name="res_id" ref="group_all_employees"/>
- <field name="body">Great news, I need to buy a new fridge, I think I can pay it with the eco-vouchers!</field>
+ <field name="body"><![CDATA[<p>Many thanks. Actually that's good news, next year I'll have to buy a new fridge, I think I will pay it with the eco-vouchers!</p>]]></field>
<field name="parent_id" ref="message_blogpost0"/>
<field name="type">comment</field>
<field name="subtype_id" ref="mt_comment"/>
+ <field name="author_id" ref="base.partner_demo"/>
+ </record>
+
+ <!-- Demo user and admin conversation -->
+ <record id="message_discussion" model="mail.message">
+ <field name="body">Hello Demo User! I was wondering whether you had some issues with our secret task about putting cats everywhere in OpenERP.</field>
+ <field name="type">comment</field>
+ <field name="subtype_id" ref="mt_comment"/>
+ <field name="author_id" ref="base.partner_root"/>
+ <field name="partner_ids" eval="[(6, 0, [ref('base.partner_demo')])]"/>
+ </record>
+ <record id="message_discussion_answer1" model="mail.message">
+ <field name="body">No specific issues, I think everything is clear.</field>
+ <field name="parent_id" ref="message_discussion"/>
+ <field name="type">comment</field>
+ <field name="subtype_id" ref="mt_comment"/>
+ <field name="author_id" ref="base.partner_demo"/>
+ <field name="partner_ids" eval="[(6, 0, [ref('base.partner_root')])]"/>
+ </record>
+ <record id="message_discussion_answer2" model="mail.message">
+ <field name="body">Ow, just to be sure... we were talking about lolcats, right ?</field>
+ <field name="parent_id" ref="message_discussion"/>
+ <field name="type">comment</field>
+ <field name="subtype_id" ref="mt_comment"/>
+ <field name="author_id" ref="base.partner_demo"/>
+ <field name="partner_ids" eval="[(6, 0, [ref('base.partner_root')])]"/>
+ </record>
+ <record id="message_discussion_answer3" model="mail.message">
+ <field name="body">Absolutely!</field>
+ <field name="parent_id" ref="message_discussion"/>
+ <field name="type">comment</field>
+ <field name="subtype_id" ref="mt_comment"/>
+ <field name="author_id" ref="base.partner_root"/>
+ <field name="partner_ids" eval="[(6, 0, [ref('base.partner_demo')])]"/>
</record>
</data>
diff --git a/addons/mail/data/mail_group_data.xml b/addons/mail/data/mail_group_data.xml
index 11d0ee7d04b..64d989f9e9d 100644
--- a/addons/mail/data/mail_group_data.xml
+++ b/addons/mail/data/mail_group_data.xml
@@ -9,7 +9,7 @@
<record model="mail.group" id="group_all_employees">
<field name="name">Whole Company</field>
<field name="group_ids" eval="[(4, ref('base.group_user'))]"/>
- <field name="description">Discussion about best sales practices and deals.</field>
+ <field name="description">General announces for all employees.</field>
</record>
<!-- notify all employees of module installation -->
@@ -17,12 +17,11 @@
<field name="model">mail.group</field>
<field name="res_id" ref="mail.group_all_employees"/>
<field name="type">notification</field>
+ <field name="subtype_id" ref="mail.mt_comment"/>
<field name="subject">Welcome to OpenERP!</field>
- <field name="body">Your homepage is a summary of messages you received and key information about documents you follow.
-
-The top menu bar contains all applications you installed. You can use this &lt;i&gt;Settings&lt;/i&gt; menu to install more applications, activate others features or give access to new users.
-
-To setup your preferences (name, email signature, avatar), click on the top right corner.</field>
+ <field name="body"><![CDATA[<p>Your homepage is a summary of messages you received and key information about documents you follow.</p><p>
+The top menu bar contains all applications you installed. You can use the <i>Settings</i> menu to install more applications, activate others features or give access to new users.</p><p>
+To setup your preferences (name, email signature, avatar), click on the top right corner.</p>]]></field>
</record>
</data>
</openerp>