summaryrefslogtreecommitdiff
path: root/addons/project
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-12-04 15:07:49 +0100
committerChristophe Simonis <chs@odoo.com>2017-12-04 15:07:49 +0100
commit62fcf6a9fe835093bb0d962e8a398d9262340daa (patch)
treee2cf768d60d6ad7fcec3e5eae4d554ecf1fad109 /addons/project
parente5075147cf007a2a81363f8dc150394caea9627f (diff)
[FIX] project: only copy tasks when not explicitly set
Diffstat (limited to 'addons/project')
-rw-r--r--addons/project/project.py3
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):