diff options
| author | sgo@tinyerp.com <> | 2013-07-01 14:39:59 +0530 |
|---|---|---|
| committer | sgo@tinyerp.com <> | 2013-07-01 14:39:59 +0530 |
| commit | daec1fa0117348e91dffa0d2d7c669c9673ec5c4 (patch) | |
| tree | c8a1f9e2889cf81007efd1e2862e7f6fc73d2840 /addons/project_issue | |
| parent | ff73b066ed6adee1cd00b70241a17394d55f7436 (diff) | |
| parent | 447895839fd22fa610079a5b30f977b5b89b277d (diff) | |
[MERGE]sync with trunk
bzr revid: sgo@tinyerp.com-20130701090959-ddkktnp3asn6qqj1
Diffstat (limited to 'addons/project_issue')
| -rw-r--r-- | addons/project_issue/project_issue.py | 12 | ||||
| -rw-r--r-- | addons/project_issue/static/description/icon.png (renamed from addons/project_issue/static/src/img/icon.png) | bin | 5727 -> 5727 bytes |
2 files changed, 6 insertions, 6 deletions
diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py index 33e4fcb409c..a69d9356002 100644 --- a/addons/project_issue/project_issue.py +++ b/addons/project_issue/project_issue.py @@ -50,15 +50,15 @@ class project_issue(base_stage, osv.osv): _track = { 'state': { - 'project_issue.mt_issue_new': lambda self, cr, uid, obj, ctx=None: obj['state'] in ['new', 'draft'], - 'project_issue.mt_issue_closed': lambda self, cr, uid, obj, ctx=None: obj['state'] == 'done', - 'project_issue.mt_issue_started': lambda self, cr, uid, obj, ctx=None: obj['state'] == 'open', + 'project_issue.mt_issue_new': lambda self, cr, uid, obj, ctx=None: obj.state in ['new', 'draft'], + 'project_issue.mt_issue_closed': lambda self, cr, uid, obj, ctx=None: obj.state == 'done', + 'project_issue.mt_issue_started': lambda self, cr, uid, obj, ctx=None: obj.state == 'open', }, 'stage_id': { - 'project_issue.mt_issue_stage': lambda self, cr, uid, obj, ctx=None: obj['state'] not in ['new', 'draft', 'done', 'open'], + 'project_issue.mt_issue_stage': lambda self, cr, uid, obj, ctx=None: obj.state not in ['new', 'draft', 'done', 'open'], }, 'kanban_state': { - 'project_issue.mt_issue_blocked': lambda self, cr, uid, obj, ctx=None: obj['kanban_state'] == 'blocked', + 'project_issue.mt_issue_blocked': lambda self, cr, uid, obj, ctx=None: obj.kanban_state == 'blocked', }, } @@ -578,7 +578,7 @@ class project_issue(base_stage, osv.osv): if context is None: context = {} 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, SUPERUSER_ID, thread_id, {'date_action_last': time.strftime(tools.DEFAULT_SERVER_DATETIME_FORMAT)}, context=context) return res diff --git a/addons/project_issue/static/src/img/icon.png b/addons/project_issue/static/description/icon.png Binary files differindex 620ac3e9170..620ac3e9170 100644 --- a/addons/project_issue/static/src/img/icon.png +++ b/addons/project_issue/static/description/icon.png |
