[FIX] project - do not copy task_ids of res.partner
lp bug: https://launchpad.net/bugs/1189524 fixed bzr revid: yannick.vaucher@camptocamp.com-20130610155439-azna00gbw1z56y34
This commit is contained in:
@@ -29,6 +29,13 @@ class res_partner(osv.osv):
|
||||
'task_ids': fields.one2many('project.task', 'partner_id', 'Tasks'),
|
||||
}
|
||||
|
||||
def copy(self, cr, uid, record_id, default=None, context=None):
|
||||
if default is None:
|
||||
default = {}
|
||||
|
||||
default.update({'task_ids': []})
|
||||
return super(res_partner, self).copy(cr, uid, record_id, default, context)
|
||||
|
||||
res_partner()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user