diff options
| author | Thibault Delavallée <tde@openerp.com> | 2012-10-29 11:12:30 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2012-10-29 11:12:30 +0100 |
| commit | a2d3d1df80c044ed62a02e47d7dca242b385992d (patch) | |
| tree | 38ada1b95c6379b8d7960d6d4302c5e87affe26a /addons/mail/res_users.py | |
| parent | cbf55bc07d979dac915a3d7314ee0979ec4d17ff (diff) | |
[CLEAN] message_post_api: removed unnecessary type arg (posting is a comment).
bzr revid: tde@openerp.com-20121029101230-x39pep9p5edd54ml
Diffstat (limited to 'addons/mail/res_users.py')
| -rw-r--r-- | addons/mail/res_users.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/mail/res_users.py b/addons/mail/res_users.py index 4ef2dda6d9c..1b6388111ba 100644 --- a/addons/mail/res_users.py +++ b/addons/mail/res_users.py @@ -111,8 +111,7 @@ class res_users(osv.Model): alias_pool.unlink(cr, uid, alias_ids, context=context) return res - def message_post_api(self, cr, uid, thread_id, body='', subject=False, type='notification', - parent_id=False, attachment_ids=None, context=None, **kwargs): + def message_post_api(self, cr, uid, thread_id, body='', subject=False, parent_id=False, attachment_ids=None, context=None): """ Redirect the posting of message on res.users to the related partner. This is done because when giving the context of Chatter on the various mailboxes, we do not have access to the current partner_id. @@ -124,7 +123,7 @@ class res_users(osv.Model): thread_id = thread_id[0] partner_id = self.pool.get('res.users').read(cr, uid, thread_id, ['partner_id'], context=context)['partner_id'][0] return self.pool.get('res.partner').message_post_api(cr, uid, partner_id, body=body, subject=subject, - type=type, parent_id=parent_id, attachment_ids=attachment_ids, context=context, **kwargs) + parent_id=parent_id, attachment_ids=attachment_ids, context=context) def message_post(self, cr, uid, thread_id, context=None, **kwargs): """ Redirect the posting of message on res.users to the related partner. |
