diff options
| author | Amit Patel <apa@tinyerp.com> | 2012-09-12 11:13:36 +0530 |
|---|---|---|
| committer | Amit Patel <apa@tinyerp.com> | 2012-09-12 11:13:36 +0530 |
| commit | ec930cd97decfbe1cd138b638d081536bb9632e2 (patch) | |
| tree | 23bcb442d5ff6aaf16d80c28044a16eb8c4c794c /addons/mail/data | |
| parent | d52e25483482b464c37695abf8d24e94598f3516 (diff) | |
| parent | f1f23c52ea1601b7588a91497ba46e5b826719b7 (diff) | |
[MEREGE]:trunk
bzr revid: apa@tinyerp.com-20120912054336-9qq9zfewjh4f9432
Diffstat (limited to 'addons/mail/data')
| -rw-r--r-- | addons/mail/data/mail_demo.xml | 34 | ||||
| -rw-r--r-- | addons/mail/data/mail_group_data.xml | 16 |
2 files changed, 22 insertions, 28 deletions
diff --git a/addons/mail/data/mail_demo.xml b/addons/mail/data/mail_demo.xml index e3d7c2ab1e1..1350fd33547 100644 --- a/addons/mail/data/mail_demo.xml +++ b/addons/mail/data/mail_demo.xml @@ -3,49 +3,43 @@ <data noupdate="1"> <record id="message_blogpost0" model="mail.message"> - <field name="subject">Internal company announce</field> <field name="model">mail.group</field> - <field name="res_id" ref="group_all_employees"/> - <field name="content_subtype">html</field> - <field name="body_html"><![CDATA[Your monthly meal vouchers arrived. You can get them at Christine's office. -This month you also have 250 EUR of eco-checks for all employees that worked with us since 1 year minimum.]]></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="type">comment</field> - <field name="user_id" ref="base.user_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="content_subtype">html</field> - <field name="body_html"><![CDATA[Great.]]></field> + <field name="body"><![CDATA[Great.]]></field> <field name="parent_id" ref="message_blogpost0"/> <field name="type">comment</field> - <field name="user_id" ref="base.user_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="content_subtype">html</field> - <field name="body_html"><![CDATA[Yes, that's a good news.]]></field> + <field name="body">Thanks, but where is Christine's office, if I may ask? (I'm new here)</field> <field name="parent_id" ref="message_blogpost0"/> <field name="type">comment</field> - <field name="user_id" ref="base.user_demo"/> </record> <record id="message_blogpost0_comment2" model="mail.message"> <field name="model">mail.group</field> <field name="res_id" ref="group_all_employees"/> - <field name="content_subtype">html</field> - <field name="body_html"><![CDATA[Sure: Curabitur tempor bibendum diam, et euismod ante rutrum vel. - -In quis purus neque. Integer sodales dolor eu elit fringilla blandit. Maecenas lacus nisi, facilisis sit amet viverra eu, tristique vel augue. -Donec viverra congue dui eu blandit. In lacinia molestie nulla, ut sagittis risus feugiat eu. - -Check the file in attachment for more information ! (third comment)]]></field> + <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="parent_id" ref="message_blogpost0"/> <field name="type">comment</field> - <field name="user_id" ref="base.user_root"/> + </record> + + <record id="message_blogpost0_comment1_2" 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="parent_id" ref="message_blogpost0_comment1"/> + <field name="type">comment</field> </record> <record model="ir.config_parameter" id="user_mail_alias"> diff --git a/addons/mail/data/mail_group_data.xml b/addons/mail/data/mail_group_data.xml index 2152706d056..53720926a5c 100644 --- a/addons/mail/data/mail_group_data.xml +++ b/addons/mail/data/mail_group_data.xml @@ -13,16 +13,16 @@ </record> <!-- notify all employees of module installation --> - <function model="mail.group" name="message_append_note"> - <!-- ids, subject, body, parent_id=False, type='notification', content_subtype='html' --> - <value eval="[ref('mail.group_all_employees')]"/> - <value>Welcome to OpenERP!</value> - <value>Your homepage is a summary of messages you received and key information about documents you follow. + <record model="mail.message" id="module_install_notification"> + <field name="model">mail.group</field> + <field name="res_id" ref="mail.group_all_employees"/> + <field name="type">notification</field> + <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.</value> - </function> - +To setup your preferences (name, email signature, avatar), click on the top right corner.</field> + </record> </data> </openerp> |
