diff --git a/addons/project/project.py b/addons/project/project.py index b358616508f..06d75eae0e9 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -1130,6 +1130,11 @@ class task(base_stage, osv.osv): return True def _subscribe_project_followers_to_task(self, cr, uid, task_id, context=None): + """ TDE note: not the best way to do this, we could override _get_followers + of task, and perform a better mapping of subtypes than a mapping + based on names. + However we will keep this implementation, maybe to be refactored + in 7.1 of future versions. """ # task followers are project followers, with matching subtypes task_record = self.browse(cr, uid, task_id, context=context) subtype_obj = self.pool.get('mail.message.subtype') diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py index 720e6e8c2dd..90640363906 100644 --- a/addons/project_issue/project_issue.py +++ b/addons/project_issue/project_issue.py @@ -360,6 +360,11 @@ class project_issue(base_stage, osv.osv): context=context) def _subscribe_project_followers_to_issue(self, cr, uid, task_id, context=None): + """ TDE note: not the best way to do this, we could override _get_followers + of issue, and perform a better mapping of subtypes than a mapping + based on names. + However we will keep this implementation, maybe to be refactored + in 7.1 of future versions. """ # task followers are project followers, with matching subtypes task_record = self.browse(cr, uid, task_id, context=context) subtype_obj = self.pool.get('mail.message.subtype')