openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #00740
[Merge] lp:~dreis-pt/ocb-addons/7.0-bug1243628-dr into lp:ocb-addons
Daniel Reis has proposed merging lp:~dreis-pt/ocb-addons/7.0-bug1243628-dr into lp:ocb-addons.
Requested reviews:
OpenERP Community Backports Team (ocb)
Related bugs:
Bug #1243628 in OpenERP Community Backports (Addons): "[7.0] Any change on Project Issue resets the Last Action Date"
https://bugs.launchpad.net/ocb-addons/+bug/1243628
For more details, see:
https://code.launchpad.net/~dreis-pt/ocb-addons/7.0-bug1243628-dr/+merge/192334
Fix bug#1243628: don't reset last action date on any write; allow read-only users to log/send chatter messages
--
https://code.launchpad.net/~dreis-pt/ocb-addons/7.0-bug1243628-dr/+merge/192334
Your team OpenERP Community Backports Team is requested to review the proposed merge of lp:~dreis-pt/ocb-addons/7.0-bug1243628-dr into lp:ocb-addons.
=== modified file 'project_issue/project_issue.py'
--- project_issue/project_issue.py 2012-10-23 16:05:04 +0000
+++ project_issue/project_issue.py 2013-10-23 13:37:02 +0000
@@ -577,7 +577,7 @@
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
Follow ups