diff options
| author | tfr@openerp.com <> | 2011-12-19 12:39:30 +0100 |
|---|---|---|
| committer | tfr@openerp.com <> | 2011-12-19 12:39:30 +0100 |
| commit | 11d93b49445c960e5ecdc05180b4dae33d2be1ec (patch) | |
| tree | 19808a4a721ca3f3887a746d5482f0972642fc04 /addons/plugin/plugin_handler.py | |
| parent | b4f3fe616ac30b5593386f29cfc170dec13c27d5 (diff) | |
[FIX] push email on partner
bzr revid: tfr@openerp.com-20111219113930-d3k4zs40r0fcz3ib
Diffstat (limited to 'addons/plugin/plugin_handler.py')
| -rw-r--r-- | addons/plugin/plugin_handler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/plugin/plugin_handler.py b/addons/plugin/plugin_handler.py index e7e8b9ea817..3c322b67bf4 100644 --- a/addons/plugin/plugin_handler.py +++ b/addons/plugin/plugin_handler.py @@ -92,6 +92,8 @@ class plugin_handler(osv.osv_memory): msg = mail_message.parse_message(email) message_id = msg.get('message-id') mail_ids = mail_message.search(cr, uid, [('message_id','=',message_id),('res_id','=',res_id),('model','=',model)]) + if model=='res.partner': + model_obj = self.pool.get('mail.thread') if message_id and mail_ids : mail_record = mail_message.browse(cr, uid, mail_ids)[0] res_id = mail_record.res_id |
