From 93976b33f9897c2f9a8d6aed54fa390070a62eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 2 Nov 2012 17:07:34 +0100 Subject: [PATCH] [DOC] Added some comments. bzr revid: tde@openerp.com-20121102160734-gbh3iox0zb9hign7 --- addons/project/project.py | 5 +++++ addons/project_issue/project_issue.py | 5 +++++ 2 files changed, 10 insertions(+) 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')