diff options
| author | Arnaud Pineux <api@openerp.com> | 2012-11-16 09:50:42 +0100 |
|---|---|---|
| committer | Arnaud Pineux <api@openerp.com> | 2012-11-16 09:50:42 +0100 |
| commit | dc3f98308d1fb9bca54dcc2d0dd0e4d7f66ca5aa (patch) | |
| tree | 082c6c0cca740c774b6b24dc040222e4ec39e948 /addons/mail/data | |
| parent | 74a18de6cb6e4731cc75a53f1f3d06849dbadad7 (diff) | |
| parent | 3c8626efbbe8b4d60154d0b9660cc9c0c0373e0b (diff) | |
[FIX] audittrail
lp bug: https://launchpad.net/bugs/1055813 fixed
bzr revid: api@openerp.com-20121116085042-v8q78tof9jyuec07
Diffstat (limited to 'addons/mail/data')
| -rw-r--r-- | addons/mail/data/mail_demo.xml | 61 | ||||
| -rw-r--r-- | addons/mail/data/mail_group_data.xml | 11 |
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 <i>Settings</i> 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> |
