diff options
| author | Thibault Delavallée <tde@openerp.com> | 2013-01-03 18:03:16 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2013-01-03 18:03:16 +0100 |
| commit | 8da57cbd2ed6a073d558b0495ec68d923741c7aa (patch) | |
| tree | 5948240c2f5248711132f84396790725c1fffbc6 /addons/project_issue/project_issue.py | |
| parent | 4899a0df0268d83f669bd75022adacb5f0e3f743 (diff) | |
[IMP] crm, project, project_issue: reply_to address is now the alias of the parent section, project, project, if any.
bzr revid: tde@openerp.com-20130103170316-8n6d8u0h14dy4x48
Diffstat (limited to 'addons/project_issue/project_issue.py')
| -rw-r--r-- | addons/project_issue/project_issue.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py index 8b2afb130e1..5a757fdac39 100644 --- a/addons/project_issue/project_issue.py +++ b/addons/project_issue/project_issue.py @@ -481,6 +481,11 @@ class project_issue(base_stage, osv.osv): # Mail gateway # ------------------------------------------------------- + def message_get_reply_to(self, cr, uid, ids, context=None): + """ Override to get the reply_to of the parent project. """ + return [issue.project_id.message_get_reply_to()[0] if issue.project_id else False + for issue in self.browse(cr, uid, ids, context=context)] + def message_new(self, cr, uid, msg, custom_values=None, context=None): """ Overrides mail_thread message_new that is called by the mailgateway through message_process. |
