diff options
| author | Thibault Delavallée <tde@openerp.com> | 2012-11-14 16:05:00 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2012-11-14 16:05:00 +0100 |
| commit | 4e2609f35fc9c7a31567312f63fd53285695f78d (patch) | |
| tree | 89e26da0b4d6743505e67bca58448068f60a0f71 /addons/mail/data | |
| parent | f0569f7133227fc07e9798e451b757205b5429e7 (diff) | |
| parent | 3b31bdd2951c9a43efd8e320de5bee5f3563af82 (diff) | |
[MERGE] Mail: improve incoming/outgoing emails behavior
Main:
- updated overall code to match the new mail openerp tools
- message_route: after checking the headers to find if the incoming email is a reply in an existing discussion, it checks whether the email is a reply to a private discussion (without model, res_id), based on the message_id of the mail; it then relies on the aliases then fetchmail, as before
- incoming emails and quick posting through Chatter now calls message_post_user_api (based on old message_post_api), that performs some things the composer do on its side (adding recipients of a replied message, cleaning the content)
Misc:
- general: updated modules according to the new tools mail functions
- general: message related to a new app installation now have a comment subtype, meaning they will effectively be pushed
- mail: improved set_message_read, fixed a bug with message_id
- fetchmail: fixed a bug in fetchmail module about non-existing variable
- portal: updated demo data
bzr revid: tde@openerp.com-20121114150500-pzj8zhyt5e29aekb
Diffstat (limited to 'addons/mail/data')
| -rw-r--r-- | addons/mail/data/mail_demo.xml | 16 | ||||
| -rw-r--r-- | addons/mail/data/mail_group_data.xml | 9 |
2 files changed, 14 insertions, 11 deletions
diff --git a/addons/mail/data/mail_demo.xml b/addons/mail/data/mail_demo.xml index f189b10650c..66dc47ad5b3 100644 --- a/addons/mail/data/mail_demo.xml +++ b/addons/mail/data/mail_demo.xml @@ -11,44 +11,48 @@ <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 --> diff --git a/addons/mail/data/mail_group_data.xml b/addons/mail/data/mail_group_data.xml index 2daa69b283b..aae30226bf2 100644 --- a/addons/mail/data/mail_group_data.xml +++ b/addons/mail/data/mail_group_data.xml @@ -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.<br /> +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.<br /> +To setup your preferences (name, email signature, avatar), click on the top right corner.</p>]]></field> </record> </data> </openerp> |
