summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorVidhin Mehta <vme@tinyerp.com>2013-05-23 10:47:58 +0530
committerVidhin Mehta <vme@tinyerp.com>2013-05-23 10:47:58 +0530
commitc745a1d882d20591d68ae1de1c0670dc053aa660 (patch)
treee7ee0939964fa98ccf963d37bfe30eb867c9848a /addons/plugin/plugin_handler.py
parent75d69f5c8d62e3dafd401e19c9cb8334458e20ec (diff)
parent3c0b65f5d10785b543a67421a654ffd0244952d6 (diff)
[MERGE]Trunk.
bzr revid: vme@tinyerp.com-20130514120110-gi2oehiapff1n3p0 bzr revid: vme@tinyerp.com-20130523051758-70etk8qp90k8e9ou
Diffstat (limited to 'addons/plugin/plugin_handler.py')
-rw-r--r--addons/plugin/plugin_handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/plugin/plugin_handler.py b/addons/plugin/plugin_handler.py
index c278db2f19a..fc6c874fab5 100644
--- a/addons/plugin/plugin_handler.py
+++ b/addons/plugin/plugin_handler.py
@@ -110,7 +110,7 @@ class plugin_handler(osv.osv_memory):
model_obj.message_post(cr, uid, [res_id],
body=msg.get('body'),
subject=msg.get('subject'),
- type='email',
+ type='comment' if model == 'res.partner' else 'email',
parent_id=msg.get('parent_id'),
attachments=msg.get('attachments'))
notify = _("Mail successfully pushed")