diff options
| author | ajay javiya (OpenERP) <aja@tinyerp.com> | 2013-09-27 15:12:15 +0530 |
|---|---|---|
| committer | ajay javiya (OpenERP) <aja@tinyerp.com> | 2013-09-27 15:12:15 +0530 |
| commit | 46fdb4ee832dc59a01edee2e2a04ec031f2f3d56 (patch) | |
| tree | 70ad4abbc74aa7417025bf1a61a4a3fab240ae64 /addons/mail/mail_thread.py | |
| parent | 6b4a1a3d55dfcc671d5741e7774bf07e4573bb57 (diff) | |
[IMP]: Change warning message if login user is not an employee and try to post internal note
bzr revid: aja@tinyerp.com-20130927094215-nf4mvdkz4mqr7543
Diffstat (limited to 'addons/mail/mail_thread.py')
| -rw-r--r-- | addons/mail/mail_thread.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 9e0fc96cc14..67746a6228a 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -1314,12 +1314,6 @@ class mail_thread(osv.AbstractModel): "Invalid thread_id; should be 0, False, an ID or a list with one ID" if isinstance(thread_id, (list, tuple)): thread_id = thread_id[0] - - #check login user is employee - #raise error on comment message if user is not employee - employee = self._check_user_is_employee(cr, uid, context=context) - if not employee and type == 'comment': - raise orm.except_orm(_('Warning'),_('Oops! Something went wrong, You are not allowed to post a note.')) # if we're processing a message directly coming from the gateway, the destination model was # set in the context. |
