[FIX] Stupid, forgot to test for None context again

bzr revid: cbi@openerp.com-20130312150719-s6l0d6173cqrmnoe
This commit is contained in:
Chris Biersbach 2013-03-12 16:07:19 +01:00
parent f6c9e78f1f
commit a30a3a0e33
1 changed files with 3 additions and 0 deletions

View File

@ -549,6 +549,9 @@ class project_issue(base_stage, osv.osv):
""" Overrides mail_thread message_post so that we can set the date of last action field when
a new message is posted on the issue.
"""
if context is None:
context = {}
if thread_id:
model = context.get('thread_model', self._name)
if model != self._name: