[FIX] project : When duplicating a task the stage should not be duplicated
bzr revid: ach@tinyerp.com-20100929075345-jdyoich0f5wdd2bn
This commit is contained in:
committed by
Anup (OpenERP)
parent
e686f390d9
commit
28f3bba64d
@@ -389,6 +389,7 @@ class task(osv.osv):
|
||||
if not default.get('remaining_hours', False):
|
||||
default['remaining_hours'] = float(self.read(cr, uid, id, ['planned_hours'])['planned_hours'])
|
||||
default['active'] = True
|
||||
default['type_id'] = False
|
||||
if not default.get('name', False):
|
||||
default['name'] = self.browse(cr, uid, id, context=context).name + _(' (copy)')
|
||||
return super(task, self).copy_data(cr, uid, id, default, context)
|
||||
|
||||
Reference in New Issue
Block a user