diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-12-04 15:07:49 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-12-04 15:07:49 +0100 |
| commit | 62fcf6a9fe835093bb0d962e8a398d9262340daa (patch) | |
| tree | e2cf768d60d6ad7fcec3e5eae4d554ecf1fad109 /addons/project | |
| parent | e5075147cf007a2a81363f8dc150394caea9627f (diff) | |
[FIX] project: only copy tasks when not explicitly set
Diffstat (limited to 'addons/project')
| -rw-r--r-- | addons/project/project.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/project/project.py b/addons/project/project.py index f6c8c1ef4b2..c28bb84f876 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -257,7 +257,8 @@ class project(osv.osv): res = super(project, self).copy(cr, uid, id, default, context) for follower in proj.message_follower_ids: self.message_subscribe(cr, uid, res, partner_ids=[follower.partner_id.id], subtype_ids=[subtype.id for subtype in follower.subtype_ids]) - self.map_tasks(cr, uid, id, res, context=context) + if 'tasks' not in default: + self.map_tasks(cr, uid, id, res, context=context) return res def duplicate_template(self, cr, uid, ids, context=None): |
