[FIX] don't reset last action date on any write
authorChristophe CHAUVET <christophe.chauvet@syleam.fr>
Sat, 2 Nov 2013 07:16:43 +0000 (07:16 +0000)
committerStefan Rijnhart <stefan@therp.nl>
Wed, 2 Jul 2014 17:42:03 +0000 (19:42 +0200)
addons/project_issue/project_issue.py

index 20a6165..e9515e7 100644 (file)
@@ -549,7 +549,7 @@ class project_issue(base_stage, osv.osv):
         
         res = super(project_issue, self).message_post(cr, uid, thread_id, body=body, subject=subject, type=type, subtype=subtype, parent_id=parent_id, attachments=attachments, context=context, content_subtype=content_subtype, **kwargs)
         
-        if thread_id:
+        if thread_id and subtype:
             self.write(cr, uid, thread_id, {'date_action_last': time.strftime(tools.DEFAULT_SERVER_DATETIME_FORMAT)}, context=context)    
         
         return res