*minor bugfix: copying a project do copy the tasks of this project

*minor bugfix: copying a task do not copy the works done on it

bzr revid: qdp@tinyerp.com-20081128102142-fi8u7x1olp2wnynv
This commit is contained in:
qdp 2008-11-28 11:21:42 +01:00
parent 3af1115053
commit c0bddb1da6
1 changed files with 5 additions and 1 deletions

View File

@ -146,7 +146,6 @@ class project(osv.osv):
def copy(self, cr, uid, id, default={},context={}):
default = default or {}
default['tasks'] = []
default['child_id'] = []
return super(project, self).copy(cr, uid, id, default, context)
@ -248,6 +247,11 @@ class task(osv.osv):
# ('remaining_hours', 'CHECK (remaining_hours>=0)', 'Please increase and review remaining hours ! It can not be smaller than 0.'),
#]
def copy(self, cr, uid, id, default={},context={}):
default = default or {}
default['work_ids'] = []
return super(task, self).copy(cr, uid, id, default, context)
_columns = {
'active': fields.boolean('Active'),
'name': fields.char('Task summary', size=128, required=True),