diff options
| author | Thibault Delavallée <tde@openerp.com> | 2016-01-12 11:14:06 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2016-02-01 12:15:56 +0100 |
| commit | 0cf2ceca90fdcb59cdecea17ccd9aa40cdf575e0 (patch) | |
| tree | d93d3f5e2da6cbe55f170d2d6c0f53641f3287a0 /addons/project_issue/models | |
| parent | 9b43a8c8f6b9e6cd8279503aeac9f63448d29388 (diff) | |
[IMP] project, issue: template on stages
Added a mail_template_field on project stage model (project.task.type). This
fields is used to automatically send an email when a task or issue comes in
this stage.
Recruitment code has been updated to use the mixin method.
Diffstat (limited to 'addons/project_issue/models')
| -rw-r--r-- | addons/project_issue/models/__init__.py | 1 | ||||
| -rw-r--r-- | addons/project_issue/models/project_task_type.py | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/addons/project_issue/models/__init__.py b/addons/project_issue/models/__init__.py new file mode 100644 index 00000000000..50bd1232d2e --- /dev/null +++ b/addons/project_issue/models/__init__.py @@ -0,0 +1 @@ +import project_task_type diff --git a/addons/project_issue/models/project_task_type.py b/addons/project_issue/models/project_task_type.py new file mode 100644 index 00000000000..e214a2c7ef3 --- /dev/null +++ b/addons/project_issue/models/project_task_type.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- + +from openerp import models + + +class ProjectStage(models.Model): + _name = "project.task.type" + _inherit = ['project.task.type'] + + def _get_mail_template_id_domain(self): + domain = super(ProjectStage, self)._get_mail_template_id_domain() + return ['|'] + domain + [('model', '=', 'project.issue')] |
