[V7]followers of message subtype "Issue Blocked" (project.project) receive KeyError on viewing/saving tasks in that project

Bug #1253218 reported by Devvyn Murphy
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 1

Bug Description

OpenERP build 7.0-20131120-002454
Ubuntu 12.04.10

Steps to reproduce:

- create new database
- login as Administrator
- create a project
- create a task inside the project and save it

Expected result: task created, default subscriptions activated automatically (including "Issue Blocked" and others)

Actual result: task created, unexpected error modal with traceback appears

Server error message: "openerp.netsvc: Issue Blocked"

Traceback summary:

  KeyError in "addons/mail/mail_thread.py", line 140, in _get_subscription_data

  ``thread_subtype_dict[subtype.name]['followed'] = True``

Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello,

Thanks for reporting this ..!!

This Issue occurs in Version 7 and Saas-2, otherwise with trunk and Saas-1, its working fine at all.

Regards,

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Medium
status: New → Confirmed
summary: - followers of message subtype "Issue Blocked" (project.project) receive
- KeyError on viewing/saving tasks in that project
+ [V7]followers of message subtype "Issue Blocked" (project.project)
+ receive KeyError on viewing/saving tasks in that project
Revision history for this message
Devvyn Murphy (devvyn) wrote :

On a related note, my description of the bug is incomplete:

STEPS TO REPRODUCE:
Try the same steps to reproduce, except instead of a Task, create an Issue.

RESULT:
Error message when saving/viewing the newly created Issue:

  KeyError: u'Task Blocked'

So, in summary, when creating a Task, the key error is for "Issue Blocked" and when creating an Issue, it's for "Task Blocked".

Because it always happens when the correspondingly named subtype is followed on the project, I would speculate that perhaps the relationships between parent and child subtype are not being respected when creating the task's or issue's inherited subscriptions.

Revision history for this message
Devvyn Murphy (devvyn) wrote :

Error also happens with when viewing tasks or issues in pre-existing projects (created under a previous build) where the applicable subscriptions are active for a given user, so it's not related exclusively to creation of new records.

Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello,

This issue has been solved on revision no. : 9625 . Not able to reproduce any more, its working as expected. So, I am marking it as "Fix released".

Regards,

Changed in openobject-addons:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.