[FIX] project: only copy tasks when not explicitly set
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user