[FIX] marketing_campaign : Fix the problem when duplicate the partner workitem of this partner is also duplicated

lp bug: https://launchpad.net/bugs/1002456 fixed

bzr revid: amp@tinyerp.com-20120522051416-g5wq0t6kj2wgm8sj
This commit is contained in:
Amit (OpenERP) 2012-05-22 10:44:16 +05:30
parent c31a54334c
commit bd72fd7d2f
1 changed files with 7 additions and 1 deletions

View File

@ -29,7 +29,13 @@ class res_partner(osv.osv):
'partner_id', 'Workitems',
readonly=True),
}
def copy(self, cr, uid, id, default={}, context=None):
default.update({
'workitem_ids': [],
})
return super(res_partner, self).copy(cr, uid, id, default=default, context=context)
res_partner()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: